AllergiesAdverseReactions
type: Questionnaire
node role: treeRoot
id:
  v: AllergiesAdverseReactions
meta:
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-render
    l: sdc-questionnaire-render
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-modular
    l: sdc-questionnaire-modular
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-pop-exp
    l: sdc-questionnaire-pop-exp
  profile:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-extr-template
    l: sdc-questionnaire-extr-template
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: Questionnaire AllergiesAdverseReactions Profiles: Advanced Rendering Questionnaire, SDC Modular Questionnaire, Populatable Questionnaire - Expression, Extractable Questionnaire - Template Structure LinkID Text Cardinality Type Flags Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> AllergiesAdverseReactions Questionnaire http://www.health.gov.au/assessments/mbs/715/AllergiesAdverseReactions#0.4.0 #xD; allergy Allergies/adverse reactions 0..1 group #xD; CD-in-progress-3 In progress 0..1 display #xD; CD-complete-3 Complete 0..1 display #xD; CD-attention-3 Attention required 0..1 display #xD; allergyinstruction Adverse reaction risk summary 0..1 group #xD; allergysummary Adverse reaction risk summary 0..* group #xD; allergyIntoleranceId null 0..1 string #xD; allergysummary-substance Substance 0..1 open-choice Value Set: Adverse Reaction Agent #xD; allergysummary-status Status 0..1 choice Value Set: Allergy Intolerance Clinical Status Minimal #xD; allergysummary-status-hidden null 0..1 choice Value Set: Allergy Intolerance Clinical Status Minimal #xD; allergysummary-manifestation Manifestation 0..* open-choice Value Set: Clinical Finding #xD; allergysummary-comment Comment 0..1 text #xD; allergysummary-comment-hidden null 0..1 text #xD; allergynew New adverse reaction risks 0..* group #xD; allergynew-substance Substance 1..1 open-choice Value Set: Adverse Reaction Agent #xD; allergynew-manifestation Manifestation 0..* open-choice Value Set: Clinical Finding #xD; allergynew-comment Comment 0..1 text #xD; 3e689aeb-69a1-4a9b-93bd-50377511dd9b Health priorities, actions and follow-up 0..1 text #xD; allergy-section-end-divider null 0..1 display #xD; MarkComplete-3 Section completion status 0..1 choice Options: 3 options #xD; <img src="[binary]" alt="doco" style="background-color: inherit"/> Documentation for this format Options Sets Answer options for MarkComplete-3 Complete In progress Attention required Contain…
contained: AllergyIntolerance
  id:
    v: AllergyIntoleranceTemplate
  clinical status:
    coding:
      system:
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
        l: allergyintolerance-clinical
      code:
        v: active
  code:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractContext
        l: sdc-questionnaire-templateExtractContext
      value: String
        v: item.where(linkId='allergynew-substance').answer.value
    coding:
      extension:
        value: String
    text:
      extension:
        value: String
  patient:
    reference:
      extension:
        value: String
  note:
    text:
      extension:
        value: String
  reaction:
    manifestation:
      extension:
        value: String
    manifestation:
      extension:
        value: String
contained: Parameters
  id:
    v: AllergyIntolerancePatchTemplate
  parameter:
    name:
      v: operation
    part:
      name:
        v: type
      value: Code
        v: add
    part:
      name:
        v: path
      value: String
        v: AllergyIntolerance
    part:
      name:
        v: name
      value: String
        v: clinicalStatus
    part:
      name:
        v: value
      value: CodeableConcept
    part:
      name:
        v: pathLabel
      value: String
        v: Clinical status
  parameter:
    name:
      v: operation
    part:
      name:
        v: type
      value: Code
        v: add
    part:
      name:
        v: path
      value: String
    part:
      name:
        v: name
      value: String
    part:
      value: Markdown
    part:
      value: Annotation
    part:
      name:
        v: pathLabel
      value: String
        v: Comment
contained: ValueSet
  id:
    v: AllergyIntoleranceClinicalStatusMinimal
  url:
    v: https://smartforms.csiro.au/ig/ValueSet/AllergyIntoleranceClinicalStatusMinimal
    l: AllergyIntoleranceClinicalStatusMinimal
  name:
    v: AllergyIntoleranceClinicalStatusMinimal
  title:
    v: Allergy Intolerance Clinical Status Minimal
  status:
    v: draft
  experimental:
    v: false
  description:
    v: This value set includes the minimal set of codes to represent the clinical status of an allergy intolerance (i.e., active and inactive).
  compose:
    include:
      system:
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
        l: allergyintolerance-clinical
  expansion:
    timestamp:
      v: 2025-08-25T15:52:50+10:00
    total:
      v: 2
    offset:
      v: 0
    parameter:
      name:
        v: count
      value: Integer
        v: 1000
    parameter:
      name:
        v: offset
      value: Integer
        v: 0
    parameter:
      name:
        v: excludeNested
      value: Boolean
        v: false
    parameter:
      name:
        v: used-codesystem
      value: Uri
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical|1.0.0
        l: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
    contains:
      system:
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
        l: allergyintolerance-clinical
      code:
        v: active
      display:
        v: Active
    contains:
      system:
        v: http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical
        l: allergyintolerance-clinical
      code:
        v: inactive
      display:
        v: Inactive
extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assemble-expectation
    l: sdc-questionnaire-assemble-expectation
  value: Code
    v: assemble-child
extension:
  extension:
    url:
      v: name
      l: name
    value: Coding
      system:
        v: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
        l: launchContext
      code:
        v: patient
  extension:
    url:
      v: type
      l: type
    value: Code
      v: Patient

String
v: ofType(Coding)

String
v: ofType(string)

String
v: %resource.subject.reference

String
v: item.where(linkId='allergynew-comment').answer.value

String
v: item.where(linkId='allergynew-manifestation').answer.value.ofType(Coding)

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: $this

String
v: item.where(linkId='allergynew-manifestation').answer.value.ofType(string)

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: $this

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
    l: sdc-questionnaire-templateExtractValue
  value: String
    v: item.where(linkId='allergysummary-status').answer.value.first()

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.exists(), 'AllergyIntolerance.note[0]', 'AllergyIntolerance')

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.exists(), 'text', 'note')

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.exists(), 'value')

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.exists(), item.where(linkId='allergysummary-comment').answer.value.first())

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
  l: sdc-questionnaire-templateExtractValue
value: String
  v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.empty(), 'value')

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtractValue
    l: sdc-questionnaire-templateExtractValue
  value: String
    v: iif(item.where(linkId='allergysummary-comment-hidden').answer.value.empty(), item.where(linkId='allergysummary-comment').answer.value.first())

v: active

v: inactive

url:
  v: description
  l: description
value: String
  v: The patient that is to be used to pre-populate the form

extension:
  url:
    v: name
    l: name
  value: Coding
    system:
      v: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
      l: launchContext
    code:
      v: user
extension:
  url:
    v: type
    l: type
  value: Code
    v: Practitioner
extension:
  url:
    v: description
    l: description
  value: String
    v: The practitioner user that is to be used to pre-populate the form
url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext
  l: sdc-questionnaire-launchContext

extension:
  url:
    v: name
    l: name
  value: Coding
    system:
      v: http://hl7.org/fhir/uv/sdc/CodeSystem/launchContext
      l: launchContext
    code:
      v: encounter
extension:
  url:
    v: type
    l: type
  value: Code
    v: Encounter
extension:
  url:
    v: description
    l: description
  value: String
    v: The encounter that is to be used to pre-populate the form
url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext
  l: sdc-questionnaire-launchContext

url:
  v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-assembleContext
  l: sdc-questionnaire-assembleContext
value: String
  v: age

url:
  v: http://hl7.org/fhir/StructureDefinition/variable
  l: variable
value: Expression
  name:
    v: AllergyIntolerance
  language:
    v: application/x-fhir-query
  expression:
    v: AllergyIntolerance?patient={{%patient.id}}

url:
  v: http://hl7.org/fhir/5.0/StructureDefinition/extension-Questionnaire.versionAlgorithm[x]
  l: extension-Questionnaire.versionAlgorithm[x]
value: Coding
  system:
    v: http://hl7.org/fhir/version-algorithm
    l: version-algorithm
  code:
    v: semver

v: 0.4.0

v: AllergiesAdverseReactions

