Skip to content

Creating an in-progress Encounter #1058

Answered by jawalonoski
tamasVarjas asked this question in Q&A
Discussion options

You must be logged in to vote

Good question.

Internally, inside the Synthea engine, such an encounter would be "in progress"... at least for a while (read on).

But the FHIR exporter as currently written does not care. As far as it is concerned, the Encounter is always finished:

encounterResource.setStatus(EncounterStatus.FINISHED);

Why?

Well, there is no great reason for this. In the past, module authors sometimes unintentionally "forget" to end their encounters. Which left a lot of never-ending encounters in place. This may no longer be an issue -- I haven't checked in a while -- so more sophisticated logic could be written.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tamasVarjas
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants