{
"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.r4",
"subjectType": [ "Patient" ],
"date": "2024-12-17T01:55:34+00:00",
"meta": {
"profile": [ "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp" ]
},
"publisher": "HL7 International / FHIR Infrastructure",
"jurisdiction": [ {
"coding": [ {
"code": "001",
"system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
"display": "World"
} ]
} ],
"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-initialExpression",
"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-initialExpression",
"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-initialExpression",
"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-initialExpression",
"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": "4.0.0-ballot",
"extension": [ {
"url": "http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]",
"valueCoding": {
"code": "semver",
"system": "http://hl7.org/fhir/version-algorithm"
}
}, {
"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": "059866aa-489a-4315-976e-78c174aaef7c",
"kind": null,
"url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-candexpr",
"identifier": [ {
"value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.21",
"system": "urn:ietf:rfc:3986"
} ],
"version": "4.0.0-ballot",
"contact": [ {
"name": "HL7 International / FHIR Infrastructure",
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fiwg",
"system": "url"
} ]
}, {
"telecom": [ {
"value": "http://www.hl7.org/Special/committees/fiwg",
"system": "url"
} ]
} ]
}