From 4123d31bb020baa2b19cb16c34aee12d54b645e8 Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Fri, 1 Dec 2023 16:50:55 +1000 Subject: [PATCH 01/12] Facade questionnnaire --- fsh-generated/includes/fsh-link-references.md | 1 + ...ntationGuide-csiro.fhir.au.smartforms.json | 8 + .../Questionnaire-AgedCareCMSFacade.json | 1082 +++++++++++++++++ input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 482 ++++++++ 4 files changed, 1573 insertions(+) create mode 100644 fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json create mode 100644 input/fsh/Questionnaire-AgedCareCMSFacade.fsh diff --git a/fsh-generated/includes/fsh-link-references.md b/fsh-generated/includes/fsh-link-references.md index 674d8a3..b6196c3 100644 --- a/fsh-generated/includes/fsh-link-references.md +++ b/fsh-generated/includes/fsh-link-references.md @@ -33,6 +33,7 @@ [SocialHistoryChild]: Questionnaire-SocialHistoryChild.html [SubstanceUse]: Questionnaire-SubstanceUse.html [AboriginalTorresStraitIslander]: ValueSet-AboriginalTorresStraitIslander.html +[AgedCareCMSFacade]: Questionnaire-AgedCareCMSFacade.html [AustralianStatesAndTerritories]: ValueSet-australian-states-territories-2.html [BiologicalSex]: ValueSet-biological-sex-1.html [ConditionClinicalStatusCodes]: ValueSet-condition-clinical.html diff --git a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json index b87f5d2..987c4b6 100644 --- a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json +++ b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json @@ -322,6 +322,14 @@ "description": "The Aboriginal and/or Torres Strait Islander value set includes the Australian Indigenous statuses for Indigenous people.", "exampleBoolean": false }, + { + "reference": { + "reference": "Questionnaire/AgedCareCMSFacade" + }, + "name": "Aged Care QI Prototype", + "description": "Aged Care CMS Facade.", + "exampleBoolean": false + }, { "reference": { "reference": "ValueSet/australian-states-territories-2" diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json new file mode 100644 index 0000000..5b6e135 --- /dev/null +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -0,0 +1,1082 @@ +{ + "resourceType": "Questionnaire", + "id": "AgedCareCMSFacade", + "meta": { + "profile": [ + "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render", + "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp" + ] + }, + "url": "https://smartforms.csiro.au/ig/Questionnaire/AgedCareCMSFacade", + "title": "Aged Care CMS Facade", + "description": "Aged Care CMS Facade.", + "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" + } + }, + { + "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" + } + }, + { + "url": "type", + "valueCode": "Practitioner" + }, + { + "url": "description", + "valueString": "The practitioner user 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": "encounter", + "system": "http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext" + } + }, + { + "url": "type", + "valueCode": "Encounter" + }, + { + "url": "description", + "valueString": "The encounter that is to be used to pre-populate the form" + } + ] + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "EncounterAll", + "language": "application/x-fhir-query", + "expression": "Encounter?patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "Weight", + "language": "application/x-fhir-query", + "expression": "Observation?code=29463-7&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "ProblemListItem", + "language": "application/x-fhir-query", + "expression": "Condition?category=problem-list-item&patient={{%patient.id}}" + } + } + ], + "name": "AgedCareCMSFacade", + "status": "draft", + "experimental": true, + "subjectType": [ + "Patient" + ], + "date": "2023-11-27", + "jurisdiction": [ + { + "coding": [ + { + "code": "AU", + "system": "urn:iso:std:iso:3166" + } + ] + } + ], + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "tab-container", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "tab-container", + "type": "group", + "repeats": false, + "item": [ + { + "linkId": "patient", + "text": "Patient", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MR')).value" + } + } + ], + "linkId": "patient-mrn", + "text": "MRN identifier", + "type": "string", + "repeats": false + }, + { + "linkId": "patient-name", + "text": "Legal name", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.name.where(use='official').select(family)" + } + } + ], + "linkId": "patient-name-family", + "text": "Family name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.name.where(use='official').select(given[0])" + } + } + ], + "linkId": "patient-name-given", + "text": "First given name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.name.where(use='official').select(given.skip(1)).join(' ')" + } + } + ], + "linkId": "patient-name-additional-given", + "text": "Additional given names", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.name.where(use='official').select(prefix).join(' ')" + } + } + ], + "linkId": "patient-name-prefix", + "text": "Name prefix", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.name.where(use='usual').select(given[0])" + } + } + ], + "linkId": "patient-name-preferred", + "text": "Preferred name", + "type": "string", + "repeats": false + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.gender" + } + } + ], + "linkId": "patient-gender", + "text": "Administrative gender", + "type": "choice", + "repeats": false, + "answerValueSet": "http://hl7.org/fhir/ValueSet/administrative-gender" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.birthDate" + } + } + ], + "linkId": "patient-dob", + "text": "Date of birth", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.deceased.ofType(Boolean)" + } + } + ], + "linkId": "patient-deceased", + "text": "Deceased indicator", + "type": "boolean", + "repeats": false + }, + { + "linkId": "patient-facility", + "text": "Facility managing patient record", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.managingOrganization.display" + } + } + ], + "linkId": "patient-facility-name", + "text": "Managing organisation name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%patient.managingOrganization.identifier.value" + } + } + ], + "linkId": "patient-facility-identifier", + "text": "Managing organization facility identifier assigned by Services Australia", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "practitioner", + "text": "Practitioner", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='EI')).value" + } + } + ], + "linkId": "practitioner-employee-number", + "text": "Employee number", + "type": "string", + "repeats": false + }, + { + "linkId": "practitioner-name", + "text": "Legal name", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%user.name.where(use='official').select(family)" + } + } + ], + "linkId": "practitioner-name-family", + "text": "Family name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%user.name.where(use='official').select(given[0])" + } + } + ], + "linkId": "practitioner-name-given", + "text": "First given name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%user.name.where(use='official').select(given.skip(1)).join(' ')" + } + } + ], + "linkId": "practitioner-name-additional-given", + "text": "Additional given names", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%user.name.where(use='official').select(prefix).join(' ')" + } + } + ], + "linkId": "practitioner-name-prefix", + "text": "Name prefix", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "encounter", + "text": "Encounter", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" + } + } + ], + "linkId": "encounter-description", + "text": "Text description of encounter", + "type": "text", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.class" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "encounter-class", + "text": "Class", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "RACF", + "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.status" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "encounter-status", + "text": "Status", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "in-progress", + "system": "http://hl7.org/fhir/encounter-status", + "display": "In Progress" + } + }, + { + "valueCoding": { + "code": "onleave", + "system": "http://hl7.org/fhir/encounter-status", + "display": "On Leave" + } + }, + { + "valueCoding": { + "code": "finished", + "system": "http://hl7.org/fhir/encounter-status", + "display": "Finished" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.period.start" + } + } + ], + "linkId": "encounter-periodstart", + "text": "Period start", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.period.end" + } + } + ], + "linkId": "encounter-periodend", + "text": "Period end", + "type": "date", + "repeats": false + }, + { + "linkId": "encounter-statushistory", + "text": "Status history", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.statusHistory.status" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "encounter-statushistory-status", + "text": "Status", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "in-progress", + "system": "http://hl7.org/fhir/encounter-status", + "display": "In Progress" + } + }, + { + "valueCoding": { + "code": "onleave", + "system": "http://hl7.org/fhir/encounter-status", + "display": "On Leave" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.statusHistory.period.start" + } + } + ], + "linkId": "encounter-statushistory-periodstart", + "text": "Period start", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.statusHistory.period.end" + } + } + ], + "linkId": "encounter-statushistory-periodend", + "text": "Period end", + "type": "date", + "repeats": false + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.reasonCode.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "encounter-reason", + "text": "Reason", + "type": "choice", + "repeats": true, + "answerOption": [ + { + "valueCoding": { + "code": "410201001", + "system": "http://snomed.info/sct", + "display": "Weight maintenance regimen management" + } + }, + { + "valueCoding": { + "code": "103735009", + "system": "http://snomed.info/sct", + "display": "Palliative care" + } + }, + { + "valueCoding": { + "code": "423216003", + "system": "http://snomed.info/sct", + "display": "End-of-life surveillance" + } + } + ] + }, + { + "linkId": "encounter-serviceprovider", + "text": "Facility managing encounter", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.serviceProvider.display" + } + } + ], + "linkId": "encounter-serviceprovider-name", + "text": "Organisation name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%encounter.serviceProvider.identifier.value" + } + } + ], + "linkId": "encounter-serviceprovider-identifier", + "text": "Organization facility identifier assigned by Services Australia", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "hospitalisation", + "text": "Hospitalisation", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "HospitalisationRepeat", + "language": "text/fhirpath", + "expression": "%EncounterAll.entry.resource.where(class='IMP' or class='EMER' or class='SS')" + } + } + ], + "linkId": "hospitalisation-encounter", + "text": "Hospitalisation encounter", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" + } + } + ], + "linkId": "hospitalisation-encounter-description", + "text": "Text description of encounter", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.class" + } + } + ], + "linkId": "hospitalisation-encounter-class", + "text": "Class", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "IMP", + "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + } + }, + { + "valueCoding": { + "code": "EMER", + "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + } + }, + { + "valueCoding": { + "code": "SS", + "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.status" + } + } + ], + "linkId": "hospitalisation-encounter-status", + "text": "Status", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "in-progress", + "system": "http://hl7.org/fhir/encounter-status", + "display": "In Progress" + } + }, + { + "valueCoding": { + "code": "onleave", + "system": "http://hl7.org/fhir/encounter-status", + "display": "On Leave" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.period.start" + } + } + ], + "linkId": "hospitalisation-encounter-periodstart", + "text": "Period start", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.period.end" + } + } + ], + "linkId": "hospitalisation-encounter-periodend", + "text": "Period end", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.where(class='IMP').length.value" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit", + "valueCoding": { + "code": "d", + "system": "http://unitsofmeasure.org" + } + } + ], + "linkId": "hospitalisation-encounter-duration", + "text": "Duration", + "type": "decimal", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "unit", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "hospitalisation-encounter-duration-unit", + "text": "days", + "type": "display" + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.reasonCode.text" + } + } + ], + "linkId": "hospitalisation-encounter-reason", + "text": "Reason", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterAll.serviceProvider.reference" + } + } + ], + "linkId": "hospitalisation-encounter-serviceprovider", + "text": "Facility managing encounter (id only)", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "medicalhistory", + "text": "Medical History", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "gtable", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "ProblemListItemRepeat", + "language": "text/fhirpath", + "expression": "%ProblemListItem.entry.resource" + } + } + ], + "linkId": "medicalhistory-condition", + "text": "Problem List Condition", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.code.coding" + } + } + ], + "linkId": "medicalhistory-condition-code", + "text": "Condition code", + "type": "choice", + "answerValueSet": "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.code.text" + } + } + ], + "linkId": "medicalhistory-condition-text", + "text": "Condition text", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.status" + } + } + ], + "linkId": "medicalhistory-condition-status", + "text": "Status", + "type": "choice", + "repeats": false, + "answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.onset.ofType(dateTime)" + } + } + ], + "linkId": "medicalhistory-condition-onsetdate", + "text": "Onset date", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.abatement.ofType(dateTime)" + } + } + ], + "linkId": "medicalhistory-condition-abatementdate", + "text": "Abatement date", + "type": "date", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%ProblemListItemRepeat.recordedDate" + } + } + ], + "linkId": "medicalhistory-condition-recordeddate", + "text": "Recorded date", + "type": "date", + "repeats": false + } + ] + } + ] + } + ] + } + ] +} diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh new file mode 100644 index 0000000..34837e3 --- /dev/null +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -0,0 +1,482 @@ +Alias: $LNC = http://loinc.org +Alias: $SCT = http://snomed.info/sct +Alias: $UCUM = http://unitsofmeasure.org +Alias: $questionnaire-item-control = http://hl7.org/fhir/questionnaire-item-control + +Instance: AgedCareCMSFacade +InstanceOf: Questionnaire +Usage: #definition +Title: "Aged Care QI Prototype" +Description: "Aged Care CMS Facade." + + +//launch context +* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" +* extension[=].extension[+].url = "name" +* extension[=].extension[=].valueCoding = http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext#patient +* extension[=].extension[+].url = "type" +* extension[=].extension[=].valueCode = #Patient +* extension[=].extension[+].url = "description" +* extension[=].extension[=].valueString = "The patient that is to be used to pre-populate the form" + +* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" +* extension[=].extension[+].url = "name" +* extension[=].extension[=].valueCoding = http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext#user +* extension[=].extension[+].url = "type" +* extension[=].extension[=].valueCode = #Practitioner +* extension[=].extension[+].url = "description" +* extension[=].extension[=].valueString = "The practitioner user that is to be used to pre-populate the form" + +* extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext" +* extension[=].extension[+].url = "name" +* extension[=].extension[=].valueCoding = http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext#encounter +* extension[=].extension[+].url = "type" +* extension[=].extension[=].valueCode = #Encounter +* extension[=].extension[+].url = "description" +* extension[=].extension[=].valueString = "The encounter that is to be used to pre-populate the form" + + +//prepop variables +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "EncounterAll" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Encounter?patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "Weight" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Observation?code=29463-7&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "ProblemListItem" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Condition?category=problem-list-item&patient={{%patient.id}}" + + +* meta.profile[+] = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render" +* meta.profile[+] = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp" +* name = "AgedCareCMSFacade" +* title = "Aged Care CMS Facade" +* status = #draft +* experimental = true +* subjectType[+] = #Patient +* date = "2023-11-27" +* jurisdiction.coding = urn:iso:std:iso:3166#AU +/* +// variables +* item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].extension[=].valueExpression.name = "ReportingStartDate" +* item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].extension[=].valueExpression.expression = "item.where(linkId='client').item.where(linkId='client-period').item.where(linkId='client-period-start').answer.value" +* item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].extension[=].valueExpression.name = "ReportingEndDate" +* item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].extension[=].valueExpression.expression = "item.where(linkId='client').item.where(linkId='client-period').item.where(linkId='client-period-end').answer.value" +*/ +* item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#tab-container +* item[=].linkId = "tab-container" +* item[=].type = #group +* item[=].repeats = false + +//Patient +* item[=].item[+].linkId = "patient" +* item[=].item[=].text = "Patient" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MR')).value" +* item[=].item[=].item[=].linkId = "patient-mrn" +* item[=].item[=].item[=].text = "MRN identifier" +* item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].linkId = "patient-name" +* item[=].item[=].item[=].text = "Legal name" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='official').select(family)" +* item[=].item[=].item[=].item[=].linkId = "patient-name-family" +* item[=].item[=].item[=].item[=].text = "Family name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='official').select(given[0])" +* item[=].item[=].item[=].item[=].linkId = "patient-name-given" +* item[=].item[=].item[=].item[=].text = "First given name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='official').select(given.skip(1)).join(' ')" +* item[=].item[=].item[=].item[=].linkId = "patient-name-additional-given" +* item[=].item[=].item[=].item[=].text = "Additional given names" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='official').select(prefix).join(' ')" +* item[=].item[=].item[=].item[=].linkId = "patient-name-prefix" +* item[=].item[=].item[=].item[=].text = "Name prefix" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='usual').select(given[0])" +* item[=].item[=].item[=].item[=].linkId = "patient-name-preferred" +* item[=].item[=].item[=].item[=].text = "Preferred name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.gender" +* item[=].item[=].item[=].linkId = "patient-gender" +* item[=].item[=].item[=].text = "Administrative gender" +* item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].answerValueSet = "http://hl7.org/fhir/ValueSet/administrative-gender" +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.birthDate" +* item[=].item[=].item[=].linkId = "patient-dob" +* item[=].item[=].item[=].text = "Date of birth" +* item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.deceased.ofType(Boolean)" +* item[=].item[=].item[=].linkId = "patient-deceased" +* item[=].item[=].item[=].text = "Deceased indicator" +* item[=].item[=].item[=].type = #boolean +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].linkId = "patient-facility" +* item[=].item[=].item[=].text = "Facility managing patient record" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.managingOrganization.display" +* item[=].item[=].item[=].item[=].linkId = "patient-facility-name" +* item[=].item[=].item[=].item[=].text = "Managing organisation name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +// what identifier type is this? is there an AU base profile? +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.managingOrganization.identifier.value" +* item[=].item[=].item[=].item[=].linkId = "patient-facility-identifier" +* item[=].item[=].item[=].item[=].text = "Managing organization facility identifier assigned by Services Australia" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + + +//Practitioner +* item[=].item[+].linkId = "practitioner" +* item[=].item[=].text = "Practitioner" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%user.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='EI')).value" +* item[=].item[=].item[=].linkId = "practitioner-employee-number" +* item[=].item[=].item[=].text = "Employee number" +* item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].linkId = "practitioner-name" +* item[=].item[=].item[=].text = "Legal name" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%user.name.where(use='official').select(family)" +* item[=].item[=].item[=].item[=].linkId = "practitioner-name-family" +* item[=].item[=].item[=].item[=].text = "Family name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%user.name.where(use='official').select(given[0])" +* item[=].item[=].item[=].item[=].linkId = "practitioner-name-given" +* item[=].item[=].item[=].item[=].text = "First given name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%user.name.where(use='official').select(given.skip(1)).join(' ')" +* item[=].item[=].item[=].item[=].linkId = "practitioner-name-additional-given" +* item[=].item[=].item[=].item[=].text = "Additional given names" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%user.name.where(use='official').select(prefix).join(' ')" +* item[=].item[=].item[=].item[=].linkId = "practitioner-name-prefix" +* item[=].item[=].item[=].item[=].text = "Name prefix" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + + + +//Encounter +* item[=].item[+].linkId = "encounter" +* item[=].item[=].text = "Encounter" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" +* item[=].item[=].item[=].linkId = "encounter-description" +* item[=].item[=].item[=].text = "Text description of encounter" +* item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.class" +* item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].linkId = "encounter-class" +* item[=].item[=].item[=].text = "Class" +* item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#RACF +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.status" +* item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].linkId = "encounter-status" +* item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#in-progress "In Progress" +* item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" +* item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#finished "Finished" +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.period.start" +* item[=].item[=].item[=].linkId = "encounter-periodstart" +* item[=].item[=].item[=].text = "Period start" +* item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.period.end" +* item[=].item[=].item[=].linkId = "encounter-periodend" +* item[=].item[=].item[=].text = "Period end" +* item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].linkId = "encounter-statushistory" +* item[=].item[=].item[=].text = "Status history" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.status" +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-status" +* item[=].item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#in-progress "In Progress" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.period.start" +* item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-periodstart" +* item[=].item[=].item[=].item[=].text = "Period start" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.period.end" +* item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-periodend" +* item[=].item[=].item[=].item[=].text = "Period end" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.reasonCode.coding" +* item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].linkId = "encounter-reason" +* item[=].item[=].item[=].text = "Reason" +* item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#410201001 "Weight maintenance regimen management" +* item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#103735009 "Palliative care" +* item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#423216003 "End-of-life surveillance" +* item[=].item[=].item[+].linkId = "encounter-serviceprovider" +* item[=].item[=].item[=].text = "Facility managing encounter" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.serviceProvider.display" +* item[=].item[=].item[=].item[=].linkId = "encounter-serviceprovider-name" +* item[=].item[=].item[=].item[=].text = "Organisation name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +// what identifier type is this? is there an AU base profile? +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.serviceProvider.identifier.value" +* item[=].item[=].item[=].item[=].linkId = "encounter-serviceprovider-identifier" +* item[=].item[=].item[=].item[=].text = "Organization facility identifier assigned by Services Australia" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + +//Hospitalisation +* item[=].item[+].linkId = "hospitalisation" +* item[=].item[=].text = "Hospitalisation" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "HospitalisationRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.entry.resource.where(class='IMP' or class='EMER' or class='SS')" +* item[=].item[=].item[=].linkId = "hospitalisation-encounter" +* item[=].item[=].item[=].text = "Hospitalisation encounter" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-description" +* item[=].item[=].item[=].item[=].text = "Text description of encounter" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.class" +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-class" +* item[=].item[=].item[=].item[=].text = "Class" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#IMP +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#EMER +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#SS +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.status" +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-status" +* item[=].item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#in-progress "In Progress" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.period.start" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-periodstart" +* item[=].item[=].item[=].item[=].text = "Period start" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.period.end" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-periodend" +* item[=].item[=].item[=].item[=].text = "Period end" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.where(class='IMP').length.value" +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-unit" +* item[=].item[=].item[=].item[=].extension[=].valueCoding = $UCUM#d +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-duration" +* item[=].item[=].item[=].item[=].text = "Duration" +* item[=].item[=].item[=].item[=].type = #decimal +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#unit +* item[=].item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-duration-unit" +* item[=].item[=].item[=].item[=].item[=].text = "days" +* item[=].item[=].item[=].item[=].item[=].type = #display +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.reasonCode.text" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-reason" +* item[=].item[=].item[=].item[=].text = "Reason" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +// is this all that's wanted? +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.serviceProvider.reference" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-serviceprovider" +* item[=].item[=].item[=].item[=].text = "Facility managing encounter (id only)" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + + + +//Medical history +* item[=].item[+].linkId = "medicalhistory" +* item[=].item[=].text = "Medical History" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#gtable +* item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "ProblemListItemRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItem.entry.resource" +* item[=].item[=].item[=].linkId = "medicalhistory-condition" +* item[=].item[=].item[=].text = "Problem List Condition" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.code.coding" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-code" +* item[=].item[=].item[=].item[=].text = "Condition code" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].answerValueSet = "https://healthterminologies.gov.au/fhir/ValueSet/clinical-condition-1" +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.code.text" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-text" +* item[=].item[=].item[=].item[=].text = "Condition text" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.status" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-status" +* item[=].item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerValueSet = "http://hl7.org/fhir/ValueSet/condition-clinical" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.onset.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-onsetdate" +* item[=].item[=].item[=].item[=].text = "Onset date" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.abatement.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-abatementdate" +* item[=].item[=].item[=].item[=].text = "Abatement date" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.recordedDate" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-recordeddate" +* item[=].item[=].item[=].item[=].text = "Recorded date" +* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].repeats = false + From 638ff9b0956c92f1468de0dfbcc32c7f1fc05259 Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Tue, 19 Dec 2023 17:31:50 +1000 Subject: [PATCH 02/12] Aged care facade content --- fsh-generated/includes/fsh-link-references.md | 1 + ...ntationGuide-csiro.fhir.au.smartforms.json | 8 + .../Questionnaire-AgedCareCMSFacade.json | 2256 ++++++++++++++++- ...finition-ConditionEnvironmentAcquired.json | 64 + input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 878 ++++++- input/fsh/extensions.fsh | 10 + 6 files changed, 3158 insertions(+), 59 deletions(-) create mode 100644 fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json diff --git a/fsh-generated/includes/fsh-link-references.md b/fsh-generated/includes/fsh-link-references.md index b6196c3..580f00a 100644 --- a/fsh-generated/includes/fsh-link-references.md +++ b/fsh-generated/includes/fsh-link-references.md @@ -37,6 +37,7 @@ [AustralianStatesAndTerritories]: ValueSet-australian-states-territories-2.html [BiologicalSex]: ValueSet-biological-sex-1.html [ConditionClinicalStatusCodes]: ValueSet-condition-clinical.html +[ConditionEnvironmentAcquired]: StructureDefinition-ConditionEnvironmentAcquired.html [ContainedResourceReference]: StructureDefinition-ContainedResourceReference.html [GenderIdentityResponse]: ValueSet-gender-identity-response-1.html [MedicalHistory]: ValueSet-MedicalHistory.html diff --git a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json index 987c4b6..e60a7da 100644 --- a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json +++ b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json @@ -354,6 +354,14 @@ "description": "Preferred value set for Condition Clinical Status.", "exampleBoolean": false }, + { + "reference": { + "reference": "StructureDefinition/ConditionEnvironmentAcquired" + }, + "name": "Condition Location", + "description": "The location where the condition was acquired.", + "exampleBoolean": false + }, { "reference": { "reference": "StructureDefinition/ContainedResourceReference" diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index 5b6e135..245646d 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -74,9 +74,9 @@ { "url": "http://hl7.org/fhir/StructureDefinition/variable", "valueExpression": { - "name": "EncounterAll", + "name": "Hospitalisation", "language": "application/x-fhir-query", - "expression": "Encounter?patient={{%patient.id}}" + "expression": "Encounter?class=IMP,EMER,SS&patient={{%patient.id}}" } }, { @@ -84,7 +84,31 @@ "valueExpression": { "name": "Weight", "language": "application/x-fhir-query", - "expression": "Observation?code=29463-7&patient={{%patient.id}}" + "expression": "Observation?code=27113001&_sort=-date&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "UrinaryContinence", + "language": "application/x-fhir-query", + "expression": "Observation?code=129009001&_count=1&_sort=-date&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "BowelContinence", + "language": "application/x-fhir-query", + "expression": "Observation?code=129008009&_count=1&_sort=-date&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "BarthelIndex", + "language": "application/x-fhir-query", + "expression": "Observation?code=443653008&_count=1&_sort=-date&patient={{%patient.id}}" } }, { @@ -94,6 +118,30 @@ "language": "application/x-fhir-query", "expression": "Condition?category=problem-list-item&patient={{%patient.id}}" } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "PressureInjury", + "language": "application/x-fhir-query", + "expression": "Condition?category=416462003&code=1163215007&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "IAD", + "language": "application/x-fhir-query", + "expression": "Condition?category=416462003&code=402275006&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "RestrictivePractice", + "language": "application/x-fhir-query", + "expression": "Procedure?code=386423001,90278001,386517008,68894007&patient={{%patient.id}}" + } } ], "name": "AgedCareCMSFacade", @@ -122,7 +170,8 @@ "coding": [ { "code": "tab-container", - "system": "http://hl7.org/fhir/questionnaire-item-control" + "system": "http://hl7.org/fhir/questionnaire-item-control", + "version": "1.0.0" } ] } @@ -225,7 +274,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%patient.name.where(use='usual').select(given[0])" + "expression": "(%patient.name.where(use='usual').select((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()" } } ], @@ -273,7 +322,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%patient.deceased.ofType(Boolean)" + "expression": "%patient.deceased.ofType(boolean)" } } ], @@ -729,7 +778,7 @@ "valueExpression": { "name": "HospitalisationRepeat", "language": "text/fhirpath", - "expression": "%EncounterAll.entry.resource.where(class='IMP' or class='EMER' or class='SS')" + "expression": "%Hospitalisation.entry.resource" } } ], @@ -744,13 +793,13 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" + "expression": "%HospitalisationRepeat.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" } } ], "linkId": "hospitalisation-encounter-description", "text": "Text description of encounter", - "type": "string", + "type": "text", "repeats": false }, { @@ -759,7 +808,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.class" + "expression": "%HospitalisationRepeat.class" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] } } ], @@ -794,7 +854,18 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.status" + "expression": "%HospitalisationRepeat.status" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] } } ], @@ -812,9 +883,9 @@ }, { "valueCoding": { - "code": "onleave", + "code": "finished", "system": "http://hl7.org/fhir/encounter-status", - "display": "On Leave" + "display": "Finished" } } ] @@ -825,7 +896,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.period.start" + "expression": "%HospitalisationRepeat.period.start" } } ], @@ -840,7 +911,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.period.end" + "expression": "%HospitalisationRepeat.period.end" } } ], @@ -855,7 +926,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.where(class='IMP').length.value" + "expression": "%HospitalisationRepeat.where(class.exists(code='IMP')).length.value.round(0)" } }, { @@ -868,7 +939,7 @@ ], "linkId": "hospitalisation-encounter-duration", "text": "Duration", - "type": "decimal", + "type": "integer", "repeats": false, "item": [ { @@ -897,7 +968,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.reasonCode.text" + "expression": "%HospitalisationRepeat.reasonCode.text" } } ], @@ -912,12 +983,27 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%EncounterAll.serviceProvider.reference" + "expression": "%HospitalisationRepeat.serviceProvider.display" + } + } + ], + "linkId": "hospitalisation-encounter-serviceprovidername", + "text": "Service provider name", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%HospitalisationRepeat.serviceProvider.identifier.value" } } ], - "linkId": "hospitalisation-encounter-serviceprovider", - "text": "Facility managing encounter (id only)", + "linkId": "hospitalisation-encounter-serviceprovideridentifier", + "text": "Service provider identifier", "type": "string", "repeats": false } @@ -927,7 +1013,7 @@ }, { "linkId": "medicalhistory", - "text": "Medical History", + "text": "Medical history", "type": "group", "repeats": false, "item": [ @@ -965,7 +1051,7 @@ "valueCodeableConcept": { "coding": [ { - "code": "drop-down", + "code": "autocomplete", "system": "http://hl7.org/fhir/questionnaire-item-control" } ] @@ -1017,12 +1103,12 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%ProblemListItemRepeat.status" + "expression": "%ProblemListItemRepeat.clinicalStatus.coding" } } ], - "linkId": "medicalhistory-condition-status", - "text": "Status", + "linkId": "medicalhistory-condition-clinicalstatus", + "text": "Clinical status", "type": "choice", "repeats": false, "answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical" @@ -1039,7 +1125,7 @@ ], "linkId": "medicalhistory-condition-onsetdate", "text": "Onset date", - "type": "date", + "type": "dateTime", "repeats": false }, { @@ -1054,7 +1140,7 @@ ], "linkId": "medicalhistory-condition-abatementdate", "text": "Abatement date", - "type": "date", + "type": "dateTime", "repeats": false }, { @@ -1069,8 +1155,2120 @@ ], "linkId": "medicalhistory-condition-recordeddate", "text": "Recorded date", - "type": "date", + "type": "dateTime", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "pressureinjuries", + "text": "Pressure injuries", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "PressureInjuryRepeat", + "language": "text/fhirpath", + "expression": "%PressureInjury.entry.resource" + } + } + ], + "linkId": "pressureinjuries-wound", + "text": "Pressure injury wound", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.stage.summary.coding" + } + } + ], + "linkId": "pressureinjuries-wound-stage", + "text": "Stage", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "1163217004", + "system": "http://snomed.info/sct", + "display": "Pressure injury stage I" + } + }, + { + "valueCoding": { + "code": "1163220007", + "system": "http://snomed.info/sct", + "display": "Pressure injury stage II" + } + }, + { + "valueCoding": { + "code": "1163222004", + "system": "http://snomed.info/sct", + "display": "Pressure injury stage III" + } + }, + { + "valueCoding": { + "code": "1163224003", + "system": "http://snomed.info/sct", + "display": "Pressure injury stage IV" + } + }, + { + "valueCoding": { + "code": "723071003", + "system": "http://snomed.info/sct", + "display": "Deep tissue pressure injury" + } + }, + { + "valueCoding": { + "code": "723073000", + "system": "http://snomed.info/sct", + "display": "Suspected deep tissue pressure injury" + } + }, + { + "valueCoding": { + "code": "1163226001", + "system": "http://snomed.info/sct", + "display": "Unstageable pressure injury" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.stage.summary.text" + } + } + ], + "linkId": "pressureinjuries-wound-stage-text", + "text": "Stage text", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.clinicalStatus.coding" + } + } + ], + "linkId": "pressureinjuries-wound-clinicalstatus", + "text": "Clinical status", + "type": "choice", + "repeats": false, + "answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.onset.ofType(dateTime)" + } + } + ], + "linkId": "pressureinjuries-wound-onsetdate", + "text": "Onset date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.abatement.ofType(dateTime)" + } + } + ], + "linkId": "pressureinjuries-wound-abatementdate", + "text": "Abatement date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.recordedDate" + } + } + ], + "linkId": "pressureinjuries-wound-recordeddate", + "text": "Recorded date", + "type": "dateTime", "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.extension.where(url='https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired').value.coding" + } + } + ], + "linkId": "pressureinjuries-wound-environmentacquired", + "text": "Environment acquired", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "22232009", + "system": "http://snomed.info/sct", + "display": "Hospital" + } + }, + { + "valueCoding": { + "code": "285202004", + "system": "http://snomed.info/sct", + "display": "Community environment" + } + }, + { + "valueCoding": { + "code": "257652008", + "system": "http://snomed.info/sct", + "display": "Aged care facility" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.evidence.code.text" + } + } + ], + "linkId": "pressureinjuries-wound-description", + "text": "Description", + "type": "text", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%PressureInjuryRepeat.bodySite.text" + } + } + ], + "linkId": "pressureinjuries-wound-bodysite", + "text": "Body site", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "restrictivepractice", + "text": "Restrictive practice", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "RestrictivePracticeRepeat", + "language": "text/fhirpath", + "expression": "%RestrictivePractice.entry.resource" + } + } + ], + "linkId": "restrictivepractice-intervention", + "text": "Restrictive practice intervention", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.code.coding" + } + } + ], + "linkId": "restrictivepractice-intervention-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "386423001", + "system": "http://snomed.info/sct", + "display": "Physical restraint" + } + }, + { + "valueCoding": { + "code": "90278001", + "system": "http://snomed.info/sct", + "display": "Secluding patient" + } + }, + { + "valueCoding": { + "code": "386517008", + "system": "http://snomed.info/sct", + "display": "Area restriction (Environmental)" + } + }, + { + "valueCoding": { + "code": "68894007", + "system": "http://snomed.info/sct", + "display": "Placing restraint (Mechanical)" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.status" + } + } + ], + "linkId": "restrictivepractice-intervention-status", + "text": "Status", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "in-progress", + "system": "http://hl7.org/fhir/event-status", + "display": "In Progress" + } + }, + { + "valueCoding": { + "code": "on-hold", + "system": "http://hl7.org/fhir/event-status", + "display": "On Hold" + } + }, + { + "valueCoding": { + "code": "completed", + "system": "http://hl7.org/fhir/event-status", + "display": "Completed" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.select(performed.start | performed.ofType(dateTime))" + } + } + ], + "linkId": "restrictivepractice-intervention-performedstartdate", + "text": "Performed start date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.select(performed.end)" + } + } + ], + "linkId": "restrictivepractice-intervention-performedenddate", + "text": "Performed end date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.usedCode.coding.system" + } + } + ], + "linkId": "restrictivepractice-intervention-restraintsubtypecode-system", + "text": "Restraint subtype code system", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.usedCode.coding.code" + } + } + ], + "linkId": "restrictivepractice-intervention-restraintsubtypecode-code", + "text": "Restraint subtype code code", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.usedCode.coding.display" + } + } + ], + "linkId": "restrictivepractice-intervention-restraintsubtypecode-display", + "text": "Restraint subtype code display", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.usedCode.text" + } + } + ], + "linkId": "restrictivepractice-intervention-restraintsubtypetext", + "text": "Restraint subtype text", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "RestrictivePracticeNoteRepeat", + "language": "text/fhirpath", + "expression": "%RestrictivePracticeRepeat.note" + } + } + ], + "linkId": "restrictivepractice-intervention-note", + "text": "Note", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeNoteRepeat.time" + } + } + ], + "linkId": "restrictivepractice-intervention-note-time", + "text": "Time", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%RestrictivePracticeNoteRepeat.text" + } + } + ], + "linkId": "restrictivepractice-intervention-note-text", + "text": "Text", + "type": "text", + "repeats": false + } + ] + } + ] + } + ] + }, + { + "linkId": "bodyweight", + "text": "Body weight", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "gtable", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "WeightRepeat", + "language": "text/fhirpath", + "expression": "%Weight.entry.resource" + } + } + ], + "linkId": "bodyweight-observation", + "text": "Body weight observation", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%WeightRepeat.effective.ofType(dateTime)" + } + } + ], + "linkId": "bodyweight-observation-effectivedate", + "text": "Effective date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%WeightRepeat.value.ofType(Quantity).value" + } + } + ], + "linkId": "bodyweight-observation-value", + "text": "Value", + "type": "decimal", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%WeightRepeat.value.ofType(Quantity).code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "bodyweight-observation-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "kg", + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%WeightRepeat.issued" + } + } + ], + "linkId": "bodyweight-observation-issued", + "text": "Issued", + "type": "dateTime", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "continence", + "text": "Continence", + "type": "group", + "repeats": false, + "item": [ + { + "linkId": "continence-urinary", + "text": "Urinary continence", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%UrinaryContinence.entry.resource.effective.ofType(dateTime)" + } + } + ], + "linkId": "continence-urinary-effectivedate", + "text": "Effective date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%UrinaryContinence.entry.resource.value.coding" + } + } + ], + "linkId": "continence-urinary-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "LA126-5", + "system": "http://loinc.org", + "display": "CONTINENT-Complete control [includes use of indwelling urinary catheter or ostomy device that does not leak urine or stool]" + } + }, + { + "valueCoding": { + "code": "LA127-3", + "system": "http://loinc.org", + "display": "USUALLY CONTINENT-BLADDER, incontinent episodes once a week or less; BOWEL, less than weekly" + } + }, + { + "valueCoding": { + "code": "LA128-1", + "system": "http://loinc.org", + "display": "OCCASIONALLY INCONTINENT-BLADDER, 2 or more times a week but not daily; BOWEL, once a week" + } + }, + { + "valueCoding": { + "code": "LA129-9", + "system": "http://loinc.org", + "display": "FREQUENTLY INCONTINENT-BLADDER, tended to be incontinent daily, but some control present (e.g., on day shift); BOWEL, 2-3 times a week" + } + }, + { + "valueCoding": { + "code": "LA130-7", + "system": "http://loinc.org", + "display": "INCONTINENT-Had inadequate control BLADDER, multiple daily episodes; BOWEL, all (or almost all) of the time" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%UrinaryContinence.entry.resource.value.text" + } + } + ], + "linkId": "continence-urinary-text", + "text": "Text", + "type": "text", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%UrinaryContinence.entry.resource.issued" + } + } + ], + "linkId": "continence-urinary-issued", + "text": "Issued", + "type": "dateTime", + "repeats": false + } + ] + }, + { + "linkId": "continence-bowel", + "text": "Bowel continence", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BowelContinence.entry.resource.effective.ofType(dateTime)" + } + } + ], + "linkId": "continence-bowel-effectivedate", + "text": "Effective date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BowelContinence.entry.resource.value.coding" + } + } + ], + "linkId": "continence-bowel-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "LA126-5", + "system": "http://loinc.org", + "display": "CONTINENT-Complete control [includes use of indwelling urinary catheter or ostomy device that does not leak urine or stool]" + } + }, + { + "valueCoding": { + "code": "LA127-3", + "system": "http://loinc.org", + "display": "USUALLY CONTINENT-BLADDER, incontinent episodes once a week or less; BOWEL, less than weekly" + } + }, + { + "valueCoding": { + "code": "LA128-1", + "system": "http://loinc.org", + "display": "OCCASIONALLY INCONTINENT-BLADDER, 2 or more times a week but not daily; BOWEL, once a week" + } + }, + { + "valueCoding": { + "code": "LA129-9", + "system": "http://loinc.org", + "display": "FREQUENTLY INCONTINENT-BLADDER, tended to be incontinent daily, but some control present (e.g., on day shift); BOWEL, 2-3 times a week" + } + }, + { + "valueCoding": { + "code": "LA130-7", + "system": "http://loinc.org", + "display": "INCONTINENT-Had inadequate control BLADDER, multiple daily episodes; BOWEL, all (or almost all) of the time" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BowelContinence.entry.resource.value.text" + } + } + ], + "linkId": "continence-bowel-text", + "text": "Text", + "type": "text", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BowelContinence.entry.resource.issued" + } + } + ], + "linkId": "continence-bowel-issued", + "text": "Issued", + "type": "dateTime", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "iad", + "text": "Incontinence associated dermatitis", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "IADRepeat", + "language": "text/fhirpath", + "expression": "%IAD.entry.resource" + } + } + ], + "linkId": "iad-wound", + "text": "Incontinence associated dermatitis wound", + "type": "group", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.stage.summary.coding" + } + } + ], + "linkId": "iad-wound-stage", + "text": "Stage", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "264653008", + "system": "http://snomed.info/sct", + "display": "1A" + } + }, + { + "valueCoding": { + "code": "264654002", + "system": "http://snomed.info/sct", + "display": "1B" + } + }, + { + "valueCoding": { + "code": "264662005", + "system": "http://snomed.info/sct", + "display": "2A" + } + }, + { + "valueCoding": { + "code": "264663000", + "system": "http://snomed.info/sct", + "display": "2B" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.stage.summary.text" + } + } + ], + "linkId": "iad-wound-stage-text", + "text": "Stage text", + "type": "string", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + }, + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.clinicalStatus.coding" + } + } + ], + "linkId": "iad-wound-clinicalstatus", + "text": "Clinical status", + "type": "choice", + "repeats": false, + "answerValueSet": "http://hl7.org/fhir/ValueSet/condition-clinical" + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.onset.ofType(dateTime)" + } + } + ], + "linkId": "iad-wound-onsetdate", + "text": "Onset date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.abatement.ofType(dateTime)" + } + } + ], + "linkId": "iad-wound-abatementdate", + "text": "Abatement date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.recordedDate" + } + } + ], + "linkId": "iad-wound-recordeddate", + "text": "Recorded date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.evidence.code.text" + } + } + ], + "linkId": "iad-wound-description", + "text": "Description", + "type": "text", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%IADRepeat.bodySite.text" + } + } + ], + "linkId": "iad-wound-bodysite", + "text": "Body site", + "type": "string", + "repeats": false + } + ] + } + ] + }, + { + "linkId": "barthel", + "text": "Barthel index", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "grid", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-modified", + "text": "Modified Barthel index of activities of daily living score", + "type": "group", + "item": [ + { + "linkId": "barthel-modified-score", + "text": "Modified Barthel index score", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.effective.ofType(dateTime)" + } + } + ], + "linkId": "barthel-modified-effectivedate", + "text": "Effective date", + "type": "dateTime", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.value.value" + } + } + ], + "linkId": "barthel-modified-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-modified-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.issued" + } + } + ], + "linkId": "barthel-modified-issued", + "text": "Issued", + "type": "dateTime", + "repeats": false + } + ] + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "grid", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components", + "text": "Modified Barthel index of activities of daily living component questions", + "type": "group", + "item": [ + { + "linkId": "barthel-components-feeding", + "text": "Feeding", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[0].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-feeding-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83184-2", + "system": "http://loinc.org", + "display": "Feeding or eating - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[0].value.value" + } + } + ], + "linkId": "barthel-components-feeding-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[0].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-feeding-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-transfer", + "text": "Transfer", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[1].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-transfer-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83185-9", + "system": "http://loinc.org", + "display": "Transferring - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[1].value.value" + } + } + ], + "linkId": "barthel-components-transfer-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[1].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-transfer-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-grooming", + "text": "Grooming", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[2].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-grooming-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "96767-9", + "system": "http://loinc.org", + "display": "Grooming - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[2].value.value" + } + } + ], + "linkId": "barthel-components-grooming-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[2].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-grooming-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-toiletuse", + "text": "Toilet Use", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[3].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-toiletuse-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83183-4", + "system": "http://loinc.org", + "display": "Toileting - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[3].value.value" + } + } + ], + "linkId": "barthel-components-toiletuse-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[3].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-toiletuse-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-bathing", + "text": "Bathing", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[4].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bathing-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83181-8", + "system": "http://loinc.org", + "display": "Bathing - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[4].value.value" + } + } + ], + "linkId": "barthel-components-bathing-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[4].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bathing-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-mobility", + "text": "Mobility", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[5].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-mobility-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83186-7", + "system": "http://loinc.org", + "display": "Ambulation - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[5].value.value" + } + } + ], + "linkId": "barthel-components-mobility-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[5].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-mobility-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-stairs", + "text": "Stairs", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[6].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-stairs-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "96758-8", + "system": "http://loinc.org", + "display": "Stairs - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[6].value.value" + } + } + ], + "linkId": "barthel-components-stairs-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[6].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-stairs-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-dressing", + "text": "Dressing", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[7].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-dressing-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "83182-6", + "system": "http://loinc.org", + "display": "Dressing - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[7].value.value" + } + } + ], + "linkId": "barthel-components-dressing-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[7].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-dressing-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-bowels", + "text": "Bowels", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[8].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bowels-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "96759-6", + "system": "http://loinc.org", + "display": "Bowel control - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[8].value.value" + } + } + ], + "linkId": "barthel-components-bowels-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[8].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bowels-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] + }, + { + "linkId": "barthel-components-bladder", + "text": "Bladder", + "type": "group", + "repeats": false, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[9].code.coding" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bladder-code", + "text": "Code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "96760-4", + "system": "http://loinc.org", + "display": "Bladder control - functional ability" + }, + "initialSelected": true + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[9].value.value" + } + } + ], + "linkId": "barthel-components-bladder-value", + "text": "Value", + "type": "integer", + "repeats": false + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%BarthelIndex.entry.resource.component[9].value.code" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "barthel-components-bladder-unitcode", + "text": "Unit code", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueString": "{score}", + "initialSelected": true + } + ] + } + ] } ] } diff --git a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json new file mode 100644 index 0000000..7e02c21 --- /dev/null +++ b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json @@ -0,0 +1,64 @@ +{ + "resourceType": "StructureDefinition", + "id": "ConditionEnvironmentAcquired", + "url": "https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired", + "name": "ConditionEnvironmentAcquired", + "title": "Condition Location", + "status": "draft", + "description": "The location where the condition was acquired.", + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + } + ], + "kind": "complex-type", + "abstract": false, + "context": [ + { + "type": "element", + "expression": "Condition" + } + ], + "type": "Extension", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Extension", + "path": "Extension", + "short": "Condition Location", + "definition": "The location where the condition was acquired." + }, + { + "id": "Extension.extension", + "path": "Extension.extension", + "max": "0" + }, + { + "id": "Extension.url", + "path": "Extension.url", + "fixedUri": "https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired" + }, + { + "id": "Extension.value[x]", + "path": "Extension.value[x]", + "min": 1, + "type": [ + { + "code": "CodeableConcept" + }, + { + "code": "Reference", + "targetProfile": [ + "http://hl7.org/fhir/StructureDefinition/Location" + ] + } + ] + } + ] + } +} diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index 34837e3..5fb6d3e 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -38,17 +38,41 @@ Description: "Aged Care CMS Facade." //prepop variables * extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" -* extension[=].valueExpression[+].name = "EncounterAll" +* extension[=].valueExpression[+].name = "Hospitalisation" * extension[=].valueExpression[=].language = #application/x-fhir-query -* extension[=].valueExpression[=].expression = "Encounter?patient={{%patient.id}}" +* extension[=].valueExpression[=].expression = "Encounter?class=IMP,EMER,SS&patient={{%patient.id}}" * extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" * extension[=].valueExpression[+].name = "Weight" * extension[=].valueExpression[=].language = #application/x-fhir-query -* extension[=].valueExpression[=].expression = "Observation?code=29463-7&patient={{%patient.id}}" +* extension[=].valueExpression[=].expression = "Observation?code=27113001&_sort=-date&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "UrinaryContinence" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Observation?code=129009001&_count=1&_sort=-date&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "BowelContinence" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Observation?code=129008009&_count=1&_sort=-date&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "BarthelIndex" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Observation?code=443653008&_count=1&_sort=-date&patient={{%patient.id}}" * extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" * extension[=].valueExpression[+].name = "ProblemListItem" * extension[=].valueExpression[=].language = #application/x-fhir-query * extension[=].valueExpression[=].expression = "Condition?category=problem-list-item&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "PressureInjury" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Condition?category=416462003&code=1163215007&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "IAD" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Condition?category=416462003&code=402275006&patient={{%patient.id}}" +* extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* extension[=].valueExpression[+].name = "RestrictivePractice" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* extension[=].valueExpression[=].expression = "Procedure?code=386423001,90278001,386517008,68894007&patient={{%patient.id}}" * meta.profile[+] = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render" @@ -72,7 +96,7 @@ Description: "Aged Care CMS Facade." * item[=].extension[=].valueExpression.expression = "item.where(linkId='client').item.where(linkId='client-period').item.where(linkId='client-period-end').answer.value" */ * item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#tab-container +* item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control|1.0.0#tab-container * item[=].linkId = "tab-container" * item[=].type = #group * item[=].repeats = false @@ -123,7 +147,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.name.where(use='usual').select(given[0])" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "(%patient.name.where(use='usual').select((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()" * item[=].item[=].item[=].item[=].linkId = "patient-name-preferred" * item[=].item[=].item[=].item[=].text = "Preferred name" * item[=].item[=].item[=].item[=].type = #string @@ -145,7 +169,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].repeats = false * item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.deceased.ofType(Boolean)" +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.deceased.ofType(boolean)" * item[=].item[=].item[=].linkId = "patient-deceased" * item[=].item[=].item[=].text = "Deceased indicator" * item[=].item[=].item[=].type = #boolean @@ -335,21 +359,21 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" * item[=].item[=].item[=].extension[=].valueExpression[+].name = "HospitalisationRepeat" * item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath -* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.entry.resource.where(class='IMP' or class='EMER' or class='SS')" +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%Hospitalisation.entry.resource" * item[=].item[=].item[=].linkId = "hospitalisation-encounter" * item[=].item[=].item[=].text = "Hospitalisation encounter" * item[=].item[=].item[=].type = #group * item[=].item[=].item[=].repeats = true * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-description" * item[=].item[=].item[=].item[=].text = "Text description of encounter" -* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].type = #text * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.class" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.class" * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" * item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-class" @@ -361,7 +385,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#SS * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.status" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.status" * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" * item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-status" @@ -369,29 +393,29 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].type = #choice * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#in-progress "In Progress" -* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#finished "Finished" * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.period.start" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.period.start" * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-periodstart" * item[=].item[=].item[=].item[=].text = "Period start" * item[=].item[=].item[=].item[=].type = #date * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.period.end" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.period.end" * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-periodend" * item[=].item[=].item[=].item[=].text = "Period end" * item[=].item[=].item[=].item[=].type = #date * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.where(class='IMP').length.value" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.where(class.exists(code='IMP')).length.value.round(0)" * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-unit" * item[=].item[=].item[=].item[=].extension[=].valueCoding = $UCUM#d * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-duration" * item[=].item[=].item[=].item[=].text = "Duration" -* item[=].item[=].item[=].item[=].type = #decimal +* item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" * item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#unit @@ -400,25 +424,30 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].type = #display * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.reasonCode.text" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.reasonCode.text" * item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-reason" * item[=].item[=].item[=].item[=].text = "Reason" * item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].repeats = false -// is this all that's wanted? * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterAll.serviceProvider.reference" -* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-serviceprovider" -* item[=].item[=].item[=].item[=].text = "Facility managing encounter (id only)" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.serviceProvider.display" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-serviceprovidername" +* item[=].item[=].item[=].item[=].text = "Service provider name" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.serviceProvider.identifier.value" +* item[=].item[=].item[=].item[=].linkId = "hospitalisation-encounter-serviceprovideridentifier" +* item[=].item[=].item[=].item[=].text = "Service provider identifier" * item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].repeats = false - //Medical history * item[=].item[+].linkId = "medicalhistory" -* item[=].item[=].text = "Medical History" +* item[=].item[=].text = "Medical history" * item[=].item[=].type = #group * item[=].item[=].repeats = false * item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" @@ -432,7 +461,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].type = #group * item[=].item[=].item[=].repeats = true * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#autocomplete * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.code.coding" @@ -452,9 +481,9 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.status" -* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-status" -* item[=].item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.clinicalStatus.coding" +* item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-clinicalstatus" +* item[=].item[=].item[=].item[=].text = "Clinical status" * item[=].item[=].item[=].item[=].type = #choice * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].answerValueSet = "http://hl7.org/fhir/ValueSet/condition-clinical" @@ -463,20 +492,809 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.onset.ofType(dateTime)" * item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-onsetdate" * item[=].item[=].item[=].item[=].text = "Onset date" -* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].type = #dateTime * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.abatement.ofType(dateTime)" * item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-abatementdate" * item[=].item[=].item[=].item[=].text = "Abatement date" -* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].type = #dateTime * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%ProblemListItemRepeat.recordedDate" * item[=].item[=].item[=].item[=].linkId = "medicalhistory-condition-recordeddate" * item[=].item[=].item[=].item[=].text = "Recorded date" -* item[=].item[=].item[=].item[=].type = #date +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false + +//Pressure Injuries +* item[=].item[+].linkId = "pressureinjuries" +* item[=].item[=].text = "Pressure injuries" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "PressureInjuryRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjury.entry.resource" +* item[=].item[=].item[=].linkId = "pressureinjuries-wound" +* item[=].item[=].item[=].text = "Pressure injury wound" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.stage.summary.coding" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-stage" +* item[=].item[=].item[=].item[=].text = "Stage" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#1163217004 "Pressure injury stage I" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#1163220007 "Pressure injury stage II" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#1163222004 "Pressure injury stage III" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#1163224003 "Pressure injury stage IV" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#723071003 "Deep tissue pressure injury" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#723073000 "Suspected deep tissue pressure injury" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#1163226001 "Unstageable pressure injury" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.stage.summary.text" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-stage-text" +* item[=].item[=].item[=].item[=].text = "Stage text" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.clinicalStatus.coding" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-clinicalstatus" +* item[=].item[=].item[=].item[=].text = "Clinical status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerValueSet = "http://hl7.org/fhir/ValueSet/condition-clinical" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.onset.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-onsetdate" +* item[=].item[=].item[=].item[=].text = "Onset date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.abatement.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-abatementdate" +* item[=].item[=].item[=].item[=].text = "Abatement date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.recordedDate" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-recordeddate" +* item[=].item[=].item[=].item[=].text = "Recorded date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.extension.where(url='https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired').value.coding" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-environmentacquired" +* item[=].item[=].item[=].item[=].text = "Environment acquired" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#22232009 "Hospital" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#285202004 "Community environment" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#257652008 "Aged care facility" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.evidence.code.text" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-description" +* item[=].item[=].item[=].item[=].text = "Description" +* item[=].item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%PressureInjuryRepeat.bodySite.text" +* item[=].item[=].item[=].item[=].linkId = "pressureinjuries-wound-bodysite" +* item[=].item[=].item[=].item[=].text = "Body site" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + +//Restrictive Practice +* item[=].item[+].linkId = "restrictivepractice" +* item[=].item[=].text = "Restrictive practice" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "RestrictivePracticeRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePractice.entry.resource" +* item[=].item[=].item[=].linkId = "restrictivepractice-intervention" +* item[=].item[=].item[=].text = "Restrictive practice intervention" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.code.coding" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-code" +* item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#386423001 "Physical restraint" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#90278001 "Secluding patient" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#386517008 "Area restriction (Environmental)" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#68894007 "Placing restraint (Mechanical)" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.status" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-status" +* item[=].item[=].item[=].item[=].text = "Status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/event-status#in-progress "In Progress" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/event-status#on-hold "On Hold" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/event-status#completed "Completed" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.select(performed.start | performed.ofType(dateTime))" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-performedstartdate" +* item[=].item[=].item[=].item[=].text = "Performed start date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.select(performed.end)" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-performedenddate" +* item[=].item[=].item[=].item[=].text = "Performed end date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.usedCode.coding.system" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-restraintsubtypecode-system" +* item[=].item[=].item[=].item[=].text = "Restraint subtype code system" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.usedCode.coding.code" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-restraintsubtypecode-code" +* item[=].item[=].item[=].item[=].text = "Restraint subtype code code" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.usedCode.coding.display" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-restraintsubtypecode-display" +* item[=].item[=].item[=].item[=].text = "Restraint subtype code display" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.usedCode.text" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-restraintsubtypetext" +* item[=].item[=].item[=].item[=].text = "Restraint subtype text" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].name = "RestrictivePracticeNoteRepeat" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeRepeat.note" +* item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-note" +* item[=].item[=].item[=].item[=].text = "Note" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeNoteRepeat.time" +* item[=].item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-note-time" +* item[=].item[=].item[=].item[=].item[=].text = "Time" +* item[=].item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%RestrictivePracticeNoteRepeat.text" +* item[=].item[=].item[=].item[=].item[=].linkId = "restrictivepractice-intervention-note-text" +* item[=].item[=].item[=].item[=].item[=].text = "Text" +* item[=].item[=].item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].item[=].item[=].repeats = false + + + +//Body weight +* item[=].item[+].linkId = "bodyweight" +* item[=].item[=].text = "Body weight" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#gtable +* item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "WeightRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%Weight.entry.resource" +* item[=].item[=].item[=].linkId = "bodyweight-observation" +* item[=].item[=].item[=].text = "Body weight observation" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%WeightRepeat.effective.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "bodyweight-observation-effectivedate" +* item[=].item[=].item[=].item[=].text = "Effective date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%WeightRepeat.value.ofType(Quantity).value" +* item[=].item[=].item[=].item[=].linkId = "bodyweight-observation-value" +* item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].type = #decimal +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%WeightRepeat.value.ofType(Quantity).code" +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].linkId = "bodyweight-observation-unitcode" +* item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueString = "kg" +* item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%WeightRepeat.issued" +* item[=].item[=].item[=].item[=].linkId = "bodyweight-observation-issued" +* item[=].item[=].item[=].item[=].text = "Issued" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false + +//Incontinence +* item[=].item[+].linkId = "continence" +* item[=].item[=].text = "Continence" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].linkId = "continence-urinary" +* item[=].item[=].item[=].text = "Urinary continence" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%UrinaryContinence.entry.resource.effective.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "continence-urinary-effectivedate" +* item[=].item[=].item[=].item[=].text = "Effective date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%UrinaryContinence.entry.resource.value.coding" +* item[=].item[=].item[=].item[=].linkId = "continence-urinary-code" +* item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA126-5 "CONTINENT-Complete control [includes use of indwelling urinary catheter or ostomy device that does not leak urine or stool]" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA127-3 "USUALLY CONTINENT-BLADDER, incontinent episodes once a week or less; BOWEL, less than weekly" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA128-1 "OCCASIONALLY INCONTINENT-BLADDER, 2 or more times a week but not daily; BOWEL, once a week" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA129-9 "FREQUENTLY INCONTINENT-BLADDER, tended to be incontinent daily, but some control present (e.g., on day shift); BOWEL, 2-3 times a week" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA130-7 "INCONTINENT-Had inadequate control BLADDER, multiple daily episodes; BOWEL, all (or almost all) of the time" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%UrinaryContinence.entry.resource.value.text" +* item[=].item[=].item[=].item[=].linkId = "continence-urinary-text" +* item[=].item[=].item[=].item[=].text = "Text" +* item[=].item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%UrinaryContinence.entry.resource.issued" +* item[=].item[=].item[=].item[=].linkId = "continence-urinary-issued" +* item[=].item[=].item[=].item[=].text = "Issued" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false + +* item[=].item[=].item[+].linkId = "continence-bowel" +* item[=].item[=].item[=].text = "Bowel continence" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BowelContinence.entry.resource.effective.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "continence-bowel-effectivedate" +* item[=].item[=].item[=].item[=].text = "Effective date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BowelContinence.entry.resource.value.coding" +* item[=].item[=].item[=].item[=].linkId = "continence-bowel-code" +* item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA126-5 "CONTINENT-Complete control [includes use of indwelling urinary catheter or ostomy device that does not leak urine or stool]" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA127-3 "USUALLY CONTINENT-BLADDER, incontinent episodes once a week or less; BOWEL, less than weekly" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA128-1 "OCCASIONALLY INCONTINENT-BLADDER, 2 or more times a week but not daily; BOWEL, once a week" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA129-9 "FREQUENTLY INCONTINENT-BLADDER, tended to be incontinent daily, but some control present (e.g., on day shift); BOWEL, 2-3 times a week" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#LA130-7 "INCONTINENT-Had inadequate control BLADDER, multiple daily episodes; BOWEL, all (or almost all) of the time" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BowelContinence.entry.resource.value.text" +* item[=].item[=].item[=].item[=].linkId = "continence-bowel-text" +* item[=].item[=].item[=].item[=].text = "Text" +* item[=].item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BowelContinence.entry.resource.issued" +* item[=].item[=].item[=].item[=].linkId = "continence-bowel-issued" +* item[=].item[=].item[=].item[=].text = "Issued" +* item[=].item[=].item[=].item[=].type = #dateTime * item[=].item[=].item[=].item[=].repeats = false +//IAD +* item[=].item[+].linkId = "iad" +* item[=].item[=].text = "Incontinence associated dermatitis" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "IADRepeat" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IAD.entry.resource" +* item[=].item[=].item[=].linkId = "iad-wound" +* item[=].item[=].item[=].text = "Incontinence associated dermatitis wound" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].repeats = true +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.stage.summary.coding" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-stage" +* item[=].item[=].item[=].item[=].text = "Stage" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#264653008 "1A" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#264654002 "1B" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#264662005 "2A" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $SCT#264663000 "2B" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.stage.summary.text" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-stage-text" +* item[=].item[=].item[=].item[=].text = "Stage text" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.clinicalStatus.coding" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-clinicalstatus" +* item[=].item[=].item[=].item[=].text = "Clinical status" +* item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].answerValueSet = "http://hl7.org/fhir/ValueSet/condition-clinical" +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.onset.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-onsetdate" +* item[=].item[=].item[=].item[=].text = "Onset date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.abatement.ofType(dateTime)" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-abatementdate" +* item[=].item[=].item[=].item[=].text = "Abatement date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.recordedDate" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-recordeddate" +* item[=].item[=].item[=].item[=].text = "Recorded date" +* item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.evidence.code.text" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-description" +* item[=].item[=].item[=].item[=].text = "Description" +* item[=].item[=].item[=].item[=].type = #text +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%IADRepeat.bodySite.text" +* item[=].item[=].item[=].item[=].linkId = "iad-wound-bodysite" +* item[=].item[=].item[=].item[=].text = "Body site" +* item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].repeats = false + +//Barthel Index +* item[=].item[+].linkId = "barthel" +* item[=].item[=].text = "Barthel index" +* item[=].item[=].type = #group +* item[=].item[=].repeats = false +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#grid +* item[=].item[=].item[=].linkId = "barthel-modified" +* item[=].item[=].item[=].text = "Modified Barthel index of activities of daily living score" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[+].linkId = "barthel-modified-score" +* item[=].item[=].item[=].item[=].text = "Modified Barthel index score" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.effective.ofType(dateTime)" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-modified-effectivedate" +* item[=].item[=].item[=].item[=].item[=].text = "Effective date" +* item[=].item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-modified-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-modified-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.issued" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-modified-issued" +* item[=].item[=].item[=].item[=].item[=].text = "Issued" +* item[=].item[=].item[=].item[=].item[=].type = #dateTime +* item[=].item[=].item[=].item[=].item[=].repeats = false + +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#grid +* item[=].item[=].item[=].linkId = "barthel-components" +* item[=].item[=].item[=].text = "Modified Barthel index of activities of daily living component questions" +* item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[+].linkId = "barthel-components-feeding" +* item[=].item[=].item[=].item[=].text = "Feeding" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-feeding-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83184-2 "Feeding or eating - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-feeding-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-feeding-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-transfer" +* item[=].item[=].item[=].item[=].text = "Transfer" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-transfer-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83185-9 "Transferring - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-transfer-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-transfer-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-grooming" +* item[=].item[=].item[=].item[=].text = "Grooming" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-grooming-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96767-9 "Grooming - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-grooming-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-grooming-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-toiletuse" +* item[=].item[=].item[=].item[=].text = "Toilet Use" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-toiletuse-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83183-4 "Toileting - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-toiletuse-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-toiletuse-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-bathing" +* item[=].item[=].item[=].item[=].text = "Bathing" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bathing-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83181-8 "Bathing - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bathing-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bathing-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-mobility" +* item[=].item[=].item[=].item[=].text = "Mobility" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-mobility-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83186-7 "Ambulation - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-mobility-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-mobility-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-stairs" +* item[=].item[=].item[=].item[=].text = "Stairs" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-stairs-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96758-8 "Stairs - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-stairs-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-stairs-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-dressing" +* item[=].item[=].item[=].item[=].text = "Dressing" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-dressing-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83182-6 "Dressing - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-dressing-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-dressing-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-bowels" +* item[=].item[=].item[=].item[=].text = "Bowels" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bowels-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96759-6 "Bowel control - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bowels-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bowels-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[+].linkId = "barthel-components-bladder" +* item[=].item[=].item[=].item[=].text = "Bladder" +* item[=].item[=].item[=].item[=].type = #group +* item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].code.coding" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bladder-code" +* item[=].item[=].item[=].item[=].item[=].text = "Code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96760-4 "Bladder control - functional ability" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].value.value" +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bladder-value" +* item[=].item[=].item[=].item[=].item[=].text = "Value" +* item[=].item[=].item[=].item[=].item[=].type = #integer +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].value.code" +* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bladder-unitcode" +* item[=].item[=].item[=].item[=].item[=].text = "Unit code" +* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].repeats = false +* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" +* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true \ No newline at end of file diff --git a/input/fsh/extensions.fsh b/input/fsh/extensions.fsh index fafe05d..80ca5d6 100644 --- a/input/fsh/extensions.fsh +++ b/input/fsh/extensions.fsh @@ -4,3 +4,13 @@ Title: "Contained Resource Reference" Description: "This extension is intended to be used as a work around to a known bug whereby contained resources that are not referenced with the type, 'Reference' are removed before a resource is created in a HAPI FHIR server. This is problematic when referencing with the type, 'canonical'. The extension can be used to reference contained resources so they are retained when added to a HAPI FHIR server." * value[x] only Reference + +Extension: ConditionEnvironmentAcquired +Id: ConditionEnvironmentAcquired +Title: "Condition Location" +Description: "The location where the condition was acquired." + +* ^context.type = #element +* ^context.expression = "Condition" +* value[x] 1.. +* value[x] only CodeableConcept or Reference(Location) From 26216ce351677e3e75f9b73d32268c0f28ec475b Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Wed, 20 Dec 2023 09:51:12 +1000 Subject: [PATCH 03/12] extension update --- .../ImplementationGuide-csiro.fhir.au.smartforms.json | 4 ++-- .../StructureDefinition-ConditionEnvironmentAcquired.json | 8 ++++---- input/fsh/extensions.fsh | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json index e60a7da..769dc6d 100644 --- a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json +++ b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json @@ -358,8 +358,8 @@ "reference": { "reference": "StructureDefinition/ConditionEnvironmentAcquired" }, - "name": "Condition Location", - "description": "The location where the condition was acquired.", + "name": "Condition Environment Acquired", + "description": "The location where the condition was acquired. The location may be a specific place or a conceptual type of environment.", "exampleBoolean": false }, { diff --git a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json index 7e02c21..dc27546 100644 --- a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json +++ b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json @@ -3,9 +3,9 @@ "id": "ConditionEnvironmentAcquired", "url": "https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired", "name": "ConditionEnvironmentAcquired", - "title": "Condition Location", + "title": "Condition Environment Acquired", "status": "draft", - "description": "The location where the condition was acquired.", + "description": "The location where the condition was acquired. The location may be a specific place or a conceptual type of environment.", "fhirVersion": "4.0.1", "mapping": [ { @@ -30,8 +30,8 @@ { "id": "Extension", "path": "Extension", - "short": "Condition Location", - "definition": "The location where the condition was acquired." + "short": "Condition Environment Acquired", + "definition": "The location where the condition was acquired. The location may be a specific place or a conceptual type of environment." }, { "id": "Extension.extension", diff --git a/input/fsh/extensions.fsh b/input/fsh/extensions.fsh index 80ca5d6..2930dd0 100644 --- a/input/fsh/extensions.fsh +++ b/input/fsh/extensions.fsh @@ -7,8 +7,8 @@ Description: "This extension is intended to be used as a work around to a known Extension: ConditionEnvironmentAcquired Id: ConditionEnvironmentAcquired -Title: "Condition Location" -Description: "The location where the condition was acquired." +Title: "Condition Environment Acquired" +Description: "The location where the condition was acquired. The location may be a specific place or a conceptual type of environment." * ^context.type = #element * ^context.expression = "Condition" From d9c65bc655912c17299d2452db4ccfaef2acf19a Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Tue, 9 Jan 2024 14:06:58 +1000 Subject: [PATCH 04/12] Status History prepop fix --- .../Questionnaire-AgedCareCMSFacade.json | 16 +++++++++++++--- input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 12 ++++++++---- 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index 245646d..e49a185 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -597,6 +597,16 @@ "repeats": false }, { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext", + "valueExpression": { + "name": "EncounterStatusHistory", + "language": "text/fhirpath", + "expression": "%encounter.statusHistory" + } + } + ], "linkId": "encounter-statushistory", "text": "Status history", "type": "group", @@ -608,7 +618,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%encounter.statusHistory.status" + "expression": "%EncounterStatusHistory.status" } }, { @@ -650,7 +660,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%encounter.statusHistory.period.start" + "expression": "%EncounterStatusHistory.period.start" } } ], @@ -665,7 +675,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%encounter.statusHistory.period.end" + "expression": "%EncounterStatusHistory.period.end" } } ], diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index 5fb6d3e..d7573fb 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -290,13 +290,17 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].text = "Period end" * item[=].item[=].item[=].type = #date * item[=].item[=].item[=].repeats = false -* item[=].item[=].item[+].linkId = "encounter-statushistory" +* item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext" +* item[=].item[=].item[=].extension[=].valueExpression[+].name = "EncounterStatusHistory" +* item[=].item[=].item[=].extension[=].valueExpression[=].language = #text/fhirpath +* item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory" +* item[=].item[=].item[=].linkId = "encounter-statushistory" * item[=].item[=].item[=].text = "Status history" * item[=].item[=].item[=].type = #group * item[=].item[=].item[=].repeats = true * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.status" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterStatusHistory.status" * item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" * item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down * item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-status" @@ -307,14 +311,14 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.period.start" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterStatusHistory.period.start" * item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-periodstart" * item[=].item[=].item[=].item[=].text = "Period start" * item[=].item[=].item[=].item[=].type = #date * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%encounter.statusHistory.period.end" +* item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterStatusHistory.period.end" * item[=].item[=].item[=].item[=].linkId = "encounter-statushistory-periodend" * item[=].item[=].item[=].item[=].text = "Period end" * item[=].item[=].item[=].item[=].type = #date From 0244fa6605c8f664419a8db235b7adc2abf1f343 Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Thu, 22 Feb 2024 11:26:47 +1000 Subject: [PATCH 05/12] Add SLK calculation and item --- fsh-generated/fsh-index.json | 394 ++++++++++++++++++ fsh-generated/fsh-index.txt | 50 +++ .../Questionnaire-AgedCareCMSFacade.json | 98 +++++ input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 52 ++- smartforms-template/package/.index.json | 2 +- .../package/content/.index.json | 2 +- .../package/content/assets/.index.json | 2 +- .../package/content/assets/css/.index.json | 2 +- .../package/content/assets/images/.index.json | 2 +- .../package/includes/.index.json | 2 +- 10 files changed, 599 insertions(+), 7 deletions(-) create mode 100644 fsh-generated/fsh-index.json create mode 100644 fsh-generated/fsh-index.txt diff --git a/fsh-generated/fsh-index.json b/fsh-generated/fsh-index.json new file mode 100644 index 0000000..0aa2271 --- /dev/null +++ b/fsh-generated/fsh-index.json @@ -0,0 +1,394 @@ +[ + { + "outputFile": "CodeSystem-QuestionnaireItemControlExtended.json", + "fshName": "QuestionnaireItemControlExtended", + "fshType": "CodeSystem", + "fshFile": "terminology.fsh", + "startLine": 7, + "endLine": 14 + }, + { + "outputFile": "Questionnaire-AboutTheHealthCheck.json", + "fshName": "AboutTheHealthCheck", + "fshType": "Instance", + "fshFile": "715-AboutTheHealthCheck.fsh", + "startLine": 5, + "endLine": 163 + }, + { + "outputFile": "Questionnaire-AbsoluteCVDRiskCalculation.json", + "fshName": "AbsoluteCVDRiskCalculation", + "fshType": "Instance", + "fshFile": "715-Assessment-AbsoluteCVDRiskCalculation.fsh", + "startLine": 5, + "endLine": 415 + }, + { + "outputFile": "Questionnaire-AgedCareCMSFacade.json", + "fshName": "AgedCareCMSFacade", + "fshType": "Instance", + "fshFile": "Questionnaire-AgedCareCMSFacade.fsh", + "startLine": 6, + "endLine": 1354 + }, + { + "outputFile": "Questionnaire-AllergiesAdverseReactions.json", + "fshName": "AllergiesAdverseReactions", + "fshType": "Instance", + "fshFile": "715-Assessment-AllergiesAdverseReactions.fsh", + "startLine": 5, + "endLine": 103 + }, + { + "outputFile": "Questionnaire-AssemblyInstructions.json", + "fshName": "AssemblyInstructions", + "fshType": "Instance", + "fshFile": "715-AssemblyInstructions.fsh", + "startLine": 5, + "endLine": 577 + }, + { + "outputFile": "Questionnaire-ChronicDiseaseAgeing.json", + "fshName": "ChronicDiseaseAgeing", + "fshType": "Instance", + "fshFile": "715-Assessment-ChronicDiseaseAgeing.fsh", + "startLine": 5, + "endLine": 120 + }, + { + "outputFile": "Questionnaire-Consent.json", + "fshName": "Consent", + "fshType": "Instance", + "fshFile": "715-Consent.fsh", + "startLine": 7, + "endLine": 216 + }, + { + "outputFile": "Questionnaire-CurrentPriorities.json", + "fshName": "CurrentPriorities", + "fshType": "Instance", + "fshFile": "715-Assessment-CurrentPriorities.fsh", + "startLine": 5, + "endLine": 182 + }, + { + "outputFile": "Questionnaire-EarHealthAndHearing.json", + "fshName": "EarHealthAndHearing", + "fshType": "Instance", + "fshFile": "715-Assessment-EarHealthAndHearing.fsh", + "startLine": 5, + "endLine": 321 + }, + { + "outputFile": "Questionnaire-Examination.json", + "fshName": "Examination", + "fshType": "Instance", + "fshFile": "715-Assessment-Examination.fsh", + "startLine": 5, + "endLine": 504 + }, + { + "outputFile": "Questionnaire-EyeHealth.json", + "fshName": "EyeHealth", + "fshType": "Instance", + "fshFile": "715-Assessment-EyeHealth.fsh", + "startLine": 5, + "endLine": 228 + }, + { + "outputFile": "Questionnaire-FamilyHistory.json", + "fshName": "FamilyHistory", + "fshType": "Instance", + "fshFile": "715-Assessment-FamilyHistory.fsh", + "startLine": 5, + "endLine": 126 + }, + { + "outputFile": "Questionnaire-FinalisingHealthCheck.json", + "fshName": "FinalisingHealthCheck", + "fshType": "Instance", + "fshFile": "715-FinalisingHealthCheck.fsh", + "startLine": 5, + "endLine": 448 + }, + { + "outputFile": "Questionnaire-Gambling.json", + "fshName": "Gambling", + "fshType": "Instance", + "fshFile": "715-Assessment-Gambling.fsh", + "startLine": 5, + "endLine": 122 + }, + { + "outputFile": "Questionnaire-HealthPrioritiesSummary.json", + "fshName": "HealthPrioritiesSummary", + "fshType": "Instance", + "fshFile": "715-HealthPrioritiesSummary.fsh", + "startLine": 5, + "endLine": 568 + }, + { + "outputFile": "Questionnaire-HealthyEating.json", + "fshName": "HealthyEating", + "fshType": "Instance", + "fshFile": "715-Assessment-HealthyEating.fsh", + "startLine": 5, + "endLine": 285 + }, + { + "outputFile": "Questionnaire-HomeAndFamily.json", + "fshName": "HomeAndFamily", + "fshType": "Instance", + "fshFile": "715-Assessment-HomeAndFamily.fsh", + "startLine": 5, + "endLine": 155 + }, + { + "outputFile": "Questionnaire-Immunisation.json", + "fshName": "Immunisation", + "fshType": "Instance", + "fshFile": "715-Assessment-Immunisation.fsh", + "startLine": 5, + "endLine": 163 + }, + { + "outputFile": "Questionnaire-Investigations.json", + "fshName": "Investigations", + "fshType": "Instance", + "fshFile": "715-Assessment-Investigations.fsh", + "startLine": 5, + "endLine": 133 + }, + { + "outputFile": "Questionnaire-LearningAndDevelopment.json", + "fshName": "LearningAndDevelopment", + "fshType": "Instance", + "fshFile": "715-Assessment-LearningAndDevelopment.fsh", + "startLine": 5, + "endLine": 224 + }, + { + "outputFile": "Questionnaire-LearningAndWork.json", + "fshName": "LearningAndWork", + "fshType": "Instance", + "fshFile": "715-Assessment-LearningAndWork.fsh", + "startLine": 5, + "endLine": 227 + }, + { + "outputFile": "Questionnaire-MedicalHistoryCurrentProblems.json", + "fshName": "MedicalHistoryCurrentProblems", + "fshType": "Instance", + "fshFile": "715-Assessment-MedicalHistoryCurrentProblems.fsh", + "startLine": 5, + "endLine": 301 + }, + { + "outputFile": "Questionnaire-MemoryAndThinking.json", + "fshName": "MemoryAndThinking", + "fshType": "Instance", + "fshFile": "715-Assessment-MemoryAndThinking.fsh", + "startLine": 5, + "endLine": 155 + }, + { + "outputFile": "Questionnaire-Mood.json", + "fshName": "Mood", + "fshType": "Instance", + "fshFile": "715-Assessment-Mood.fsh", + "startLine": 5, + "endLine": 130 + }, + { + "outputFile": "Questionnaire-OralAndDentalHealth.json", + "fshName": "OralAndDentalHealth", + "fshType": "Instance", + "fshFile": "715-Assessment-OralAndDentalHealth.fsh", + "startLine": 5, + "endLine": 177 + }, + { + "outputFile": "Questionnaire-PatientDetails.json", + "fshName": "PatientDetails", + "fshType": "Instance", + "fshFile": "715-PatientDetails.fsh", + "startLine": 5, + "endLine": 709 + }, + { + "outputFile": "Questionnaire-PhysicalActivityAndScreenTime.json", + "fshName": "PhysicalActivityAndScreenTime", + "fshType": "Instance", + "fshFile": "715-Assessment-PhysicalActivityAndScreenTime.fsh", + "startLine": 5, + "endLine": 276 + }, + { + "outputFile": "Questionnaire-RedFlagsEarlyIdentificationGuide.json", + "fshName": "RedFlagsEarlyIdentificationGuide", + "fshType": "Instance", + "fshFile": "715-Assessment-RedFlagsEarlyIdentificationGuide.fsh", + "startLine": 5, + "endLine": 518 + }, + { + "outputFile": "Questionnaire-RegularMedications.json", + "fshName": "RegularMedications", + "fshType": "Instance", + "fshFile": "715-Assessment-RegularMedications.fsh", + "startLine": 5, + "endLine": 157 + }, + { + "outputFile": "Questionnaire-ScreeningPrograms.json", + "fshName": "ScreeningPrograms", + "fshType": "Instance", + "fshFile": "715-Assessment-ScreeningPrograms.fsh", + "startLine": 5, + "endLine": 187 + }, + { + "outputFile": "Questionnaire-SexualHealth.json", + "fshName": "SexualHealth", + "fshType": "Instance", + "fshFile": "715-Assessment-SexualHealth.fsh", + "startLine": 5, + "endLine": 370 + }, + { + "outputFile": "Questionnaire-Skin.json", + "fshName": "Skin", + "fshType": "Instance", + "fshFile": "715-Assessment-Skin.fsh", + "startLine": 5, + "endLine": 168 + }, + { + "outputFile": "Questionnaire-SocialAndEmotionalWellbeing.json", + "fshName": "SocialAndEmotionalWellbeing", + "fshType": "Instance", + "fshFile": "715-Assessment-SocialAndEmotionalWellbeing.fsh", + "startLine": 5, + "endLine": 142 + }, + { + "outputFile": "Questionnaire-SocialHistoryChild.json", + "fshName": "SocialHistoryChild", + "fshType": "Instance", + "fshFile": "715-Assessment-SocialHistoryChild.fsh", + "startLine": 5, + "endLine": 146 + }, + { + "outputFile": "Questionnaire-SubstanceUse.json", + "fshName": "SubstanceUse", + "fshType": "Instance", + "fshFile": "715-Assessment-SubstanceUse.fsh", + "startLine": 5, + "endLine": 209 + }, + { + "outputFile": "StructureDefinition-ConditionEnvironmentAcquired.json", + "fshName": "ConditionEnvironmentAcquired", + "fshType": "Extension", + "fshFile": "extensions.fsh", + "startLine": 8, + "endLine": 16 + }, + { + "outputFile": "StructureDefinition-ContainedResourceReference.json", + "fshName": "ContainedResourceReference", + "fshType": "Extension", + "fshFile": "extensions.fsh", + "startLine": 1, + "endLine": 6 + }, + { + "outputFile": "ValueSet-AboriginalTorresStraitIslander.json", + "fshName": "AboriginalTorresStraitIslander", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 102, + "endLine": 128 + }, + { + "outputFile": "ValueSet-MedicalHistory.json", + "fshName": "MedicalHistory", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 172, + "endLine": 178 + }, + { + "outputFile": "ValueSet-PrimaryCarerParentGrandparent.json", + "fshName": "PrimaryCarerParentGrandparent", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 133, + "endLine": 169 + }, + { + "outputFile": "ValueSet-YesNo.json", + "fshName": "YesNo", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 79, + "endLine": 98 + }, + { + "outputFile": "ValueSet-YesNoNA.json", + "fshName": "YesNoNA", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 53, + "endLine": 76 + }, + { + "outputFile": "ValueSet-YesNoNotAskedDeclined.json", + "fshName": "YesNoNotAskedDeclined", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 16, + "endLine": 51 + }, + { + "outputFile": "ValueSet-australian-states-territories-2.json", + "fshName": "AustralianStatesAndTerritories", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 497, + "endLine": 559 + }, + { + "outputFile": "ValueSet-biological-sex-1.json", + "fshName": "BiologicalSex", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 658, + "endLine": 695 + }, + { + "outputFile": "ValueSet-condition-clinical.json", + "fshName": "ConditionClinicalStatusCodes", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 443, + "endLine": 492 + }, + { + "outputFile": "ValueSet-gender-identity-response-1.json", + "fshName": "GenderIdentityResponse", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 562, + "endLine": 614 + }, + { + "outputFile": "ValueSet-pronouns.json", + "fshName": "PersonalPronouns", + "fshType": "ValueSet", + "fshFile": "terminology.fsh", + "startLine": 616, + "endLine": 656 + } +] diff --git a/fsh-generated/fsh-index.txt b/fsh-generated/fsh-index.txt new file mode 100644 index 0000000..acfb6c9 --- /dev/null +++ b/fsh-generated/fsh-index.txt @@ -0,0 +1,50 @@ +Output File Name Type FSH File Lines +CodeSystem-QuestionnaireItemControlExtended.json QuestionnaireItemControlExtended CodeSystem terminology.fsh 7 - 14 +Questionnaire-AboutTheHealthCheck.json AboutTheHealthCheck Instance 715-AboutTheHealthCheck.fsh 5 - 163 +Questionnaire-AbsoluteCVDRiskCalculation.json AbsoluteCVDRiskCalculation Instance 715-Assessment-AbsoluteCVDRiskCalculation.fsh 5 - 415 +Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1354 +Questionnaire-AllergiesAdverseReactions.json AllergiesAdverseReactions Instance 715-Assessment-AllergiesAdverseReactions.fsh 5 - 103 +Questionnaire-AssemblyInstructions.json AssemblyInstructions Instance 715-AssemblyInstructions.fsh 5 - 577 +Questionnaire-ChronicDiseaseAgeing.json ChronicDiseaseAgeing Instance 715-Assessment-ChronicDiseaseAgeing.fsh 5 - 120 +Questionnaire-Consent.json Consent Instance 715-Consent.fsh 7 - 216 +Questionnaire-CurrentPriorities.json CurrentPriorities Instance 715-Assessment-CurrentPriorities.fsh 5 - 182 +Questionnaire-EarHealthAndHearing.json EarHealthAndHearing Instance 715-Assessment-EarHealthAndHearing.fsh 5 - 321 +Questionnaire-Examination.json Examination Instance 715-Assessment-Examination.fsh 5 - 504 +Questionnaire-EyeHealth.json EyeHealth Instance 715-Assessment-EyeHealth.fsh 5 - 228 +Questionnaire-FamilyHistory.json FamilyHistory Instance 715-Assessment-FamilyHistory.fsh 5 - 126 +Questionnaire-FinalisingHealthCheck.json FinalisingHealthCheck Instance 715-FinalisingHealthCheck.fsh 5 - 448 +Questionnaire-Gambling.json Gambling Instance 715-Assessment-Gambling.fsh 5 - 122 +Questionnaire-HealthPrioritiesSummary.json HealthPrioritiesSummary Instance 715-HealthPrioritiesSummary.fsh 5 - 568 +Questionnaire-HealthyEating.json HealthyEating Instance 715-Assessment-HealthyEating.fsh 5 - 285 +Questionnaire-HomeAndFamily.json HomeAndFamily Instance 715-Assessment-HomeAndFamily.fsh 5 - 155 +Questionnaire-Immunisation.json Immunisation Instance 715-Assessment-Immunisation.fsh 5 - 163 +Questionnaire-Investigations.json Investigations Instance 715-Assessment-Investigations.fsh 5 - 133 +Questionnaire-LearningAndDevelopment.json LearningAndDevelopment Instance 715-Assessment-LearningAndDevelopment.fsh 5 - 224 +Questionnaire-LearningAndWork.json LearningAndWork Instance 715-Assessment-LearningAndWork.fsh 5 - 227 +Questionnaire-MedicalHistoryCurrentProblems.json MedicalHistoryCurrentProblems Instance 715-Assessment-MedicalHistoryCurrentProblems.fsh 5 - 301 +Questionnaire-MemoryAndThinking.json MemoryAndThinking Instance 715-Assessment-MemoryAndThinking.fsh 5 - 155 +Questionnaire-Mood.json Mood Instance 715-Assessment-Mood.fsh 5 - 130 +Questionnaire-OralAndDentalHealth.json OralAndDentalHealth Instance 715-Assessment-OralAndDentalHealth.fsh 5 - 177 +Questionnaire-PatientDetails.json PatientDetails Instance 715-PatientDetails.fsh 5 - 709 +Questionnaire-PhysicalActivityAndScreenTime.json PhysicalActivityAndScreenTime Instance 715-Assessment-PhysicalActivityAndScreenTime.fsh 5 - 276 +Questionnaire-RedFlagsEarlyIdentificationGuide.json RedFlagsEarlyIdentificationGuide Instance 715-Assessment-RedFlagsEarlyIdentificationGuide.fsh 5 - 518 +Questionnaire-RegularMedications.json RegularMedications Instance 715-Assessment-RegularMedications.fsh 5 - 157 +Questionnaire-ScreeningPrograms.json ScreeningPrograms Instance 715-Assessment-ScreeningPrograms.fsh 5 - 187 +Questionnaire-SexualHealth.json SexualHealth Instance 715-Assessment-SexualHealth.fsh 5 - 370 +Questionnaire-Skin.json Skin Instance 715-Assessment-Skin.fsh 5 - 168 +Questionnaire-SocialAndEmotionalWellbeing.json SocialAndEmotionalWellbeing Instance 715-Assessment-SocialAndEmotionalWellbeing.fsh 5 - 142 +Questionnaire-SocialHistoryChild.json SocialHistoryChild Instance 715-Assessment-SocialHistoryChild.fsh 5 - 146 +Questionnaire-SubstanceUse.json SubstanceUse Instance 715-Assessment-SubstanceUse.fsh 5 - 209 +StructureDefinition-ConditionEnvironmentAcquired.json ConditionEnvironmentAcquired Extension extensions.fsh 8 - 16 +StructureDefinition-ContainedResourceReference.json ContainedResourceReference Extension extensions.fsh 1 - 6 +ValueSet-AboriginalTorresStraitIslander.json AboriginalTorresStraitIslander ValueSet terminology.fsh 102 - 128 +ValueSet-MedicalHistory.json MedicalHistory ValueSet terminology.fsh 172 - 178 +ValueSet-PrimaryCarerParentGrandparent.json PrimaryCarerParentGrandparent ValueSet terminology.fsh 133 - 169 +ValueSet-YesNo.json YesNo ValueSet terminology.fsh 79 - 98 +ValueSet-YesNoNA.json YesNoNA ValueSet terminology.fsh 53 - 76 +ValueSet-YesNoNotAskedDeclined.json YesNoNotAskedDeclined ValueSet terminology.fsh 16 - 51 +ValueSet-australian-states-territories-2.json AustralianStatesAndTerritories ValueSet terminology.fsh 497 - 559 +ValueSet-biological-sex-1.json BiologicalSex ValueSet terminology.fsh 658 - 695 +ValueSet-condition-clinical.json ConditionClinicalStatusCodes ValueSet terminology.fsh 443 - 492 +ValueSet-gender-identity-response-1.json GenderIdentityResponse ValueSet terminology.fsh 562 - 614 +ValueSet-pronouns.json PersonalPronouns ValueSet terminology.fsh 616 - 656 \ No newline at end of file diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index e49a185..2711498 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -182,11 +182,109 @@ "repeats": false, "item": [ { + "extension": [ + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "familyNameSecondLetter", + "language": "text/fhirpath", + "expression": "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(1,1) | '2').first()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "familyNameThirdLetter", + "language": "text/fhirpath", + "expression": "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(2,1) | '2').first()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "familyNameFifthLetter", + "language": "text/fhirpath", + "expression": "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(4,1) | '2').first()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "givenNameSecondLetter", + "language": "text/fhirpath", + "expression": "(%patient.name.where(use='official').select(given[0]).replaceMatches('[^A-Za-z]','').substring(1,1) | '2').first()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "givenNameThirdLetter", + "language": "text/fhirpath", + "expression": "(%patient.name.where(use='official').select(given[0]).replaceMatches('[^A-Za-z]','').substring(2,1) | '2').first()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "birthDateString", + "language": "text/fhirpath", + "expression": "%patient.birthDate.split('-').join()" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "genderMaleCode", + "language": "text/fhirpath", + "expression": "iif(%patient.gender = 'male', 1, 0)" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "genderFemaleCode", + "language": "text/fhirpath", + "expression": "iif(%patient.gender = 'female', 2, 0)" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "genderOtherCode", + "language": "text/fhirpath", + "expression": "iif(%patient.gender = 'other', 3, 0)" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "genderUnknown", + "language": "text/fhirpath", + "expression": "iif(%patient.gender = 'unknown' or %patient.gender.empty(), 9, 0)" + } + } + ], "linkId": "patient", "text": "Patient", "type": "group", "repeats": false, "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression", + "valueExpression": { + "description": "SLK Score", + "language": "text/fhirpath", + "expression": "iif(%patient.name.where(use='official').family.empty(), '999', (%familyNameSecondLetter + %familyNameThirdLetter + %familyNameFifthLetter).upper()) + iif(%patient.name.where(use='official').given[0].empty(), '99', (%givenNameSecondLetter + %givenNameThirdLetter).upper()) + %birthDateString.substring(6, 2) + %birthDateString.substring(4, 2) + %birthDateString.substring(0, 4) + (%genderMaleCode + %genderFemaleCode + %genderOtherCode + %genderUnknown).toString()" + } + } + ], + "linkId": "patient-slk", + "text": "SLK", + "type": "string", + "repeats": false + }, { "extension": [ { diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index d7573fb..eb5915b 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -102,10 +102,60 @@ Description: "Aged Care CMS Facade." * item[=].repeats = false //Patient -* item[=].item[+].linkId = "patient" +* item[=].item[+].extension[0].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "familyNameSecondLetter" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(1,1) | '2').first()" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "familyNameThirdLetter" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(2,1) | '2').first()" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "familyNameFifthLetter" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "(%patient.name.where(use='official').select(family).replaceMatches('[^A-Za-z]','').substring(4,1) | '2').first()" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "givenNameSecondLetter" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "(%patient.name.where(use='official').select(given[0]).replaceMatches('[^A-Za-z]','').substring(1,1) | '2').first()" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "givenNameThirdLetter" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "(%patient.name.where(use='official').select(given[0]).replaceMatches('[^A-Za-z]','').substring(2,1) | '2').first()" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "birthDateString" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "%patient.birthDate.split('-').join()" + +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "genderMaleCode" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "iif(%patient.gender = 'male', 1, 0)" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "genderFemaleCode" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "iif(%patient.gender = 'female', 2, 0)" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "genderOtherCode" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "iif(%patient.gender = 'other', 3, 0)" +* item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/variable" +* item[=].item[=].extension[=].valueExpression.name = "genderUnknown" +* item[=].item[=].extension[=].valueExpression.language = #text/fhirpath +* item[=].item[=].extension[=].valueExpression.expression = "iif(%patient.gender = 'unknown' or %patient.gender.empty(), 9, 0)" +* item[=].item[=].linkId = "patient" * item[=].item[=].text = "Patient" * item[=].item[=].type = #group * item[=].item[=].repeats = false + +* item[=].item[=].item[+].extension.url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-calculatedExpression" +* item[=].item[=].item[=].extension.valueExpression.description = "SLK Score" +* item[=].item[=].item[=].extension.valueExpression.language = #text/fhirpath +* item[=].item[=].item[=].extension.valueExpression.expression = "iif(%patient.name.where(use='official').family.empty(), '999', (%familyNameSecondLetter + %familyNameThirdLetter + %familyNameFifthLetter).upper()) + iif(%patient.name.where(use='official').given[0].empty(), '99', (%givenNameSecondLetter + %givenNameThirdLetter).upper()) + %birthDateString.substring(6, 2) + %birthDateString.substring(4, 2) + %birthDateString.substring(0, 4) + (%genderMaleCode + %genderFemaleCode + %genderOtherCode + %genderUnknown).toString()" +* item[=].item[=].item[=].linkId = "patient-slk" +* item[=].item[=].item[=].text = "SLK" +* item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].repeats = false * item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%patient.identifier.where(type.coding.exists(system='http://terminology.hl7.org/CodeSystem/v2-0203' and code='MR')).value" diff --git a/smartforms-template/package/.index.json b/smartforms-template/package/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/.index.json +++ b/smartforms-template/package/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } diff --git a/smartforms-template/package/content/.index.json b/smartforms-template/package/content/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/content/.index.json +++ b/smartforms-template/package/content/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } diff --git a/smartforms-template/package/content/assets/.index.json b/smartforms-template/package/content/assets/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/content/assets/.index.json +++ b/smartforms-template/package/content/assets/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } diff --git a/smartforms-template/package/content/assets/css/.index.json b/smartforms-template/package/content/assets/css/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/content/assets/css/.index.json +++ b/smartforms-template/package/content/assets/css/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } diff --git a/smartforms-template/package/content/assets/images/.index.json b/smartforms-template/package/content/assets/images/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/content/assets/images/.index.json +++ b/smartforms-template/package/content/assets/images/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } diff --git a/smartforms-template/package/includes/.index.json b/smartforms-template/package/includes/.index.json index dbe759e..7ee6e2c 100644 --- a/smartforms-template/package/includes/.index.json +++ b/smartforms-template/package/includes/.index.json @@ -1,4 +1,4 @@ -{ +{ "index-version" : 2, "files" : [] } From fc34e9fedb3c5bcafa8f94dd94b6bc9d00e0cf7a Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Mon, 18 Mar 2024 11:50:01 +1000 Subject: [PATCH 06/12] Add SLK581 identifier profile and link Questionnaire.item.definition to the identifier.value --- fsh-generated/fsh-index.json | 10 ++- fsh-generated/fsh-index.txt | 3 +- fsh-generated/includes/fsh-link-references.md | 1 + ...ntationGuide-csiro.fhir.au.smartforms.json | 8 ++ .../Questionnaire-AgedCareCMSFacade.json | 1 + .../resources/StructureDefinition-slk581.json | 90 +++++++++++++++++++ input/fsh/Identifier-SLK581.fsh | 25 ++++++ input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 1 + 8 files changed, 137 insertions(+), 2 deletions(-) create mode 100644 fsh-generated/resources/StructureDefinition-slk581.json create mode 100644 input/fsh/Identifier-SLK581.fsh diff --git a/fsh-generated/fsh-index.json b/fsh-generated/fsh-index.json index 0aa2271..eea1c92 100644 --- a/fsh-generated/fsh-index.json +++ b/fsh-generated/fsh-index.json @@ -29,7 +29,7 @@ "fshType": "Instance", "fshFile": "Questionnaire-AgedCareCMSFacade.fsh", "startLine": 6, - "endLine": 1354 + "endLine": 1355 }, { "outputFile": "Questionnaire-AllergiesAdverseReactions.json", @@ -303,6 +303,14 @@ "startLine": 1, "endLine": 6 }, + { + "outputFile": "StructureDefinition-slk581.json", + "fshName": "SLK581", + "fshType": "Profile", + "fshFile": "Identifier-SLK581.fsh", + "startLine": 3, + "endLine": 20 + }, { "outputFile": "ValueSet-AboriginalTorresStraitIslander.json", "fshName": "AboriginalTorresStraitIslander", diff --git a/fsh-generated/fsh-index.txt b/fsh-generated/fsh-index.txt index acfb6c9..4629f29 100644 --- a/fsh-generated/fsh-index.txt +++ b/fsh-generated/fsh-index.txt @@ -2,7 +2,7 @@ Output File Name CodeSystem-QuestionnaireItemControlExtended.json QuestionnaireItemControlExtended CodeSystem terminology.fsh 7 - 14 Questionnaire-AboutTheHealthCheck.json AboutTheHealthCheck Instance 715-AboutTheHealthCheck.fsh 5 - 163 Questionnaire-AbsoluteCVDRiskCalculation.json AbsoluteCVDRiskCalculation Instance 715-Assessment-AbsoluteCVDRiskCalculation.fsh 5 - 415 -Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1354 +Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1355 Questionnaire-AllergiesAdverseReactions.json AllergiesAdverseReactions Instance 715-Assessment-AllergiesAdverseReactions.fsh 5 - 103 Questionnaire-AssemblyInstructions.json AssemblyInstructions Instance 715-AssemblyInstructions.fsh 5 - 577 Questionnaire-ChronicDiseaseAgeing.json ChronicDiseaseAgeing Instance 715-Assessment-ChronicDiseaseAgeing.fsh 5 - 120 @@ -37,6 +37,7 @@ Questionnaire-SocialHistoryChild.json SocialHistoryChild Questionnaire-SubstanceUse.json SubstanceUse Instance 715-Assessment-SubstanceUse.fsh 5 - 209 StructureDefinition-ConditionEnvironmentAcquired.json ConditionEnvironmentAcquired Extension extensions.fsh 8 - 16 StructureDefinition-ContainedResourceReference.json ContainedResourceReference Extension extensions.fsh 1 - 6 +StructureDefinition-slk581.json SLK581 Profile Identifier-SLK581.fsh 3 - 20 ValueSet-AboriginalTorresStraitIslander.json AboriginalTorresStraitIslander ValueSet terminology.fsh 102 - 128 ValueSet-MedicalHistory.json MedicalHistory ValueSet terminology.fsh 172 - 178 ValueSet-PrimaryCarerParentGrandparent.json PrimaryCarerParentGrandparent ValueSet terminology.fsh 133 - 169 diff --git a/fsh-generated/includes/fsh-link-references.md b/fsh-generated/includes/fsh-link-references.md index 580f00a..66b9588 100644 --- a/fsh-generated/includes/fsh-link-references.md +++ b/fsh-generated/includes/fsh-link-references.md @@ -50,6 +50,7 @@ [SmartFormsApplication]: CapabilityStatement-SmartFormsApplication.html [SmartFormsLauncherServerAboriginalTorresStraitIslanderHealthCheck]: CapabilityStatement-SFLauncherServerAboriginalTorresStraitIslanderHealthCheck.html [SmartFormsServer]: CapabilityStatement-SmartFormsServer.html +[SLK581]: StructureDefinition-slk581.html [YesNo]: ValueSet-YesNo.html [YesNoNA]: ValueSet-YesNoNA.html [YesNoNotAskedDeclined]: ValueSet-YesNoNotAskedDeclined.html \ No newline at end of file diff --git a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json index 769dc6d..4c970e2 100644 --- a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json +++ b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json @@ -458,6 +458,14 @@ "exampleBoolean": false, "name": "Smart Forms Server" }, + { + "reference": { + "reference": "StructureDefinition/slk581" + }, + "name": "Statistical Linkage Key 581", + "description": "Statistical linkage key 581 represented as an identifier datatype. Specification for generating the SLK581 is definied by the Australian Institute of Health and Welfare, https://meteor.aihw.gov.au/content/750410", + "exampleBoolean": false + }, { "reference": { "reference": "ValueSet/YesNo" diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index 2711498..34a23b5 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -281,6 +281,7 @@ } ], "linkId": "patient-slk", + "definition": "https://smartforms.csiro.au/ig/StructureDefinition/slk581#Identifier.value", "text": "SLK", "type": "string", "repeats": false diff --git a/fsh-generated/resources/StructureDefinition-slk581.json b/fsh-generated/resources/StructureDefinition-slk581.json new file mode 100644 index 0000000..6d5b2c8 --- /dev/null +++ b/fsh-generated/resources/StructureDefinition-slk581.json @@ -0,0 +1,90 @@ +{ + "resourceType": "StructureDefinition", + "id": "slk581", + "url": "https://smartforms.csiro.au/ig/StructureDefinition/slk581", + "name": "SLK581", + "title": "Statistical Linkage Key 581", + "status": "draft", + "description": "Statistical linkage key 581 represented as an identifier datatype. Specification for generating the SLK581 is definied by the Australian Institute of Health and Welfare, https://meteor.aihw.gov.au/content/750410", + "jurisdiction": [ + { + "coding": [ + { + "code": "AU", + "system": "urn:iso:std:iso:3166" + } + ] + } + ], + "fhirVersion": "4.0.1", + "mapping": [ + { + "identity": "v2", + "uri": "http://hl7.org/v2", + "name": "HL7 v2 Mapping" + }, + { + "identity": "rim", + "uri": "http://hl7.org/v3", + "name": "RIM Mapping" + }, + { + "identity": "servd", + "uri": "http://www.omg.org/spec/ServD/1.0/", + "name": "ServD" + } + ], + "kind": "complex-type", + "abstract": false, + "type": "Identifier", + "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Identifier", + "derivation": "constraint", + "differential": { + "element": [ + { + "id": "Identifier", + "path": "Identifier", + "short": "Statistical Linkage Key 581", + "constraint": [ + { + "key": "inv-slk581-value-0", + "human": "SLK581 shall be exactly 14 uppercase alphanumeric characters.", + "source": "https://smartforms.csiro.au/ig/StructureDefinition/slk581", + "severity": "error", + "expression": "value.matches('^([A-Z0-9]{14})$')" + } + ] + }, + { + "id": "Identifier.type", + "path": "Identifier.type", + "min": 1, + "patternCodeableConcept": { + "coding": [ + { + "code": "ANON", + "system": "http://terminology.hl7.org/CodeSystem/v2-0203" + } + ] + } + }, + { + "id": "Identifier.system", + "path": "Identifier.system", + "min": 1, + "fixedUri": "urn:oid:2.16.840.1.113883.3.879.750410" + }, + { + "id": "Identifier.value", + "path": "Identifier.value", + "short": "SLK581", + "comment": "This concept is equivalent to Australian Institute of Health and Welfare data element cluster 755410 [Statistical linkage key 581 cluster, https://meteor.aihw.gov.au/content/750410).", + "min": 1, + "maxLength": 14, + "condition": [ + "inv-slk581-value-0" + ] + } + ] + } +} diff --git a/input/fsh/Identifier-SLK581.fsh b/input/fsh/Identifier-SLK581.fsh new file mode 100644 index 0000000..94e7943 --- /dev/null +++ b/input/fsh/Identifier-SLK581.fsh @@ -0,0 +1,25 @@ +Alias: $v2-0203 = http://terminology.hl7.org/CodeSystem/v2-0203 + +Profile: SLK581 +Parent: Identifier +Id: slk581 +Title: "Statistical Linkage Key 581" +Description: "Statistical linkage key 581 represented as an identifier datatype. Specification for generating the SLK581 is definied by the Australian Institute of Health and Welfare, https://meteor.aihw.gov.au/content/750410" + +* ^jurisdiction = urn:iso:std:iso:3166#AU +* obeys inv-slk581-value-0 +* . ^short = "Statistical Linkage Key 581" +* type 1.. +* type = $v2-0203#ANON +* system 1.. +* system = "urn:oid:2.16.840.1.113883.3.879.750410" (exactly) +* value 1.. +* value ^short = "SLK581" +* value ^comment = "This concept is equivalent to Australian Institute of Health and Welfare data element cluster 755410 [Statistical linkage key 581 cluster, https://meteor.aihw.gov.au/content/750410)." +* value ^maxLength = 14 +* value ^condition[0] = "inv-slk581-value-0" + +Invariant: inv-slk581-value-0 +Description: "SLK581 shall be exactly 14 uppercase alphanumeric characters." +* severity = #error +* expression = "value.matches('^([A-Z0-9]{14})$')" \ No newline at end of file diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index eb5915b..a27cbef 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -153,6 +153,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].extension.valueExpression.language = #text/fhirpath * item[=].item[=].item[=].extension.valueExpression.expression = "iif(%patient.name.where(use='official').family.empty(), '999', (%familyNameSecondLetter + %familyNameThirdLetter + %familyNameFifthLetter).upper()) + iif(%patient.name.where(use='official').given[0].empty(), '99', (%givenNameSecondLetter + %givenNameThirdLetter).upper()) + %birthDateString.substring(6, 2) + %birthDateString.substring(4, 2) + %birthDateString.substring(0, 4) + (%genderMaleCode + %genderFemaleCode + %genderOtherCode + %genderUnknown).toString()" * item[=].item[=].item[=].linkId = "patient-slk" +* item[=].item[=].item[=].definition = "https://smartforms.csiro.au/ig/StructureDefinition/slk581#Identifier.value" * item[=].item[=].item[=].text = "SLK" * item[=].item[=].item[=].type = #string * item[=].item[=].item[=].repeats = false From 193ed21df961933288e1600b518784a5d7012bf3 Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Tue, 7 May 2024 11:36:48 +1000 Subject: [PATCH 07/12] Update Barthel index tab --- fsh-generated/fsh-index.json | 2 +- fsh-generated/fsh-index.txt | 2 +- .../Questionnaire-AgedCareCMSFacade.json | 616 ++---------------- ...finition-ConditionEnvironmentAcquired.json | 7 - ...Definition-ContainedResourceReference.json | 7 - .../resources/StructureDefinition-slk581.json | 17 - input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 128 ++-- smartforms-template/package/.index.db | Bin 12288 -> 12288 bytes smartforms-template/package/content/.index.db | Bin 12288 -> 12288 bytes .../package/content/assets/.index.db | Bin 12288 -> 12288 bytes .../package/content/assets/css/.index.db | Bin 12288 -> 12288 bytes .../package/content/assets/images/.index.db | Bin 12288 -> 12288 bytes .../package/includes/.index.db | Bin 12288 -> 12288 bytes 13 files changed, 99 insertions(+), 680 deletions(-) diff --git a/fsh-generated/fsh-index.json b/fsh-generated/fsh-index.json index eea1c92..6e5a3b9 100644 --- a/fsh-generated/fsh-index.json +++ b/fsh-generated/fsh-index.json @@ -29,7 +29,7 @@ "fshType": "Instance", "fshFile": "Questionnaire-AgedCareCMSFacade.fsh", "startLine": 6, - "endLine": 1355 + "endLine": 1335 }, { "outputFile": "Questionnaire-AllergiesAdverseReactions.json", diff --git a/fsh-generated/fsh-index.txt b/fsh-generated/fsh-index.txt index 4629f29..9bef1c0 100644 --- a/fsh-generated/fsh-index.txt +++ b/fsh-generated/fsh-index.txt @@ -2,7 +2,7 @@ Output File Name CodeSystem-QuestionnaireItemControlExtended.json QuestionnaireItemControlExtended CodeSystem terminology.fsh 7 - 14 Questionnaire-AboutTheHealthCheck.json AboutTheHealthCheck Instance 715-AboutTheHealthCheck.fsh 5 - 163 Questionnaire-AbsoluteCVDRiskCalculation.json AbsoluteCVDRiskCalculation Instance 715-Assessment-AbsoluteCVDRiskCalculation.fsh 5 - 415 -Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1355 +Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1335 Questionnaire-AllergiesAdverseReactions.json AllergiesAdverseReactions Instance 715-Assessment-AllergiesAdverseReactions.fsh 5 - 103 Questionnaire-AssemblyInstructions.json AssemblyInstructions Instance 715-AssemblyInstructions.fsh 5 - 577 Questionnaire-ChronicDiseaseAgeing.json ChronicDiseaseAgeing Instance 715-Assessment-ChronicDiseaseAgeing.fsh 5 - 120 diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index 34a23b5..618802f 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -940,19 +940,19 @@ { "valueCoding": { "code": "IMP", - "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" } }, { "valueCoding": { "code": "EMER", - "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" } }, { "valueCoding": { "code": "SS", - "system": "http://terminology.hl7.org.au/CodeSystem/v3-ActCode" + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" } } ] @@ -2481,43 +2481,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[0].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-feeding-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83184-2", - "system": "http://loinc.org", - "display": "Feeding or eating - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[0].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83184-2')).value.value" } } ], @@ -2532,31 +2496,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[0].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83184-2')).value.code" } } ], "linkId": "barthel-components-feeding-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -2572,43 +2519,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[1].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-transfer-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83185-9", - "system": "http://loinc.org", - "display": "Transferring - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[1].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83185-9')).value.value" } } ], @@ -2623,31 +2534,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[1].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83185-9')).value.code" } } ], "linkId": "barthel-components-transfer-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -2663,43 +2557,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[2].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-grooming-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "96767-9", - "system": "http://loinc.org", - "display": "Grooming - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[2].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96767-9')).value.value" } } ], @@ -2714,31 +2572,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[2].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96767-9')).value.code" } } ], "linkId": "barthel-components-grooming-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -2754,43 +2595,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[3].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-toiletuse-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83183-4", - "system": "http://loinc.org", - "display": "Toileting - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[3].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83183-4')).value.value" } } ], @@ -2805,31 +2610,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[3].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83183-4')).value.code" } } ], "linkId": "barthel-components-toiletuse-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -2845,43 +2633,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[4].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-bathing-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83181-8", - "system": "http://loinc.org", - "display": "Bathing - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[4].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83181-8')).value.value" } } ], @@ -2896,31 +2648,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[4].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83181-8')).value.code" } } ], "linkId": "barthel-components-bathing-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -2936,43 +2671,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[5].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-mobility-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83186-7", - "system": "http://loinc.org", - "display": "Ambulation - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[5].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83186-7')).value.value" } } ], @@ -2987,31 +2686,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[5].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83186-7')).value.code" } } ], "linkId": "barthel-components-mobility-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -3027,43 +2709,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[6].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-stairs-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "96758-8", - "system": "http://loinc.org", - "display": "Stairs - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[6].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96758-8')).value.value" } } ], @@ -3078,31 +2724,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[6].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96758-8')).value.code" } } ], "linkId": "barthel-components-stairs-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -3118,43 +2747,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[7].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-dressing-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "83182-6", - "system": "http://loinc.org", - "display": "Dressing - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[7].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83182-6')).value.value" } } ], @@ -3169,31 +2762,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[7].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83182-6')).value.code" } } ], "linkId": "barthel-components-dressing-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -3209,43 +2785,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[8].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-bowels-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "96759-6", - "system": "http://loinc.org", - "display": "Bowel control - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[8].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96759-6')).value.value" } } ], @@ -3260,31 +2800,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[8].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96759-6')).value.code" } } ], "linkId": "barthel-components-bowels-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] }, @@ -3300,43 +2823,7 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[9].code.coding" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] - } - } - ], - "linkId": "barthel-components-bladder-code", - "text": "Code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueCoding": { - "code": "96760-4", - "system": "http://loinc.org", - "display": "Bladder control - functional ability" - }, - "initialSelected": true - } - ] - }, - { - "extension": [ - { - "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", - "valueExpression": { - "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[9].value.value" + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96760-4')).value.value" } } ], @@ -3351,31 +2838,14 @@ "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", "valueExpression": { "language": "text/fhirpath", - "expression": "%BarthelIndex.entry.resource.component[9].value.code" - } - }, - { - "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", - "valueCodeableConcept": { - "coding": [ - { - "code": "drop-down", - "system": "http://hl7.org/fhir/questionnaire-item-control" - } - ] + "expression": "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96760-4')).value.code" } } ], "linkId": "barthel-components-bladder-unitcode", "text": "Unit code", - "type": "choice", - "repeats": false, - "answerOption": [ - { - "valueString": "{score}", - "initialSelected": true - } - ] + "type": "string", + "repeats": false } ] } diff --git a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json index dc27546..28ce8be 100644 --- a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json +++ b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json @@ -7,13 +7,6 @@ "status": "draft", "description": "The location where the condition was acquired. The location may be a specific place or a conceptual type of environment.", "fhirVersion": "4.0.1", - "mapping": [ - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - } - ], "kind": "complex-type", "abstract": false, "context": [ diff --git a/fsh-generated/resources/StructureDefinition-ContainedResourceReference.json b/fsh-generated/resources/StructureDefinition-ContainedResourceReference.json index 30d3351..9a836e2 100644 --- a/fsh-generated/resources/StructureDefinition-ContainedResourceReference.json +++ b/fsh-generated/resources/StructureDefinition-ContainedResourceReference.json @@ -7,13 +7,6 @@ "status": "draft", "description": "This extension is intended to be used as a work around to a known bug whereby contained resources that are not referenced with the type, 'Reference' are removed before a resource is created in a HAPI FHIR server. This is problematic when referencing with the type, 'canonical'. The extension can be used to reference contained resources so they are retained when added to a HAPI FHIR server.", "fhirVersion": "4.0.1", - "mapping": [ - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - } - ], "kind": "complex-type", "abstract": false, "context": [ diff --git a/fsh-generated/resources/StructureDefinition-slk581.json b/fsh-generated/resources/StructureDefinition-slk581.json index 6d5b2c8..584772c 100644 --- a/fsh-generated/resources/StructureDefinition-slk581.json +++ b/fsh-generated/resources/StructureDefinition-slk581.json @@ -17,23 +17,6 @@ } ], "fhirVersion": "4.0.1", - "mapping": [ - { - "identity": "v2", - "uri": "http://hl7.org/v2", - "name": "HL7 v2 Mapping" - }, - { - "identity": "rim", - "uri": "http://hl7.org/v3", - "name": "RIM Mapping" - }, - { - "identity": "servd", - "uri": "http://www.omg.org/spec/ServD/1.0/", - "name": "ServD" - } - ], "kind": "complex-type", "abstract": false, "type": "Identifier", diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index a27cbef..8530f2e 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -435,9 +435,9 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].text = "Class" * item[=].item[=].item[=].item[=].type = #choice * item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#IMP -* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#EMER -* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org.au/CodeSystem/v3-ActCode#SS +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org/CodeSystem/v3-ActCode#IMP +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org/CodeSystem/v3-ActCode#EMER +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://terminology.hl7.org/CodeSystem/v3-ActCode#SS * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%HospitalisationRepeat.status" @@ -1027,6 +1027,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].text = "Feeding" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].code.coding" @@ -1038,28 +1039,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83184-2 "Feeding or eating - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83184-2')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-feeding-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[0].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83184-2')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-feeding-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-transfer" * item[=].item[=].item[=].item[=].text = "Transfer" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].code.coding" @@ -1071,28 +1070,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83185-9 "Transferring - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83185-9')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-transfer-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[1].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83185-9')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-transfer-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-grooming" * item[=].item[=].item[=].item[=].text = "Grooming" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].code.coding" @@ -1104,28 +1101,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96767-9 "Grooming - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96767-9')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-grooming-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[2].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96767-9')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-grooming-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-toiletuse" * item[=].item[=].item[=].item[=].text = "Toilet Use" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].code.coding" @@ -1137,28 +1132,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83183-4 "Toileting - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83183-4')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-toiletuse-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[3].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83183-4')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-toiletuse-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-bathing" * item[=].item[=].item[=].item[=].text = "Bathing" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].code.coding" @@ -1170,28 +1163,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83181-8 "Bathing - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83181-8')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bathing-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[4].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83181-8')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bathing-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-mobility" * item[=].item[=].item[=].item[=].text = "Mobility" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].code.coding" @@ -1203,28 +1194,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83186-7 "Ambulation - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83186-7')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-mobility-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[5].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83186-7')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-mobility-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-stairs" * item[=].item[=].item[=].item[=].text = "Stairs" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].code.coding" @@ -1236,28 +1225,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96758-8 "Stairs - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96758-8')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-stairs-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[6].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96758-8')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-stairs-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-dressing" * item[=].item[=].item[=].item[=].text = "Dressing" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].code.coding" @@ -1269,28 +1256,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#83182-6 "Dressing - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83182-6')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-dressing-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[7].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='83182-6')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-dressing-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-bowels" * item[=].item[=].item[=].item[=].text = "Bowels" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].code.coding" @@ -1302,28 +1287,26 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96759-6 "Bowel control - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96759-6')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bowels-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[8].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96759-6')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bowels-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice +* item[=].item[=].item[=].item[=].item[=].type = #string * item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true * item[=].item[=].item[=].item[+].linkId = "barthel-components-bladder" * item[=].item[=].item[=].item[=].text = "Bladder" * item[=].item[=].item[=].item[=].type = #group * item[=].item[=].item[=].item[=].repeats = false +/* * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].code.coding" @@ -1335,21 +1318,18 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[=].answerOption[+].valueCoding = $LNC#96760-4 "Bladder control - functional ability" * item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true +*/ * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].value.value" +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96760-4')).value.value" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bladder-value" * item[=].item[=].item[=].item[=].item[=].text = "Value" * item[=].item[=].item[=].item[=].item[=].type = #integer * item[=].item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath -* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component[9].value.code" -* item[=].item[=].item[=].item[=].item[=].extension[+].url = "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl" -* item[=].item[=].item[=].item[=].item[=].extension[=].valueCodeableConcept = http://hl7.org/fhir/questionnaire-item-control#drop-down +* item[=].item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%BarthelIndex.entry.resource.component.where(code.coding.exists(code='96760-4')).value.code" * item[=].item[=].item[=].item[=].item[=].linkId = "barthel-components-bladder-unitcode" * item[=].item[=].item[=].item[=].item[=].text = "Unit code" -* item[=].item[=].item[=].item[=].item[=].type = #choice -* item[=].item[=].item[=].item[=].item[=].repeats = false -* item[=].item[=].item[=].item[=].item[=].answerOption[+].valueString = "{score}" -* item[=].item[=].item[=].item[=].item[=].answerOption[=].initialSelected = true \ No newline at end of file +* item[=].item[=].item[=].item[=].item[=].type = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false \ No newline at end of file diff --git a/smartforms-template/package/.index.db b/smartforms-template/package/.index.db index acb32ab9ffa9a2091936371812233345125df4a1..504ff47b6b2f704dda56a03e8a43e7e6c048fdbf 100644 GIT binary patch delta 31 ncmZojXh@il#8=kI%m0IciI0tekBxu-W Date: Fri, 31 May 2024 13:57:30 +1000 Subject: [PATCH 08/12] Fix status history options --- fsh-generated/fsh-index.json | 2 +- fsh-generated/fsh-index.txt | 2 +- .../resources/Questionnaire-AgedCareCMSFacade.json | 7 +++++++ input/fsh/Questionnaire-AgedCareCMSFacade.fsh | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/fsh-generated/fsh-index.json b/fsh-generated/fsh-index.json index 6e5a3b9..8a3f8a9 100644 --- a/fsh-generated/fsh-index.json +++ b/fsh-generated/fsh-index.json @@ -29,7 +29,7 @@ "fshType": "Instance", "fshFile": "Questionnaire-AgedCareCMSFacade.fsh", "startLine": 6, - "endLine": 1335 + "endLine": 1336 }, { "outputFile": "Questionnaire-AllergiesAdverseReactions.json", diff --git a/fsh-generated/fsh-index.txt b/fsh-generated/fsh-index.txt index 9bef1c0..279ad96 100644 --- a/fsh-generated/fsh-index.txt +++ b/fsh-generated/fsh-index.txt @@ -2,7 +2,7 @@ Output File Name CodeSystem-QuestionnaireItemControlExtended.json QuestionnaireItemControlExtended CodeSystem terminology.fsh 7 - 14 Questionnaire-AboutTheHealthCheck.json AboutTheHealthCheck Instance 715-AboutTheHealthCheck.fsh 5 - 163 Questionnaire-AbsoluteCVDRiskCalculation.json AbsoluteCVDRiskCalculation Instance 715-Assessment-AbsoluteCVDRiskCalculation.fsh 5 - 415 -Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1335 +Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1336 Questionnaire-AllergiesAdverseReactions.json AllergiesAdverseReactions Instance 715-Assessment-AllergiesAdverseReactions.fsh 5 - 103 Questionnaire-AssemblyInstructions.json AssemblyInstructions Instance 715-AssemblyInstructions.fsh 5 - 577 Questionnaire-ChronicDiseaseAgeing.json ChronicDiseaseAgeing Instance 715-Assessment-ChronicDiseaseAgeing.fsh 5 - 120 diff --git a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json index 618802f..74c5a3e 100644 --- a/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -750,6 +750,13 @@ "system": "http://hl7.org/fhir/encounter-status", "display": "On Leave" } + }, + { + "valueCoding": { + "code": "finished", + "system": "http://hl7.org/fhir/encounter-status", + "display": "Finished" + } } ] }, diff --git a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh index 8530f2e..f90e49a 100644 --- a/input/fsh/Questionnaire-AgedCareCMSFacade.fsh +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -360,6 +360,7 @@ Description: "Aged Care CMS Facade." * item[=].item[=].item[=].item[=].repeats = false * item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#in-progress "In Progress" * item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#onleave "On Leave" +* item[=].item[=].item[=].item[=].answerOption[+].valueCoding = http://hl7.org/fhir/encounter-status#finished "Finished" * item[=].item[=].item[=].item[+].extension[+].url = "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression" * item[=].item[=].item[=].item[=].extension[=].valueExpression[+].language = #text/fhirpath * item[=].item[=].item[=].item[=].extension[=].valueExpression[=].expression = "%EncounterStatusHistory.period.start" From 9aa4186aa1242d00d3eede41164b07a645a2092a Mon Sep 17 00:00:00 2001 From: Liam Barnes <69884018+liambarnes@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:40:36 +1000 Subject: [PATCH 09/12] Delete fsh-generated/fsh-index.json --- fsh-generated/fsh-index.json | 402 ----------------------------------- 1 file changed, 402 deletions(-) delete mode 100644 fsh-generated/fsh-index.json diff --git a/fsh-generated/fsh-index.json b/fsh-generated/fsh-index.json deleted file mode 100644 index 8a3f8a9..0000000 --- a/fsh-generated/fsh-index.json +++ /dev/null @@ -1,402 +0,0 @@ -[ - { - "outputFile": "CodeSystem-QuestionnaireItemControlExtended.json", - "fshName": "QuestionnaireItemControlExtended", - "fshType": "CodeSystem", - "fshFile": "terminology.fsh", - "startLine": 7, - "endLine": 14 - }, - { - "outputFile": "Questionnaire-AboutTheHealthCheck.json", - "fshName": "AboutTheHealthCheck", - "fshType": "Instance", - "fshFile": "715-AboutTheHealthCheck.fsh", - "startLine": 5, - "endLine": 163 - }, - { - "outputFile": "Questionnaire-AbsoluteCVDRiskCalculation.json", - "fshName": "AbsoluteCVDRiskCalculation", - "fshType": "Instance", - "fshFile": "715-Assessment-AbsoluteCVDRiskCalculation.fsh", - "startLine": 5, - "endLine": 415 - }, - { - "outputFile": "Questionnaire-AgedCareCMSFacade.json", - "fshName": "AgedCareCMSFacade", - "fshType": "Instance", - "fshFile": "Questionnaire-AgedCareCMSFacade.fsh", - "startLine": 6, - "endLine": 1336 - }, - { - "outputFile": "Questionnaire-AllergiesAdverseReactions.json", - "fshName": "AllergiesAdverseReactions", - "fshType": "Instance", - "fshFile": "715-Assessment-AllergiesAdverseReactions.fsh", - "startLine": 5, - "endLine": 103 - }, - { - "outputFile": "Questionnaire-AssemblyInstructions.json", - "fshName": "AssemblyInstructions", - "fshType": "Instance", - "fshFile": "715-AssemblyInstructions.fsh", - "startLine": 5, - "endLine": 577 - }, - { - "outputFile": "Questionnaire-ChronicDiseaseAgeing.json", - "fshName": "ChronicDiseaseAgeing", - "fshType": "Instance", - "fshFile": "715-Assessment-ChronicDiseaseAgeing.fsh", - "startLine": 5, - "endLine": 120 - }, - { - "outputFile": "Questionnaire-Consent.json", - "fshName": "Consent", - "fshType": "Instance", - "fshFile": "715-Consent.fsh", - "startLine": 7, - "endLine": 216 - }, - { - "outputFile": "Questionnaire-CurrentPriorities.json", - "fshName": "CurrentPriorities", - "fshType": "Instance", - "fshFile": "715-Assessment-CurrentPriorities.fsh", - "startLine": 5, - "endLine": 182 - }, - { - "outputFile": "Questionnaire-EarHealthAndHearing.json", - "fshName": "EarHealthAndHearing", - "fshType": "Instance", - "fshFile": "715-Assessment-EarHealthAndHearing.fsh", - "startLine": 5, - "endLine": 321 - }, - { - "outputFile": "Questionnaire-Examination.json", - "fshName": "Examination", - "fshType": "Instance", - "fshFile": "715-Assessment-Examination.fsh", - "startLine": 5, - "endLine": 504 - }, - { - "outputFile": "Questionnaire-EyeHealth.json", - "fshName": "EyeHealth", - "fshType": "Instance", - "fshFile": "715-Assessment-EyeHealth.fsh", - "startLine": 5, - "endLine": 228 - }, - { - "outputFile": "Questionnaire-FamilyHistory.json", - "fshName": "FamilyHistory", - "fshType": "Instance", - "fshFile": "715-Assessment-FamilyHistory.fsh", - "startLine": 5, - "endLine": 126 - }, - { - "outputFile": "Questionnaire-FinalisingHealthCheck.json", - "fshName": "FinalisingHealthCheck", - "fshType": "Instance", - "fshFile": "715-FinalisingHealthCheck.fsh", - "startLine": 5, - "endLine": 448 - }, - { - "outputFile": "Questionnaire-Gambling.json", - "fshName": "Gambling", - "fshType": "Instance", - "fshFile": "715-Assessment-Gambling.fsh", - "startLine": 5, - "endLine": 122 - }, - { - "outputFile": "Questionnaire-HealthPrioritiesSummary.json", - "fshName": "HealthPrioritiesSummary", - "fshType": "Instance", - "fshFile": "715-HealthPrioritiesSummary.fsh", - "startLine": 5, - "endLine": 568 - }, - { - "outputFile": "Questionnaire-HealthyEating.json", - "fshName": "HealthyEating", - "fshType": "Instance", - "fshFile": "715-Assessment-HealthyEating.fsh", - "startLine": 5, - "endLine": 285 - }, - { - "outputFile": "Questionnaire-HomeAndFamily.json", - "fshName": "HomeAndFamily", - "fshType": "Instance", - "fshFile": "715-Assessment-HomeAndFamily.fsh", - "startLine": 5, - "endLine": 155 - }, - { - "outputFile": "Questionnaire-Immunisation.json", - "fshName": "Immunisation", - "fshType": "Instance", - "fshFile": "715-Assessment-Immunisation.fsh", - "startLine": 5, - "endLine": 163 - }, - { - "outputFile": "Questionnaire-Investigations.json", - "fshName": "Investigations", - "fshType": "Instance", - "fshFile": "715-Assessment-Investigations.fsh", - "startLine": 5, - "endLine": 133 - }, - { - "outputFile": "Questionnaire-LearningAndDevelopment.json", - "fshName": "LearningAndDevelopment", - "fshType": "Instance", - "fshFile": "715-Assessment-LearningAndDevelopment.fsh", - "startLine": 5, - "endLine": 224 - }, - { - "outputFile": "Questionnaire-LearningAndWork.json", - "fshName": "LearningAndWork", - "fshType": "Instance", - "fshFile": "715-Assessment-LearningAndWork.fsh", - "startLine": 5, - "endLine": 227 - }, - { - "outputFile": "Questionnaire-MedicalHistoryCurrentProblems.json", - "fshName": "MedicalHistoryCurrentProblems", - "fshType": "Instance", - "fshFile": "715-Assessment-MedicalHistoryCurrentProblems.fsh", - "startLine": 5, - "endLine": 301 - }, - { - "outputFile": "Questionnaire-MemoryAndThinking.json", - "fshName": "MemoryAndThinking", - "fshType": "Instance", - "fshFile": "715-Assessment-MemoryAndThinking.fsh", - "startLine": 5, - "endLine": 155 - }, - { - "outputFile": "Questionnaire-Mood.json", - "fshName": "Mood", - "fshType": "Instance", - "fshFile": "715-Assessment-Mood.fsh", - "startLine": 5, - "endLine": 130 - }, - { - "outputFile": "Questionnaire-OralAndDentalHealth.json", - "fshName": "OralAndDentalHealth", - "fshType": "Instance", - "fshFile": "715-Assessment-OralAndDentalHealth.fsh", - "startLine": 5, - "endLine": 177 - }, - { - "outputFile": "Questionnaire-PatientDetails.json", - "fshName": "PatientDetails", - "fshType": "Instance", - "fshFile": "715-PatientDetails.fsh", - "startLine": 5, - "endLine": 709 - }, - { - "outputFile": "Questionnaire-PhysicalActivityAndScreenTime.json", - "fshName": "PhysicalActivityAndScreenTime", - "fshType": "Instance", - "fshFile": "715-Assessment-PhysicalActivityAndScreenTime.fsh", - "startLine": 5, - "endLine": 276 - }, - { - "outputFile": "Questionnaire-RedFlagsEarlyIdentificationGuide.json", - "fshName": "RedFlagsEarlyIdentificationGuide", - "fshType": "Instance", - "fshFile": "715-Assessment-RedFlagsEarlyIdentificationGuide.fsh", - "startLine": 5, - "endLine": 518 - }, - { - "outputFile": "Questionnaire-RegularMedications.json", - "fshName": "RegularMedications", - "fshType": "Instance", - "fshFile": "715-Assessment-RegularMedications.fsh", - "startLine": 5, - "endLine": 157 - }, - { - "outputFile": "Questionnaire-ScreeningPrograms.json", - "fshName": "ScreeningPrograms", - "fshType": "Instance", - "fshFile": "715-Assessment-ScreeningPrograms.fsh", - "startLine": 5, - "endLine": 187 - }, - { - "outputFile": "Questionnaire-SexualHealth.json", - "fshName": "SexualHealth", - "fshType": "Instance", - "fshFile": "715-Assessment-SexualHealth.fsh", - "startLine": 5, - "endLine": 370 - }, - { - "outputFile": "Questionnaire-Skin.json", - "fshName": "Skin", - "fshType": "Instance", - "fshFile": "715-Assessment-Skin.fsh", - "startLine": 5, - "endLine": 168 - }, - { - "outputFile": "Questionnaire-SocialAndEmotionalWellbeing.json", - "fshName": "SocialAndEmotionalWellbeing", - "fshType": "Instance", - "fshFile": "715-Assessment-SocialAndEmotionalWellbeing.fsh", - "startLine": 5, - "endLine": 142 - }, - { - "outputFile": "Questionnaire-SocialHistoryChild.json", - "fshName": "SocialHistoryChild", - "fshType": "Instance", - "fshFile": "715-Assessment-SocialHistoryChild.fsh", - "startLine": 5, - "endLine": 146 - }, - { - "outputFile": "Questionnaire-SubstanceUse.json", - "fshName": "SubstanceUse", - "fshType": "Instance", - "fshFile": "715-Assessment-SubstanceUse.fsh", - "startLine": 5, - "endLine": 209 - }, - { - "outputFile": "StructureDefinition-ConditionEnvironmentAcquired.json", - "fshName": "ConditionEnvironmentAcquired", - "fshType": "Extension", - "fshFile": "extensions.fsh", - "startLine": 8, - "endLine": 16 - }, - { - "outputFile": "StructureDefinition-ContainedResourceReference.json", - "fshName": "ContainedResourceReference", - "fshType": "Extension", - "fshFile": "extensions.fsh", - "startLine": 1, - "endLine": 6 - }, - { - "outputFile": "StructureDefinition-slk581.json", - "fshName": "SLK581", - "fshType": "Profile", - "fshFile": "Identifier-SLK581.fsh", - "startLine": 3, - "endLine": 20 - }, - { - "outputFile": "ValueSet-AboriginalTorresStraitIslander.json", - "fshName": "AboriginalTorresStraitIslander", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 102, - "endLine": 128 - }, - { - "outputFile": "ValueSet-MedicalHistory.json", - "fshName": "MedicalHistory", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 172, - "endLine": 178 - }, - { - "outputFile": "ValueSet-PrimaryCarerParentGrandparent.json", - "fshName": "PrimaryCarerParentGrandparent", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 133, - "endLine": 169 - }, - { - "outputFile": "ValueSet-YesNo.json", - "fshName": "YesNo", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 79, - "endLine": 98 - }, - { - "outputFile": "ValueSet-YesNoNA.json", - "fshName": "YesNoNA", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 53, - "endLine": 76 - }, - { - "outputFile": "ValueSet-YesNoNotAskedDeclined.json", - "fshName": "YesNoNotAskedDeclined", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 16, - "endLine": 51 - }, - { - "outputFile": "ValueSet-australian-states-territories-2.json", - "fshName": "AustralianStatesAndTerritories", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 497, - "endLine": 559 - }, - { - "outputFile": "ValueSet-biological-sex-1.json", - "fshName": "BiologicalSex", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 658, - "endLine": 695 - }, - { - "outputFile": "ValueSet-condition-clinical.json", - "fshName": "ConditionClinicalStatusCodes", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 443, - "endLine": 492 - }, - { - "outputFile": "ValueSet-gender-identity-response-1.json", - "fshName": "GenderIdentityResponse", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 562, - "endLine": 614 - }, - { - "outputFile": "ValueSet-pronouns.json", - "fshName": "PersonalPronouns", - "fshType": "ValueSet", - "fshFile": "terminology.fsh", - "startLine": 616, - "endLine": 656 - } -] From af40cc11a5b2c6ffd372f586833f6426d5d95172 Mon Sep 17 00:00:00 2001 From: Liam Barnes <69884018+liambarnes@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:41:15 +1000 Subject: [PATCH 10/12] Delete fsh-generated/includes directory --- fsh-generated/includes/fsh-link-references.md | 56 ------------------- fsh-generated/includes/menu.xml | 54 ------------------ 2 files changed, 110 deletions(-) delete mode 100644 fsh-generated/includes/fsh-link-references.md delete mode 100644 fsh-generated/includes/menu.xml diff --git a/fsh-generated/includes/fsh-link-references.md b/fsh-generated/includes/fsh-link-references.md deleted file mode 100644 index 66b9588..0000000 --- a/fsh-generated/includes/fsh-link-references.md +++ /dev/null @@ -1,56 +0,0 @@ -[AssemblyInstructions]: Questionnaire-AssemblyInstructions.html -[AboriginalTorresStraitIslanderHealthCheck]: Questionnaire-AboriginalTorresStraitIslanderHealthCheck.html -[AboutTheHealthCheck]: Questionnaire-AboutTheHealthCheck.html -[AbsoluteCVDRiskCalculation]: Questionnaire-AbsoluteCVDRiskCalculation.html -[AllergiesAdverseReactions]: Questionnaire-AllergiesAdverseReactions.html -[ChronicDiseaseAgeing]: Questionnaire-ChronicDiseaseAgeing.html -[Consent]: Questionnaire-Consent.html -[CurrentPriorities]: Questionnaire-CurrentPriorities.html -[EarHealthAndHearing]: Questionnaire-EarHealthAndHearing.html -[Examination]: Questionnaire-Examination.html -[EyeHealth]: Questionnaire-EyeHealth.html -[FamilyHistory]: Questionnaire-FamilyHistory.html -[FinalisingHealthCheck]: Questionnaire-FinalisingHealthCheck.html -[Gambling]: Questionnaire-Gambling.html -[HealthPrioritiesSummary]: Questionnaire-HealthPrioritiesSummary.html -[HealthyEating]: Questionnaire-HealthyEating.html -[HomeAndFamily]: Questionnaire-HomeAndFamily.html -[Immunisation]: Questionnaire-Immunisation.html -[Investigations]: Questionnaire-Investigations.html -[LearningAndDevelopment]: Questionnaire-LearningAndDevelopment.html -[LearningAndWork]: Questionnaire-LearningAndWork.html -[MedicalHistoryCurrentProblems]: Questionnaire-MedicalHistoryCurrentProblems.html -[MemoryAndThinking]: Questionnaire-MemoryAndThinking.html -[Mood]: Questionnaire-Mood.html -[OralAndDentalHealth]: Questionnaire-OralAndDentalHealth.html -[PatientDetails]: Questionnaire-PatientDetails.html -[RedFlagsEarlyIdentificationGuide]: Questionnaire-RedFlagsEarlyIdentificationGuide.html -[RegularMedications]: Questionnaire-RegularMedications.html -[ScreeningPrograms]: Questionnaire-ScreeningPrograms.html -[SexualHealth]: Questionnaire-SexualHealth.html -[Skin]: Questionnaire-Skin.html -[SocialAndEmotionalWellbeing]: Questionnaire-SocialAndEmotionalWellbeing.html -[SocialHistoryChild]: Questionnaire-SocialHistoryChild.html -[SubstanceUse]: Questionnaire-SubstanceUse.html -[AboriginalTorresStraitIslander]: ValueSet-AboriginalTorresStraitIslander.html -[AgedCareCMSFacade]: Questionnaire-AgedCareCMSFacade.html -[AustralianStatesAndTerritories]: ValueSet-australian-states-territories-2.html -[BiologicalSex]: ValueSet-biological-sex-1.html -[ConditionClinicalStatusCodes]: ValueSet-condition-clinical.html -[ConditionEnvironmentAcquired]: StructureDefinition-ConditionEnvironmentAcquired.html -[ContainedResourceReference]: StructureDefinition-ContainedResourceReference.html -[GenderIdentityResponse]: ValueSet-gender-identity-response-1.html -[MedicalHistory]: ValueSet-MedicalHistory.html -[PersonalPronouns]: ValueSet-pronouns.html -[PhysicalActivityAndScreenTime]: Questionnaire-PhysicalActivityAndScreenTime.html -[PrimaryCarerParentGrandparent]: ValueSet-PrimaryCarerParentGrandparent.html -[QuestionnaireItemControlExtended]: CodeSystem-QuestionnaireItemControlExtended.html -[QuestionnaireItemUIControlCodes]: CodeSystem-questionnaire-item-control.html -[QuestionnaireItemUIControlCodes]: ValueSet-questionnaire-item-control.html -[SmartFormsApplication]: CapabilityStatement-SmartFormsApplication.html -[SmartFormsLauncherServerAboriginalTorresStraitIslanderHealthCheck]: CapabilityStatement-SFLauncherServerAboriginalTorresStraitIslanderHealthCheck.html -[SmartFormsServer]: CapabilityStatement-SmartFormsServer.html -[SLK581]: StructureDefinition-slk581.html -[YesNo]: ValueSet-YesNo.html -[YesNoNA]: ValueSet-YesNoNA.html -[YesNoNotAskedDeclined]: ValueSet-YesNoNotAskedDeclined.html \ No newline at end of file diff --git a/fsh-generated/includes/menu.xml b/fsh-generated/includes/menu.xml deleted file mode 100644 index 199b0a5..0000000 --- a/fsh-generated/includes/menu.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - \ No newline at end of file From e732d70f3455aba2914cce4bc5a7b281bacd9e6d Mon Sep 17 00:00:00 2001 From: Liam Barnes <69884018+liambarnes@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:41:38 +1000 Subject: [PATCH 11/12] Delete fsh-generated/fsh-index.txt --- fsh-generated/fsh-index.txt | 51 ------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 fsh-generated/fsh-index.txt diff --git a/fsh-generated/fsh-index.txt b/fsh-generated/fsh-index.txt deleted file mode 100644 index 279ad96..0000000 --- a/fsh-generated/fsh-index.txt +++ /dev/null @@ -1,51 +0,0 @@ -Output File Name Type FSH File Lines -CodeSystem-QuestionnaireItemControlExtended.json QuestionnaireItemControlExtended CodeSystem terminology.fsh 7 - 14 -Questionnaire-AboutTheHealthCheck.json AboutTheHealthCheck Instance 715-AboutTheHealthCheck.fsh 5 - 163 -Questionnaire-AbsoluteCVDRiskCalculation.json AbsoluteCVDRiskCalculation Instance 715-Assessment-AbsoluteCVDRiskCalculation.fsh 5 - 415 -Questionnaire-AgedCareCMSFacade.json AgedCareCMSFacade Instance Questionnaire-AgedCareCMSFacade.fsh 6 - 1336 -Questionnaire-AllergiesAdverseReactions.json AllergiesAdverseReactions Instance 715-Assessment-AllergiesAdverseReactions.fsh 5 - 103 -Questionnaire-AssemblyInstructions.json AssemblyInstructions Instance 715-AssemblyInstructions.fsh 5 - 577 -Questionnaire-ChronicDiseaseAgeing.json ChronicDiseaseAgeing Instance 715-Assessment-ChronicDiseaseAgeing.fsh 5 - 120 -Questionnaire-Consent.json Consent Instance 715-Consent.fsh 7 - 216 -Questionnaire-CurrentPriorities.json CurrentPriorities Instance 715-Assessment-CurrentPriorities.fsh 5 - 182 -Questionnaire-EarHealthAndHearing.json EarHealthAndHearing Instance 715-Assessment-EarHealthAndHearing.fsh 5 - 321 -Questionnaire-Examination.json Examination Instance 715-Assessment-Examination.fsh 5 - 504 -Questionnaire-EyeHealth.json EyeHealth Instance 715-Assessment-EyeHealth.fsh 5 - 228 -Questionnaire-FamilyHistory.json FamilyHistory Instance 715-Assessment-FamilyHistory.fsh 5 - 126 -Questionnaire-FinalisingHealthCheck.json FinalisingHealthCheck Instance 715-FinalisingHealthCheck.fsh 5 - 448 -Questionnaire-Gambling.json Gambling Instance 715-Assessment-Gambling.fsh 5 - 122 -Questionnaire-HealthPrioritiesSummary.json HealthPrioritiesSummary Instance 715-HealthPrioritiesSummary.fsh 5 - 568 -Questionnaire-HealthyEating.json HealthyEating Instance 715-Assessment-HealthyEating.fsh 5 - 285 -Questionnaire-HomeAndFamily.json HomeAndFamily Instance 715-Assessment-HomeAndFamily.fsh 5 - 155 -Questionnaire-Immunisation.json Immunisation Instance 715-Assessment-Immunisation.fsh 5 - 163 -Questionnaire-Investigations.json Investigations Instance 715-Assessment-Investigations.fsh 5 - 133 -Questionnaire-LearningAndDevelopment.json LearningAndDevelopment Instance 715-Assessment-LearningAndDevelopment.fsh 5 - 224 -Questionnaire-LearningAndWork.json LearningAndWork Instance 715-Assessment-LearningAndWork.fsh 5 - 227 -Questionnaire-MedicalHistoryCurrentProblems.json MedicalHistoryCurrentProblems Instance 715-Assessment-MedicalHistoryCurrentProblems.fsh 5 - 301 -Questionnaire-MemoryAndThinking.json MemoryAndThinking Instance 715-Assessment-MemoryAndThinking.fsh 5 - 155 -Questionnaire-Mood.json Mood Instance 715-Assessment-Mood.fsh 5 - 130 -Questionnaire-OralAndDentalHealth.json OralAndDentalHealth Instance 715-Assessment-OralAndDentalHealth.fsh 5 - 177 -Questionnaire-PatientDetails.json PatientDetails Instance 715-PatientDetails.fsh 5 - 709 -Questionnaire-PhysicalActivityAndScreenTime.json PhysicalActivityAndScreenTime Instance 715-Assessment-PhysicalActivityAndScreenTime.fsh 5 - 276 -Questionnaire-RedFlagsEarlyIdentificationGuide.json RedFlagsEarlyIdentificationGuide Instance 715-Assessment-RedFlagsEarlyIdentificationGuide.fsh 5 - 518 -Questionnaire-RegularMedications.json RegularMedications Instance 715-Assessment-RegularMedications.fsh 5 - 157 -Questionnaire-ScreeningPrograms.json ScreeningPrograms Instance 715-Assessment-ScreeningPrograms.fsh 5 - 187 -Questionnaire-SexualHealth.json SexualHealth Instance 715-Assessment-SexualHealth.fsh 5 - 370 -Questionnaire-Skin.json Skin Instance 715-Assessment-Skin.fsh 5 - 168 -Questionnaire-SocialAndEmotionalWellbeing.json SocialAndEmotionalWellbeing Instance 715-Assessment-SocialAndEmotionalWellbeing.fsh 5 - 142 -Questionnaire-SocialHistoryChild.json SocialHistoryChild Instance 715-Assessment-SocialHistoryChild.fsh 5 - 146 -Questionnaire-SubstanceUse.json SubstanceUse Instance 715-Assessment-SubstanceUse.fsh 5 - 209 -StructureDefinition-ConditionEnvironmentAcquired.json ConditionEnvironmentAcquired Extension extensions.fsh 8 - 16 -StructureDefinition-ContainedResourceReference.json ContainedResourceReference Extension extensions.fsh 1 - 6 -StructureDefinition-slk581.json SLK581 Profile Identifier-SLK581.fsh 3 - 20 -ValueSet-AboriginalTorresStraitIslander.json AboriginalTorresStraitIslander ValueSet terminology.fsh 102 - 128 -ValueSet-MedicalHistory.json MedicalHistory ValueSet terminology.fsh 172 - 178 -ValueSet-PrimaryCarerParentGrandparent.json PrimaryCarerParentGrandparent ValueSet terminology.fsh 133 - 169 -ValueSet-YesNo.json YesNo ValueSet terminology.fsh 79 - 98 -ValueSet-YesNoNA.json YesNoNA ValueSet terminology.fsh 53 - 76 -ValueSet-YesNoNotAskedDeclined.json YesNoNotAskedDeclined ValueSet terminology.fsh 16 - 51 -ValueSet-australian-states-territories-2.json AustralianStatesAndTerritories ValueSet terminology.fsh 497 - 559 -ValueSet-biological-sex-1.json BiologicalSex ValueSet terminology.fsh 658 - 695 -ValueSet-condition-clinical.json ConditionClinicalStatusCodes ValueSet terminology.fsh 443 - 492 -ValueSet-gender-identity-response-1.json GenderIdentityResponse ValueSet terminology.fsh 562 - 614 -ValueSet-pronouns.json PersonalPronouns ValueSet terminology.fsh 616 - 656 \ No newline at end of file From fb23c5e687f6157d43d9e9385051d1ba2d491a3d Mon Sep 17 00:00:00 2001 From: liambarnes <69884018+liambarnes@users.noreply.github.com> Date: Fri, 25 Oct 2024 10:43:03 +1000 Subject: [PATCH 12/12] update gitignore --- .gitignore | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index abcdb31..2b9365b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1,13 @@ -bulk-import.py .DS_Store Thumbs.db -/assembler -# /fsh-generated -/input-cache -/node_modules -/output -/temp -/template -/.vscode +bulk-import.py +assembler/ +fsh-generated/fsh-index.* +fsh-generated/includes/ +input-cache/ +node_modules/ +output/ +temp/ +template/ +.vscode/ fhir.schema.json \ No newline at end of file