v: Aboriginal and Torres Strait Islander Health Check - Allergies/Adverse Reactions

v: draft

v: false

v: Patient

v: 2025-03-14

v: AEHRC CSIRO

name:
  v: AEHRC CSIRO
telecom:
  system:
    v: url
  value:
    v: https://confluence.csiro.au/display/PCDQFPhase2/Primary+Care+Data+Quality+Foundations+-+Phase+2

coding:
  system:
    v: urn:iso:std:iso:3166
    l: 3166
  code:
    v: AU
  display:
    v: Australia

v: Copyright © 2022+ Australian Government Department of Health and Aged Care - All rights reserved. This content is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. See https://creativecommons.org/licenses/by-sa/4.0/.

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    l: sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %age.exists()
link id:
  v: allergy
text:
  v: Allergies/adverse reactions
type:
  v: group
repeats:
  v: false
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      l: sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %resource.repeat(item).where(linkId='MarkComplete-3').answer.value = 'In progress' or %resource.repeat(item).where(linkId='MarkComplete-3').answer.value.empty()
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: CD-in-progress-3
  text:
    v: In progress
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: <img width='24' height='24' src='[binary]' style="align-self: center;"/>
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      l: sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %resource.repeat(item).where(linkId='MarkComplete-3').answer.value = 'Complete'
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: CD-complete-3
  text:
    v: Complete
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: <img width='24' height='24' src='[binary]' style="align-self: center;"/>
  type:
    v: display
item:
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      l: sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %resource.repeat(item).where(linkId='MarkComplete-3').answer.value = 'Attention required'
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: CD-attention-3
  text:
    v: Attention required
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: <img width='24' height='24' src='[binary]' style="align-self: center;"/>
  type:
    v: display
item:
  link id:
    v: allergyinstruction
  text:
    v: Adverse reaction risk summary
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
        l: rendering-xhtml
      value: String
        v: Adverse reaction risk summary This section includes a list of existing items from the patient record. Update these items here or update the patient record and repopulate the form. Add new items at the bottom.
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-itemPopulationContext
        l: sdc-questionnaire-itemPopulationContext
      value: Expression
    extension:
      extension:
        value: Reference
      extension:
        value: String
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtract
        l: sdc-questionnaire-templateExtract
    extension:
      url:
        v: https://smartforms.csiro.au/ig/StructureDefinition/GroupHideAddItemButton
        l: GroupHideAddItemButton
      value: Boolean
        v: true
    link id:
      v: allergysummary
    text:
      v: Adverse reaction risk summary
      extension:
        value: Boolean
    type:
      v: group
    repeats:
      v: true
    item:
      extension:
        value: Boolean
      extension:
        value: Expression
      link id:
        v: allergyIntoleranceId
      type:
        v: string
    item:
      extension:
        value: Expression
      extension:
        value: CodeableConcept
      link id:
        v: allergysummary-substance
      text:
        v: Substance
      type:
        v: open-choice
      repeats:
        v: false
      read only:
        v: true
      answer value set:
        v: https://healthterminologies.gov.au/fhir/ValueSet/adverse-reaction-agent-1
        l: adverse-reaction-agent-1
    item:
      extension:
        value: Expression
      extension:
        value: CodeableConcept
      link id:
        v: allergysummary-status
      text:
        v: Status
      type:
        v: choice
      repeats:
        v: false
      answer value set:
        v: #AllergyIntoleranceClinicalStatusMinimal
        l: AllergyIntoleranceClinicalStatusMinimal
    item:
      extension:
        value: Expression
      extension:
        value: Boolean
      link id:
        v: allergysummary-status-hidden
      type:
        v: choice
      repeats:
        v: false
      answer value set:
        v: #AllergyIntoleranceClinicalStatusMinimal
        l: AllergyIntoleranceClinicalStatusMinimal
    item:
      extension:
        value: Expression
      extension:
        value: CodeableConcept

v: context-display

v: context-display

v: context-display

v: AllergyIntoleranceRepeat

v: text/fhirpath

v: %AllergyIntolerance.entry.resource.where(clinicalStatus.coding.exists(code='active')).where(verificationStatus.coding.all(code.empty() or code='confirmed'))

v: template
l: template

