Skip to content
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

Gout CarePlan Issue #123

Closed
cjduffett opened this issue Dec 29, 2016 · 2 comments · Fixed by #126
Closed

Gout CarePlan Issue #123

cjduffett opened this issue Dec 29, 2016 · 2 comments · Fixed by #126
Assignees

Comments

@cjduffett
Copy link
Contributor

The following error appeared during one of my FHIR validation tests:

RuntimeError: Target encounter Gout_Diagnosis was not processed before state Gout_CarePlan

Since we added the check for concurrent_with_target_encounter it seems we've uncovered a small issue with the Gout module. Should be a quick fix.

@jeffeastman
Copy link
Collaborator

Here's the state transition list for Gout: Note that Gout => Gout_CarePlan => Gout_Diagnosis. I believe the last two states need to be reversed, since "The CarePlanStart state must come after a target_encounter Encounter state in the module, but must have the same start time as that Encounter". Only ConditionOnset (and perhaps AllergyOnset, IDK) may refer to future encounters.

Gout [Initial [Initial]]
Colchicine => {Uric_Acid_Reducer, }
Delay_Until_Gout => {Gout, }
End_Gout_Nonopioid => {End_Uric_Acid_Reducer, }
End_Uric_Acid_Reducer => {Wait_For_Next_Gout_Attack, }
Gout => {Gout_CarePlan, }
Gout_CarePlan => {Gout_Diagnosis, }
Gout_Diagnosis => {Gout_Nonopioid_Pain_Medication, }
Gout_Nonopioid_Pain_Medication => {Colchicine, Strong_NSAID, }
Gout_Treatment_Period => {End_Gout_Nonopioid, }
Initial => {Delay_Until_Gout, Terminal, }
Strong_NSAID => {Uric_Acid_Reducer, }
Terminal => {}
Uric_Acid_Reducer => {Gout_Treatment_Period, }
Wait_For_Next_Gout_Attack => {Wait_For_Next_Gout_Attack, Gout_Diagnosis, }

@jeffeastman
Copy link
Collaborator

The above reordering fixed the issue with me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants