Relating a ServiceRequest to a Questionnaire
# support
e
Hi! I am currently working on building a form backed by a Questionnaire that relies on the existence of a particular ServiceRequest. In addition to checking for the existence of this ServiceRequest in our application code before generating the form, should we be directly referencing the ServiceRequest in the QuestionnaireResponse? How would we accurately model this relationship in FHIR? Thank you!
r
That's a great question! To tie the response back to the ServiceRequest, you can use
QuestionnaireResponse.subject
e
Ah I see. I currently have the patient as the subject, would you recommend using basedOn for the ServiceRequest reference?
r
Maybe it would help if you gave an example of what kind of Questionnaire you were creating. A rough overview of the types of quesitons might help me give a better recommendation
e
Yeah sure, we're building a questionnaire that asks for demographic and clinical information from a patient such as "Emergency contact", "Allergies", "Medications", etc. The Questionnaire is centered around a single patient but due to regulation we need to verify that a ServiceRequest exists before we can start the Questionnaire
r
Yes, I think then you're approachof using basedOn is the right way to go
e
Great thanks!
161 Views