Connecting Questionnaires to Visits
# support
r
I've been trying to find a way to connect a questionnaire with an appointment, but it seems like FIHR doesn't directly allow those to be linked. I'm seeing that QuestionnaireResponse is can be linked to an observation, but so far it's not clear to me how to get a questionnaire to belong to an appointment without building an appointment > observation -> QuestionnaireResponse? cc: @markitosaad
Hi @markitosaad , I just wanted to clarify what you meant by by linking QuestionnaireResponse to an appointment. Is the goal to model that this Questionnaire was filled out during a specific patient visit?
So in FHIR, we distinguish between two different concepts: * An Encounter, which represents all the data related to a patient visit (could be scheduled or unscheduled) (see this diagram: https://www.medplum.com/docs/charting#capturing-notes ) * An Appointment, which represents an allocation of a time on as a Schedule (see this diagram: https://www.medplum.com/docs/scheduling) These two can be linked, but are distinct
So a QuestionnaireResponse can be linked to an Encounter, to indicate the "Patient Visit" where it was produced
Does that answer your question ?
m
Somewhat. Seems like the case here would then be: - Schedule an appointment - Attach an encounter to said appointment - Attach a QuestionnaireResponse to encounter.
r
Yep!
The reason for this decomposed model is that
Encounters
can come in many different forms: 1. Scheduled (e.g. attached to an appointment) 2. Unscheudled (no appointment) 3. Async (happen over chat, sms, etc.)
132 Views