New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in the OTZ Discontinuation form, does not save the correct data when … #1792
base: main
Are you sure you want to change the base?
Conversation
…saved in the database upon successful submit. For instance Opt out of OTZ in the form will display discontinue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @gabriel090. Ensure you follow the community guidelines for contributing here by having a good PR description and summary. Also include a ticket for this work.
export const otzUuid = '159836AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'; | ||
export const otzOutPut = 'Opt out of OTZ'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need this hard coded values. These should be provided by the config file
@@ -12,15 +13,22 @@ interface EncounterObservationsProps { | |||
const EncounterObservations: React.FC<EncounterObservationsProps> = ({ observations }) => { | |||
const { t } = useTranslation(); | |||
const { obsConceptUuidsToHide = [] } = useConfig(); | |||
const { obsConceptDisplayOverrides = { otzUuid: otzOutPut } } = useConfig(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { obsConceptDisplayOverrides = { otzUuid: otzOutPut } } = useConfig(); | |
const { obsConceptDisplayOverrides = useConfig(); |
|
||
return ( | ||
<div className={styles.observation}> | ||
<p>{t('noObservationsFound', 'No observations found')}</p> | ||
</div> | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we removing this empty status
in the OTZ Discontinuation form, does not save the correct data when saved in the database upon successful submission. For instance, Opt out of OTZ in the form will display discontinue
Requirements
Summary
Screenshots
This is the image of the error.
Related Issue
Other