{ "description": "FhirPath based prepopulation example that includes a Candidate expression", "_filename": "example/Questionnaire-questionnaire-sdc-test-fhirpath-prepop-candexpr.json", "package_name": "hl7.fhir.uv.sdc.r4b", "subjectType": [ "Patient" ], "date": "2022-03-08T18:37:19+00:00", "publisher": "HL7 International - FHIR Infrastructure Work Group", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm" } ] } ], "name": "FhirPathPrepopCandExpr", "item": [ { "item": [ { "item": [ { "text": "Participant ID number", "type": "string", "linkId": "participant-id" }, { "text": "Family name", "type": "string", "linkId": "family-name", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.name.first().family.first()" } } ] }, { "text": "Given name(s)", "type": "string", "linkId": "given-names", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.name.first().given.first()" } } ] } ], "text": "Participant details", "type": "group", "linkId": "part-details", "repeats": false }, { "item": [ { "text": "Contact Name", "type": "string", "linkId": "cont-name", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%selectedContact.name.first().select(text | given.first() & ' ' & family)" } } ] }, { "text": "Contact Number", "type": "string", "linkId": "cont-number", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%selectedContact.telecom.where(system='phone').first().value" } } ] } ], "text": "Contacts", "type": "group", "linkId": "contacts", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-candidateExpression", "valueExpression": { "name": "selectedContact", "language": "application/x-fhir-query", "expression": "RelatedPerson?patient={{%patient.id}}&active=true", "description": "Set of active Patient contacts" } } ] } ], "type": "group", "linkId": "grp" } ], "type": null, "experimental": "true", "resourceType": "Questionnaire", "title": "Questionnaire Pre-Population with a Candidate Expression", "package_version": "3.0.0", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext", "extension": [ { "url": "name", "valueCoding": { "code": "patient", "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext", "display": "Patient" } }, { "url": "type", "valueCode": "Patient" }, { "url": "description", "valueString": "The patient that is to be used to pre-populate the form" } ] } ], "status": "active", "id": "14d97de9-c10c-46bc-afb6-113ded61ea6f", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-candexpr", "version": "3.0.0", "contact": [ { "telecom": [ { "value": "http://hl7.org/Special/committees/fiwg", "system": "url" } ] } ] }