Open chris-dare opened 2 years ago
Hi @TuyizereBapt, here's what you need to do on the API side of things:
Update encounter.models.Encounter.end() to do the following:
encounter.models.CarePlan
)encounter.models.EncounterDiagnosis
)
The encounter should end successfully if and only if these 4 conditions have been met. If there are not met, it should throw an error telling the user which information they are yet to provide. e.g. "Sorry, you cannot end this encounter until you record a care plan! Would you like to do that now?"@dexios1 so when they're leaving the screen should they be forced to end the encounter?
@dexios1 so when they're leaving the screen should they be forced to end the encounter?
Yes please.
If I attempt to close the browser, I should get a prompt telling me that I have not yet completed the encounter and tell me what inputs are missing so I can go to those areas and complete them
Same for exiting the encounter wizard to another page
Tell us about your request! We need to set the minimum requirement for end a consultation to the following:
Which app does this concern? Provider portal
What will be benefit of this feature? Doctors will follow the right process to treat patients
Describe the solution you'd like
Describe alternatives you've considered N/A
Additional context N/A