Reference
l: AllergyIntolerancePatchTemplate
reference:
  v: #AllergyIntolerancePatchTemplate

String
v: 'AllergyIntolerance/' + item.where(linkId='allergyIntoleranceId').answer.value

Boolean
v: true

Boolean
v: true

Expression
language:
  v: text/fhirpath
expression:
  v: %AllergyIntoleranceRepeat.id

Expression
language:
  v: text/fhirpath
expression:
  v: %AllergyIntoleranceRepeat.code.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())

CodeableConcept
coding:
  system:
    v: http://hl7.org/fhir/questionnaire-item-control
    l: questionnaire-item-control
  code:
    v: autocomplete

Expression
language:
  v: text/fhirpath
expression:
  v: %AllergyIntoleranceRepeat.clinicalStatus.coding

CodeableConcept
coding:
  system:
    v: http://hl7.org/fhir/questionnaire-item-control
    l: questionnaire-item-control
  code:
    v: drop-down

Expression
language:
  v: text/fhirpath
expression:
  v: %AllergyIntoleranceRepeat.clinicalStatus.coding

Boolean
v: true

Expression
language:
  v: text/fhirpath
expression:
  v: %AllergyIntoleranceRepeat.reaction.manifestation.select((coding.where(system='http://snomed.info/sct') | coding.where(system!='http://snomed.info/sct').first() | text ).first())

CodeableConcept
coding:
  system:
    v: http://hl7.org/fhir/questionnaire-item-control
    l: questionnaire-item-control
  code:
    v: autocomplete

v: allergysummary-manifestation

v: Manifestation

v: open-choice

v: true

v: true

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
    l: sdc-questionnaire-initialExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %AllergyIntoleranceRepeat.note[0].text
link id:
  v: allergysummary-comment
text:
  v: Comment
type:
  v: text
repeats:
  v: false

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression
    l: sdc-questionnaire-initialExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %AllergyIntoleranceRepeat.note[0].text
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
    l: questionnaire-hidden
  value: Boolean
    v: true
link id:
  v: allergysummary-comment-hidden
type:
  v: text
repeats:
  v: false

extension:
  extension:
    url:
      v: template
      l: template
    value: Reference
      l: AllergyIntoleranceTemplate
      reference:
        v: #AllergyIntoleranceTemplate
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-templateExtract
    l: sdc-questionnaire-templateExtract
link id:
  v: allergynew
text:
  v: New adverse reaction risks
  extension:
    url:
      v: https://smartforms.csiro.au/ig/StructureDefinition/QuestionnaireItemTextHidden
      l: QuestionnaireItemTextHidden
    value: Boolean
      v: true
type:
  v: group
repeats:
  v: true
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: allergynew-substance
  text:
    v: Substance
  type:
    v: open-choice
  required:
    v: true
  repeats:
    v: false
  answer value set:
    v: https://healthterminologies.gov.au/fhir/ValueSet/adverse-reaction-agent-1
    l: adverse-reaction-agent-1
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
      l: questionnaire-itemControl
    value: CodeableConcept
  link id:
    v: allergynew-manifestation
  text:
    v: Manifestation
  type:
    v: open-choice
  repeats:
    v: true
  answer value set:
    v: https://healthterminologies.gov.au/fhir/ValueSet/clinical-finding-1
    l: clinical-finding-1
item:
  link id:
    v: allergynew-comment
  text:
    v: Comment
  type:
    v: text
  repeats:
    v: false

v: autocomplete

v: autocomplete

text:
  v: Health priorities, actions and follow-up
type:
  v: text
repeats:
  v: false

link id:
  v: allergy-section-end-divider
text:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-style
      l: rendering-style
    value: String
      v: border-top: 1px solid #ccc;
type:
  v: display

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
    l: questionnaire-itemControl
  value: CodeableConcept
    coding:
      system:
        v: http://hl7.org/fhir/questionnaire-item-control
        l: questionnaire-item-control
      code:
        v: radio-button
link id:
  v: MarkComplete-3
text:
  v: Section completion status
type:
  v: choice
repeats:
  v: false
answer option:
  value: String
    v: Complete
answer option:
  value: String
    v: In progress
answer option:
  value: String
    v: Attention required