Stream: IG creation
Topic: Questionnaire definition mapping to logical model
Elliot Silver (Dec 09 2020 at 20:29):
I previously raised this in the #questionnaire stream Questionnaire definition mapping to logical model but never got to the bottom of the issue, so hoping someone here might have some insight.
I have a logical model that includes an element of type Period:
(extract from the fsh source)
* differential.element[44].id = "WhoCrSurveillanceDataDictionary.exposure.travel.location.locationPeriod"
* differential.element[44].path = "WhoCrSurveillanceDataDictionary.exposure.travel.location.locationPeriod"
* differential.element[44].short = "Dates at location (including date of departure)"
* differential.element[44].definition = "Specify dates at this location"
* differential.element[44].type.code = #Period
* differential.element[44].code = $LNC#91560-3
* differential.element[44].min = 0
* differential.element[44].max = "1"
I have a questionnaire that references a sub-element of Period:
* item[6].item[1].item[0].item[2].linkId = "expo_travel_date"
* item[6].item[1].item[0].item[2].text = "Date of Departure from the place:"
* item[6].item[1].item[0].item[2].type = #dateTime
* item[6].item[1].item[0].item[2].code = $LNC#91560-3
* item[6].item[1].item[0].item[2].definition = "http://openhie.github.io/covid-19/StructureDefinition/WhoCrSurveillanceDataDictionary#WhoCrSurveillanceDataDictionary.exposure.travel.location.locationPeriod.end"
When I build my IG, I get an error in QA.html:
The link 'StructureDefinition-WhoCrSurveillanceDataDictionary.html#WhoCrSurveillanceDataDictionary.exposure.travel.location.locationPeriod.end' for "WhoCrSurveillanceDataDictionary.exposure.travel.location.locationPeriod.end" cannot be resolved (valid targets: 233 targets)
Is there an error here on my part? I believe previous discussion suggested that I should be able to define a link into a datatype, but maybe not?
Elliot Silver (Dec 11 2020 at 00:30):
Further research on this reveals I can do a Questionnaire definition that goes into a complex data type in a resource (e.g. Practitioner.name.text), but my attempts to do a definition that goes into the profile of the same resource, or a logical model with the same structure fail.
Grahame Grieve (Dec 11 2020 at 00:54):
I'll look at this next week too
Elliot Silver (Dec 11 2020 at 00:57):
Thank you.
I have a single fsh file that shows it if you need.
Michaela Ziegler (May 25 2021 at 15:47):
I become Build errors, where I set a Questionnaire.definition to a specific slice of an element (see QA). How should that work properly?
definition = "http://fhir.ch/ig/ch-rad-order/StructureDefinition/ch-rad-order-servicerequest#ServiceRequest.identifier:placerOrderIdentifier.value"
The link 'StructureDefinition-ch-rad-order-servicerequest.html#ServiceRequest.identifier:placerOrderIdentifier.value' for "ServiceRequest.identifier:placerOrderIdentifier.value" cannot be resolved (valid targets: 308 targets)
Grahame Grieve (May 30 2021 at 21:32):
moving this back up my todo list.
Grahame Grieve (Jun 03 2021 at 00:58):
how do I reproduce this @Elliot Silver
Elliot Silver (Jun 03 2021 at 02:26):
If I recall, you need to:
- create a logical model with an element of type Period
- create a questionnaire with an item whose definition links to the logical model's Period.end.
I'm not sure how to point you at an old github commit that would demonstrate this.
Grahame Grieve (Jun 03 2021 at 04:14):
o you have a branch?
Jose Costa Teixeira (Jun 03 2021 at 04:30):
https://github.com/openhie/covid-ig/tree/93746b1f44f0ea926f0547a2cf960e0be4e82d93
Jose Costa Teixeira (Jun 03 2021 at 04:31):
I presume this is it
https://github.com/openhie/covid-ig/blob/93746b1f44f0ea926f0547a2cf960e0be4e82d93/input/fsh/who-cr-QuestionnaireCRF2020-2.fsh#L310
Elliot Silver (Jun 03 2021 at 15:01):
Yes, thank you.
Last updated: Apr 12 2022 at 19:14 UTC