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 diff --git a/fsh-generated/includes/fsh-link-references.md b/fsh-generated/includes/fsh-link-references.md deleted file mode 100644 index 674d8a3..0000000 --- a/fsh-generated/includes/fsh-link-references.md +++ /dev/null @@ -1,53 +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 -[AustralianStatesAndTerritories]: ValueSet-australian-states-territories-2.html -[BiologicalSex]: ValueSet-biological-sex-1.html -[ConditionClinicalStatusCodes]: ValueSet-condition-clinical.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 -[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 diff --git a/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json b/fsh-generated/resources/ImplementationGuide-csiro.fhir.au.smartforms.json index b87f5d2..4c970e2 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" @@ -346,6 +354,14 @@ "description": "Preferred value set for Condition Clinical Status.", "exampleBoolean": false }, + { + "reference": { + "reference": "StructureDefinition/ConditionEnvironmentAcquired" + }, + "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 + }, { "reference": { "reference": "StructureDefinition/ContainedResourceReference" @@ -442,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 new file mode 100644 index 0000000..74c5a3e --- /dev/null +++ b/fsh-generated/resources/Questionnaire-AgedCareCMSFacade.json @@ -0,0 +1,2866 @@ +{ + "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": "Hospitalisation", + "language": "application/x-fhir-query", + "expression": "Encounter?class=IMP,EMER,SS&patient={{%patient.id}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "Weight", + "language": "application/x-fhir-query", + "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}}" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/variable", + "valueExpression": { + "name": "ProblemListItem", + "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", + "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", + "version": "1.0.0" + } + ] + } + } + ], + "linkId": "tab-container", + "type": "group", + "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", + "definition": "https://smartforms.csiro.au/ig/StructureDefinition/slk581#Identifier.value", + "text": "SLK", + "type": "string", + "repeats": false + }, + { + "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((family | (given | prefix).join(' ')).join(', ').where($this != '') | text)).first()" + } + } + ], + "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 + }, + { + "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", + "repeats": true, + "item": [ + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%EncounterStatusHistory.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" + } + }, + { + "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": "%EncounterStatusHistory.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": "%EncounterStatusHistory.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": "%Hospitalisation.entry.resource" + } + } + ], + "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": "%HospitalisationRepeat.extension.where(url='http://hl7.org.au/fhir/StructureDefinition/encounter-description').value" + } + } + ], + "linkId": "hospitalisation-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": "%HospitalisationRepeat.class" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "linkId": "hospitalisation-encounter-class", + "text": "Class", + "type": "choice", + "repeats": false, + "answerOption": [ + { + "valueCoding": { + "code": "IMP", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + }, + { + "valueCoding": { + "code": "EMER", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + }, + { + "valueCoding": { + "code": "SS", + "system": "http://terminology.hl7.org/CodeSystem/v3-ActCode" + } + } + ] + }, + { + "extension": [ + { + "url": "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression", + "valueExpression": { + "language": "text/fhirpath", + "expression": "%HospitalisationRepeat.status" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl", + "valueCodeableConcept": { + "coding": [ + { + "code": "drop-down", + "system": "http://hl7.org/fhir/questionnaire-item-control" + } + ] + } + } + ], + "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": "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": "%HospitalisationRepeat.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": "%HospitalisationRepeat.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": "%HospitalisationRepeat.where(class.exists(code='IMP')).length.value.round(0)" + } + }, + { + "url": "http://hl7.org/fhir/StructureDefinition/questionnaire-unit", + "valueCoding": { + "code": "d", + "system": "http://unitsofmeasure.org" + } + } + ], + "linkId": "hospitalisation-encounter-duration", + "text": "Duration", + "type": "integer", + "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": "%HospitalisationRepeat.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": "%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-serviceprovideridentifier", + "text": "Service provider identifier", + "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": "autocomplete", + "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.clinicalStatus.coding" + } + } + ], + "linkId": "medicalhistory-condition-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": "%ProblemListItemRepeat.onset.ofType(dateTime)" + } + } + ], + "linkId": "medicalhistory-condition-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": "%ProblemListItemRepeat.abatement.ofType(dateTime)" + } + } + ], + "linkId": "medicalhistory-condition-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": "%ProblemListItemRepeat.recordedDate" + } + } + ], + "linkId": "medicalhistory-condition-recordeddate", + "text": "Recorded 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.where(code.coding.exists(code='83184-2')).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.where(code.coding.exists(code='83184-2')).value.code" + } + } + ], + "linkId": "barthel-components-feeding-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='83185-9')).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.where(code.coding.exists(code='83185-9')).value.code" + } + } + ], + "linkId": "barthel-components-transfer-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='96767-9')).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.where(code.coding.exists(code='96767-9')).value.code" + } + } + ], + "linkId": "barthel-components-grooming-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='83183-4')).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.where(code.coding.exists(code='83183-4')).value.code" + } + } + ], + "linkId": "barthel-components-toiletuse-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='83181-8')).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.where(code.coding.exists(code='83181-8')).value.code" + } + } + ], + "linkId": "barthel-components-bathing-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='83186-7')).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.where(code.coding.exists(code='83186-7')).value.code" + } + } + ], + "linkId": "barthel-components-mobility-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='96758-8')).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.where(code.coding.exists(code='96758-8')).value.code" + } + } + ], + "linkId": "barthel-components-stairs-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='83182-6')).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.where(code.coding.exists(code='83182-6')).value.code" + } + } + ], + "linkId": "barthel-components-dressing-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='96759-6')).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.where(code.coding.exists(code='96759-6')).value.code" + } + } + ], + "linkId": "barthel-components-bowels-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + }, + { + "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.where(code.coding.exists(code='96760-4')).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.where(code.coding.exists(code='96760-4')).value.code" + } + } + ], + "linkId": "barthel-components-bladder-unitcode", + "text": "Unit code", + "type": "string", + "repeats": false + } + ] + } + ] + } + ] + } + ] + } + ] +} diff --git a/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json new file mode 100644 index 0000000..28ce8be --- /dev/null +++ b/fsh-generated/resources/StructureDefinition-ConditionEnvironmentAcquired.json @@ -0,0 +1,57 @@ +{ + "resourceType": "StructureDefinition", + "id": "ConditionEnvironmentAcquired", + "url": "https://smartforms.csiro.au/ig/StructureDefinition/ConditionEnvironmentAcquired", + "name": "ConditionEnvironmentAcquired", + "title": "Condition Environment Acquired", + "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", + "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 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", + "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/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 new file mode 100644 index 0000000..584772c --- /dev/null +++ b/fsh-generated/resources/StructureDefinition-slk581.json @@ -0,0 +1,73 @@ +{ + "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", + "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 new file mode 100644 index 0000000..f90e49a --- /dev/null +++ b/input/fsh/Questionnaire-AgedCareCMSFacade.fsh @@ -0,0 +1,1336 @@ +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 = "Hospitalisation" +* extension[=].valueExpression[=].language = #application/x-fhir-query +* 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=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" +* 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|1.0.0#tab-container +* item[=].linkId = "tab-container" +* item[=].type = #group +* item[=].repeats = false + +//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[=].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 +* 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((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 +* 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[+].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 = "%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" +* 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[=].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" +* 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 = "%EncounterStatusHistory.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 = "%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 = "%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 = #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 = "%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" +* 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/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" +* 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#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 = "%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 = "%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 = "%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 = #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 +* 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 = "%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 +* 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.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[=].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#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" +* 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.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" +* 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 = #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 = #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 = #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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false +* 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.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.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 = #string +* item[=].item[=].item[=].item[=].item[=].repeats = false \ No newline at end of file diff --git a/input/fsh/extensions.fsh b/input/fsh/extensions.fsh index fafe05d..2930dd0 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 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" +* value[x] 1.. +* value[x] only CodeableConcept or Reference(Location) diff --git a/smartforms-template/package/.index.db b/smartforms-template/package/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/.index.db and b/smartforms-template/package/.index.db differ 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.db b/smartforms-template/package/content/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/content/.index.db and b/smartforms-template/package/content/.index.db differ 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.db b/smartforms-template/package/content/assets/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/content/assets/.index.db and b/smartforms-template/package/content/assets/.index.db differ 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.db b/smartforms-template/package/content/assets/css/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/content/assets/css/.index.db and b/smartforms-template/package/content/assets/css/.index.db differ 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.db b/smartforms-template/package/content/assets/images/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/content/assets/images/.index.db and b/smartforms-template/package/content/assets/images/.index.db differ 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.db b/smartforms-template/package/includes/.index.db index acb32ab..504ff47 100644 Binary files a/smartforms-template/package/includes/.index.db and b/smartforms-template/package/includes/.index.db differ 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" : [] }