{ "description": "A sample questionnaire using context-based population and extraction", "_filename": "example/Questionnaire-demographics.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-extr-defn" ] }, "publisher": "HL7 International / FHIR Infrastructure", "jurisdiction": [ { "coding": [ { "code": "001", "system": "http://unstats.un.org/unsd/methods/m49/m49.htm", "display": "World" } ] } ], "name": "DemographicExample", "item": [ { "text": "(internal use)", "type": "string", "linkId": "patient.id", "readOnly": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden", "valueBoolean": true }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.id" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.id" }, { "text": "Date of birth", "type": "date", "linkId": "patient.birthDate", "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patient.birthDate" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.birthDate" }, { "item": [ { "text": "Family name", "type": "string", "linkId": "patient.name.family", "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patientName.family" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.name.family" }, { "text": "Given name(s)", "type": "string", "linkId": "patient.name.given", "repeats": true, "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%patientName.given" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.name.given" } ], "text": "Name(s)", "type": "group", "linkId": "patient.name", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", "valueExpression": { "name": "patientName", "language": "text/fhirpath", "expression": "%patient.name" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/Patient#Patient.name" }, { "item": [ { "text": "(internal use)", "type": "string", "linkId": "relative.id", "readOnly": true, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-hidden", "valueBoolean": true }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%relative.id" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson#RelatedPerson.id" }, { "text": "Relationship(s)", "type": "choice", "linkId": "relative.relationship", "repeats": true, "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%relative.relationship" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson#RelatedPerson.relationship", "answerValueSet": "http://hl7.org/fhir/ValueSet/relatedperson-relationshiptype" }, { "item": [ { "text": "Family name", "type": "string", "linkId": "relative.name.family", "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%relativeName.family" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson#RelatedPerson.name.family" }, { "text": "Given name(s)", "type": "string", "linkId": "relative.name.given", "repeats": true, "required": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", "expression": "%relativeName.given" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson#RelatedPerson.name.given" } ], "text": "Name(s)", "type": "group", "linkId": "relative.name", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", "valueExpression": { "name": "relativeName", "language": "text/fhirpath", "expression": "%relative.name" } } ], "definition": "http://hl7.org/fhir/StructureDefinition/RelatedPerson#RelatedPerson.name" } ], "text": "Relatives, caregivers and other personal relationships", "type": "group", "linkId": "relative", "repeats": true, "extension": [ { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", "valueExpression": { "name": "relative", "language": "application/x-fhir-query", "expression": "RelatedPerson?patient={{%patient.id}}" } }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtract", "extension": [ { "url": "definition", "valueCanonical": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ] } ] } ], "type": null, "experimental": "true", "resourceType": "Questionnaire", "title": "Questionnaire - Demographics Example", "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" } }, { "url": "type", "valueCode": "Patient" } ] }, { "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-definitionExtract", "extension": [ { "url": "definition", "valueCanonical": "http://hl7.org/fhir/StructureDefinition/Patient" } ] } ], "status": "active", "id": "1777e5cc-8c1f-4d6b-8850-b6b3d2cea522", "kind": null, "url": "http://hl7.org/fhir/uv/sdc/Questionnaire/demographics", "identifier": [ { "value": "urn:oid:2.16.840.1.113883.4.642.40.17.35.3", "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" } ] } ] }