Stream: implementers
Topic: Reference type on Questionnaire.item.option.value[x]
Kenneth Myhra (Jun 25 2018 at 07:28):
I have a use case where it would make sense to be able to select between a set of Reference types from a list of options in a QuestionnaireResponse, preferably by using Questionnaire.item.option.value[x]. Currently option.value[x] supports the types integer|date|time|string|coding.
The use case is as follows:
A citizen wants to retrieve its health records or other medical information by selecting a specific hospital. Based on this information our system could retrieve the Endpoint information for which we are going to send the Questionnaire. The Reference type, which is effectively selected by the citizen, could either point to an organization, and then we could retrieve Endpoint information based on that, or directly to the Endpoint itself.
I am of course additionally coding the question, Question.item.code, so the system knows how to handle this information.
Stefan Lang (Jun 25 2018 at 09:03):
I understand that the patient's QuestionnaireResponse would not contain the information, but the source (FHIR endpoint, web site URL, possibly also just the name?) where that information can be acquired?
Also, in your case item.code expresses "where can we retrieve information about X" rather than "X".
If you think of it that way, why not just use valueString. Since you can't be sure that the patient's answer will be a reference to a FHIR endpoint, it technically isn't a FHIR reference.
Stefan Lang (Jun 25 2018 at 09:17):
Re-reading, a reference might make sense when you have all these organizations as distinct resources in your system.
You then would display Organization.name to the patient when filling the QuestionnaireResponse and retrieve the data from the FHIR endpoint defined in Organization.endpoint.
Is that your idea?
Lloyd McKenzie (Jun 25 2018 at 09:28):
You can certainly submit a change request for that. We had no-one with a use-case to have References as an unumerated set of options. It's intended for use with things like Practitioners, Locations, Organizations, etc. which you dynamically query and pick from
Kenneth Myhra (Jun 25 2018 at 09:53):
I would like to, and I created a user in GForge a week or two ago, but I am still not able to log in, I have not retrieved a confirmation e-mail for it either.
Kenneth Myhra (Jun 25 2018 at 09:59):
Also, in your case item.code expresses "where can we retrieve information about X" rather than "X".
My intention was to tell the system "What is X", could be I should do this some other way
Lloyd McKenzie (Jun 25 2018 at 10:15):
I looked in gForge and can't see anyone named Myhra as either a pending user or a registered user. Can you send me a PM with the userid you registered with and I can see where things are at.
Lloyd McKenzie (Jun 25 2018 at 10:16):
What sort of resources were you looking at enumerating as options?
Kenneth Myhra (Jun 25 2018 at 10:22):
Made a new registration right now, maybe something went wrong the last time.
Kenneth Myhra (Jun 25 2018 at 10:23):
What sort of resources were you looking at enumerating as options?
In this use case I was thinking of enumerating either Endpoint or Organization as options
Lloyd McKenzie (Jun 25 2018 at 10:27):
You're expecting end-users to choose EndPoints? Organization actually makes sense. From a legacy perspective, it's often just a choice of strings. However, if you're interested in converting from a QuestionnaireResponse to other resources, I can see why you might want Reference
Kenneth Myhra (Jun 25 2018 at 10:34):
I am expecting the user to select a Hospital so Organization probably in this context, then based on that resolve to the correct Endpoint. I could cheat a bit :grimacing: and hide an Endpoint behind a Reference.display that makes sense to the user, to make it easier in the first iteration.
Brian Postlethwaite (Jun 25 2018 at 10:55):
More likely select the endpoint resource with the appropriate connection type details referenced to the organization
Kenneth Myhra (Jun 25 2018 at 11:36):
Yep, agree
Kenneth Myhra (Jun 25 2018 at 13:29):
GForge issue: https://gforge.hl7.org/gf/project/fhir/tracker/?action=TrackerItemEdit&tracker_item_id=17407
Last updated: Apr 12 2022 at 19:14 UTC