{ "description": "FhirPath based prepopulation simple example", "_filename": "example/Questionnaire-questionnaire-sdc-test-fhirpath-prepop-initialexpression.json", "package_name": "hl7.fhir.uv.sdc", "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": "FhirPathPrepopSimple", "item": [ { "item": [ { "item": [ { "text": "Participant ID number", "type": "string", "linkId": "participant-id" }, { "text": "Medicare number", "type": "string", "linkId": "medicare-number", "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.identifier.where(system='http://ns.electronichealth.net.au/id/medicare-number').value.first()" } } ] }, { "text": "DVA number", "type": "string", "linkId": "dva-number", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.identifier.where(system='http://ns.electronichealth.net.au/id/dva').value.first()" } } ] }, { "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": "Date of birth", "type": "date", "linkId": "dob", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.birthDate" } } ] }, { "item": [ { "text": "(mobile or land line including area code)", "type": "text", "linkId": "contact-number-tooltip" } ], "text": "Contact telephone number", "type": "string", "linkId": "contact-number", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.telecom.where(system='phone').select(($this.where(use='mobile') | $this.where(use='home')).first().value)" } } ] } ], "text": "Participant details", "type": "group", "linkId": "part-details", "repeats": false }, { "item": [ { "text": "Provider number for payment", "type": "string", "linkId": "provider-number", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%user.identifier.where(system='http://ns.electronichealth.net.au/id/hi/prn').first().value" } } ] }, { "text": "Date of consultation", "type": "date", "linkId": "date-consult", "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "today()" } } ] }, { "text": "Name", "type": "string", "linkId": "provider-name", "readOnly": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%user.name.first().select(given.first() + ' ' + family.first())" } } ] } ], "text": "Provider details", "type": "group", "linkId": "provider-details", "repeats": false, "readOnly": true } ], "type": "group", "linkId": "grp" } ], "type": null, "experimental": "true", "resourceType": "Questionnaire", "title": "Questionnaire Pre-Population", "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" } ] }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext", "extension": [ { "url": "name", "valueCoding": { "code": "user", "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext", "display": "User" } }, { "url": "type", "valueCode": "Practitioner" }, { "url": "description", "valueString": "The practitioner that is to be used to pre-populate the form" } ] } ], "status": "active", "id": "c5cef570-30ce-4266-8f08-93de77b4eb5e", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/questionnaire-sdc-test-fhirpath-prepop-initialexpression", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.22", "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" } ] } ] }