ConsumerCOVIDRATResultQuestionnaire
type: Questionnaire
node role: treeRoot
id:
  v: ConsumerCOVIDRATResultQuestionnaire
meta:
  version id:
    v: 1
  last updated:
    v: 2024-01-23T21:19:39.411Z
language:
  v: en-NZ
text:
  status:
    v: extensions
  div: Generated Narrative: Questionnaire ConsumerCOVIDRATResultQuestionnaire version: 1; Last updated: 2024-01-23 21:19:39+0000; Language: en-NZ Structure LinkID Text Cardinality Type Flags Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> ConsumerCOVIDRatResultQuestionnaire Consumer COVID RAT Result Questionnaire Questionnaire https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/Questionnaire/ConsumerCOVIDRATResultQuestionnaire#1.0.5 #xD; metaPhoneNumber Phone number 0..1 string Definition: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.valueString Initial Value: string = Placeholder #xD; extractPhoneNumberCode null 0..1 choice Definition: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.code.coding[] Initial Value: Coding = [not stated]#8497 "Text patient com" #xD; submit-modal Enter result 0..1 group #xD; submit-modal-text The RAT result will be recorded against the official health record for this person. 0..1 display #xD; nlineModal RATs with other lines 0..1 group #xD; nlineModal-otherLines If your RAT has other lines or markings, consult the product information leaflet. 0..1 display #xD; nlineModal-contactHealthline Contact Healthline for further information on 0800 358 5453. 0..1 display #xD; highRiskModal Other risk factors or medical conditions: 0..1 group #xD; highRiskModal-conditions List of conditions 0..1 display #xD; reportResult Report a COVID-19 Rapid Antigen Test (RAT) result 0..1 group #xD; reportResult-container null 0..1 group #xD; reportResult-container-diagram A diagram showing what a positive COVID RAT Result looks like 0..1 display #xD; reportResult-container-controlLine Is the control line (C) visible? 1..1 boolean #xD; reportResult-container-testLine Is the test line (T) visible? 1..1 boolean #xD; reportResult-container-faintLines Faint lines 0..1 display #xD; reportResult-container-faintLi…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: report
    language:
      v: text/fhirpath
    expression:
      v: %resource.item.where(linkId='reportResult').item.first().item
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: aveSymptoms
    language:
      v: text/fhirpath
    expression:
      v: %resource.item.where(linkId='aveSymptoms').item.first().item
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: aveCriteria
    language:
      v: text/fhirpath
    expression:
      v: %resource.item.where(linkId='aveCriteria').item.first().item
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: testResult
    language:
      v: text/fhirpath
    expression:
      v: iif(true and %report.where(linkId='reportResult-container-controlLine').answer.valueBoolean, iif(true and %report.where(linkId='reportResult-container-testLine').answer.valueBoolean, 'positive', 'negative'), 'failed')
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: symptomOnsetDate
    language:
      v: text/fhirpath
    expression:
      v: %aveSymptoms.where(linkId='aveSymptoms-container-symptomDate').answer.valueCoding.code
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: testDate
    language:
      v: text/fhirpath
    expression:
      v: %report.where(linkId='reportResult-container-testDate').answer.valueCoding.code
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: hasSymptoms
    language:
      v: text/fhirpath
    expression:
      v: %aveSymptoms.where(linkId='aveSymptoms-container-details').item.where(linkId='aveSymptoms-container-details-hasSymptoms').answer.valueBoolean = true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: recentSymptoms
    language:
      v: text/fhirpath
    expression:
      v: %hasSymptoms and %symptomOnsetDate > today() - 6 days
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: isHighRisk
    language:
      v: text/fhirpath
    expression:
      v: true and %aveCriteria.where(linkId='aveCriteria-container-highRiskContainer').item.where(linkId='aveCriteria-container-highRiskContainer-isHighRisk').answer.valueBoolean = true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: isVulnerable
    language:
      v: text/fhirpath
    expression:
      v: true and %aveCriteria.where(linkId='aveCriteria-container-vulnerableContainer').item.where(linkId='aveCriteria-container-vulnerableContainer-isVulnerable').answer.valueBoolean = true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: householdContact
    language:
      v: text/fhirpath
    expression:
      v: true and %report.where(linkId='reportResult-container-householdContact').answer.valueBoolean
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: criteriaMet
    language:
      v: text/fhirpath
    expression:
      v: (%isHighRisk or %isVulnerable) and (%recentSymptoms = true) and (%testResult = 'positive' or (%testResult = 'negative' and %householdContact = true))
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: dayZero
    language:
      v: text/fhirpath
    expression:
      v: iif(%hasSymptoms and %symptomOnsetDate.count() > 0, iif(%symptomOnsetDate > %testDate, %testDate, %symptomOnsetDate), %testDate)
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: isolationLeaveDate
    language:
      v: text/fhirpath
    expression:
      v: %dayZero + 6 days
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: recentTest
    language:
      v: text/fhirpath
    expression:
      v: %report.where(linkId='reportResult-container-testDate').answer.valueCoding.code > today() - 6 days
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/variable
  value: Expression
    name:
      v: subjectName
    language:
      v: text/fhirpath
    expression:
      v: %resource.item.where(linkId='extract').item.where(linkId='subjectName').answer.valueString
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/submit-button-label
  value: string
    v: Enter result
url:
  v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/Questionnaire/ConsumerCOVIDRATResultQuestionnaire
identifier:
  use:
    v: official
  value:
    v: ConsumerCOVIDRATResultQuestionnaire
  period:
    start:
      v: 2023-07-19
version:
  v: 1.0.5
name:
  v: ConsumerCOVIDRatResultQuestionnaire
title:
  v: Report a Rapid Antigen Test (RAT) result
status:
  v: draft
experimental:
  v: true

v: Patient

v: 2026-02-24T04:18:10+00:00

v: Te Whatu Ora

name:
  v: Te Whatu Ora
telecom:
  system:
    v: url
  value:
    v: https://www.tewhatuora.govt.nz/

name:
  v: Te Whatu Ora Integration Team
telecom:
  system:
    v: email
  use:
    v: work

v: Consumer COVID RAT Result Questionnaire

code:
  system:
    v: http://terminology.hl7.org/CodeSystem/usage-context-type
  code:
    v: workflow
  display:
    v: Workflow Setting
value: CodeableConcept
  text:
    v: Consumer COVID RAT Result Questionnaire

coding:
  system:
    v: urn:iso:std:iso:3166
  code:
    v: NZ
  display:
    v: New Zealand

v: Report a Rapid Antigen Test (RAT) result

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
  value: boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-itemExtractionContext
  value: code
    v: Observation
extension:
  url:
    v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractUrn
  value: string
    v: urn:uuid:observation-phone
link id:
  v: metaPhoneNumber
definition:
  v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.valueString
text:
  v: Phone number
type:
  v: string
initial:
  value: string
    v: Placeholder

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
  value: boolean
    v: true
link id:
  v: extractPhoneNumberCode
definition:
  v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.code.coding[]
type:
  v: choice
initial:
  value: Coding
    code:
      v: 8497
    display:
      v: Text patient com

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
  value: CodeableConcept
    coding:
      code:
        v: submit-modal
link id:
  v: submit-modal
text:
  v: Enter result
type:
  v: group
item:
  link id:
    v: submit-modal-text
  text:
    v: The RAT result will be recorded against the official health record for this person.
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/cqf-expression
      value: Expression
  type:
    v: display

v: text/fhirpath

v: 'The RAT result will be recorded against the official health record for ' + %subjectName + '.'

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
  value: CodeableConcept
    coding:
      code:
        v: modal
link id:
  v: nlineModal
text:
  v: RATs with other lines
type:
  v: group
item:
  link id:
    v: nlineModal-otherLines
  text:
    v: If your RAT has other lines or markings, consult the product information leaflet.
  type:
    v: display
item:
  link id:
    v: nlineModal-contactHealthline
  text:
    v: Contact Healthline for further information on 0800 358 5453.
  type:
    v: display

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
  value: CodeableConcept
    coding:
      code:
        v: modal
link id:
  v: highRiskModal
text:
  v: Other risk factors or medical conditions:
type:
  v: group
item:
  link id:
    v: highRiskModal-conditions
  text:
    v: List of conditions
    extension:
      url:
        v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
      value: string
        v: chronic lung or airways disease serious heart conditions poorly controlled hypertension chronic neurological or neuromuscular disease diabetes chronic kidney disease severe liver disease such as cirrhosis severe blood (haematological) disorders severe mental illness active cancer morbid obesity (BMI greater than 35) people currently in contact with secondary and tertiary mental health and addiction services people with mental health and addiction issues who are currently homeless or without permanent housing.
  type:
    v: display

link id:
  v: reportResult
text:
  v: Report a COVID-19 Rapid Antigen Test (RAT) result
type:
  v: group
item:
  link id:
    v: reportResult-container
  type:
    v: group
  item:
    link id:
      v: reportResult-container-diagram
    text:
      v: A diagram showing what a positive COVID RAT Result looks like
      extension:
        value: string
    type:
      v: display
  item:
    link id:
      v: reportResult-container-controlLine
    text:
      v: Is the control line (C) visible?
    type:
      v: boolean
    required:
      v: true
  item:
    link id:
      v: reportResult-container-testLine
    text:
      v: Is the test line (T) visible?
    type:
      v: boolean
    required:
      v: true
  item:
    link id:
      v: reportResult-container-faintLines
    text:
      v: Faint lines
      extension:
        value: string
    type:
      v: display
  item:
    link id:
      v: reportResult-container-faintLinesDetail
    text:
      v: If a line is faint it should still be recorded as visible.
    type:
      v: display
  item:
    link id:
      v: reportResult-container-nLineLink
    text:
      v: A small number of RATs have an ‘N’ line
      extension:
        value: string
    type:
      v: display
  item:
    extension:
      url:
        v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-effectiveDate
      value: boolean
        v: true
    link id:
      v: reportResult-container-testDate
    text:
      v: Day test was taken
    type:
      v: choice
    required:
      v: true
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
  item:
    link id:
      v: reportResult.container.onlyThisWeek
    text:
      v: You can only report a test taken within the last 7 days.
    type:
      v: display
  item:
    link id:
      v: reportResult-container-householdContact
    text:
      v: Are you a household contact of someone who has tested positive for COVID-19?
    type:
      v: boolean
    enable when:
      question:
        v: reportResult-container-controlLine
      operator:
        v: =
      answer: boolean
        v: true
    enable when:
      question:
        v: reportResult-container-testLine
      operator:
        v: =
      answer: boolean
        v: false
    enable behavior:
      v: all
    required:
      v: true

string
v: Faint lines

string
v: <open-modal linkId='nlineModal'>What to do if your RAT has other lines</open-modal>

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today()

v: Today

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 1 day

v: Yesterday

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 2 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 2 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 3 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 3 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 4 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 4 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 5 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 5 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 6 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 6 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 7 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 7 days).formatDate('dddd, D MMMM')

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %testResult != 'failed'
link id:
  v: aveSymptoms
text:
  v: Antiviral Eligibility
type:
  v: group
item:
  link id:
    v: aveSymptoms-container
  type:
    v: group
  item:
    link id:
      v: aveSymptoms-container-intro
    type:
      v: group
    item:
      link id:
        v: aveSymptoms-container-intro-heading
      text:
        v: About these questions
      type:
        v: display
    item:
      link id:
        v: aveSymptoms-container-intro-text
      text:
        v: The following questions will give you an indication of whether you might be eligible to receive free oral COVID-19 antiviral medicine.
      type:
        v: display
  item:
    link id:
      v: aveSymptoms-container-details
    type:
      v: group
    item:
      link id:
        v: aveSymptoms-container-details-heading
      text:
        v: Symptoms of COVID-19 can include one or more of the following:
      type:
        v: display
    item:
      link id:
        v: aveSymptoms-container-details-list
      text:
        v: Sneezing and runny nose, sore throat, body aches, cough, feeling tired, headache, nausea and vomiting, diarrhoea, fever
      type:
        v: display
    item:
      link id:
        v: aveSymptoms-container-details-moreInfoHeading
      text:
        v: Visit this page for more information about COVID-19 symptoms:
      type:
        v: display
    item:
      link id:
        v: aveSymptoms-container-details-moreInfoLink
      text:
        v: COVID-19 symptoms
      type:
        v: display
    item:
      link id:
        v: aveSymptoms-container-details-hasSymptoms
      text:
        v: Have you been experiencing any symptoms?
      type:
        v: boolean
      required:
        v: true
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: aveSymptoms-container-symptomDateHeading
    text:
      v: When did you start experiencing any of these symptoms?
    type:
      v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: aveSymptoms-container-symptomDate
    text:
      v: Select the date that your symptoms started
    type:
      v: choice
    required:
      v: true
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding
    answer option:
      value: Coding

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: About these questions

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: The following questions will give you an indication of whether you might be eligible to receive free oral COVID-19 antiviral medicine. More information about antivirals and eligibility criteria<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Symptoms of COVID-19 can include one or more of the following:

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: sneezing and runny nose sore throat body aches cough feeling tired headache nausea and vomiting diarrhoea fever

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: COVID-19 symptoms<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

v: text/fhirpath

v: %hasSymptoms and (%testResult = 'positive' or %householdContact = true)

v: text/fhirpath

v: %hasSymptoms and (%testResult = 'positive' or %householdContact = true)

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today()

v: Today

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 1 day

v: Yesterday

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 2 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 2 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 3 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 3 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 4 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 4 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 5 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 5 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 6 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 6 days).formatDate('dddd, D MMMM')

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: today() - 7 days

v: placeholder
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/cqf-expression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (today() - 7 days).formatDate('dddd, D MMMM')

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: (%testResult = 'positive' or (%testResult = 'negative' and %householdContact)) and %recentSymptoms
link id:
  v: aveCriteria
text:
  v: Antiviral Eligibility
type:
  v: group
item:
  link id:
    v: aveCriteria-container
  type:
    v: group
  item:
    link id:
      v: aveCriteria-container-intro
    type:
      v: group
    item:
      link id:
        v: aveCriteria-container-intro-heading
      text:
        v: About these questions
      type:
        v: display
    item:
      link id:
        v: aveCriteria-container-intro-text
      text:
        v: The following questions will give you an indication of whether you might be eligible to receive free oral COVID-19 antiviral medicine.
      type:
        v: display
  item:
    link id:
      v: aveCriteria-container-vulnerableText
    text:
      v: Eligible people include:
      extension:
        value: string
    type:
      v: display
  item:
    link id:
      v: aveCriteria-container-vulnerableContainer
    type:
      v: group
    item:
      link id:
        v: aveCriteria-container-vulnerableContainer-isVulnerable
      text:
        v: Do any of these apply to you?
      type:
        v: boolean
      required:
        v: true
  item:
    link id:
      v: aveCriteria-container-highRiskContainer
    type:
      v: group
    enable when:
      question:
        v: aveCriteria-container-vulnerableContainer-isVulnerable
      operator:
        v: =
      answer: boolean
        v: false
    enable behavior:
      v: all
    item:
      link id:
        v: aveCriteria-container-highRiskContainer-text
      text:
        v: These are some reasons you might be at high risk of becoming very sick from COVID-19:
      type:
        v: display
    item:
      link id:
        v: aveCriteria-container-highRiskContainer-isHighRisk
      text:
        v: Do any of these apply to you?
      type:
        v: boolean
      required:
        v: true

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: About these questions

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: The following questions will give you an indication of whether you might be eligible to receive free oral COVID-19 antiviral medicine. More information about antivirals and eligibility criteria<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

string
v: Eligible people include: Māori or Pacific people aged 50 or over anyone aged 50 or over, who has not had at least 2 COVID-19 vaccines anyone aged 65 or over

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: These are some reasons you might be at high risk of becoming very sick from COVID-19: you have Down syndrome you have sickle cell disease you have previously been in critical or high dependency hospital care from COVID-19 you receive Disability Support Services funded by Whaikaha – Ministry of Disabled People (previously Ministry of Health) or need direct family, whānau or external disability care most days you have frailty or vulnerability due to one or more severe health conditions you have a weakened immune system you have 3 or more of <open-modal linkId='highRiskModal'>these risk factors or medical conditions</open-modal>

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl
  value: CodeableConcept
    coding:
      code:
        v: post-submit
link id:
  v: postSubmit
type:
  v: group
item:
  link id:
    v: postSubmit-container
  type:
    v: group
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: postSubmit-container-failed
    text:
      v: Result: Failed. A result could not be determined.
      extension:
        value: string
    type:
      v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: postSubmit-container-testResult
    type:
      v: group
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-testResult-positive
      text:
        v: Result: Positive. COVID-19 was detected.
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-testResult-negative
      text:
        v: Result: Negative. COVID-19 was not detected.
      type:
        v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: postSubmit-container-eligibility
    type:
      v: group
    item:
      link id:
        v: postSubmit-container-eligibility-heading
      text:
        v: Antiviral eligibility
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-eligibility-maybeEligible
      text:
        v: Based on the information you have provided, you may be eligible for free oral COVID-19 antiviral medication.
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-eligibility-notEligible
      text:
        v: Not eligible
      type:
        v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: postSubmit-container-isolation
    type:
      v: group
    item:
      link id:
        v: postSubmit-container-isolation-heading
      text:
        v: Recommended isolation
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-isolation-isolateFiveDays
      text:
        v: We recommend you stay home and isolate for five days from either the date you developed symptoms or the date you tested positive, whichever was earlier. You can leave your recommended isolation on the sixth day if you are feeling well.
      type:
        v: display
    item:
      link id:
        v: postSubmit-container-isolation-stayAwayFromFacilities
      text:
        v: Recommended isolation
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-isolation-testDailyForFiveDays
      text:
        v: We recommend you test daily for 5 days and stay at home until 24 hours after your symptoms are gone. If symptoms persist, continue to test.
      type:
        v: display
  item:
    link id:
      v: postSubmit-container-nextSteps
    type:
      v: group
    item:
      link id:
        v: postSubmit-container-nextSteps-heading
      text:
        v: What to do next
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-nextSteps-antivirals
      text:
        v: Talk to your doctor, healthcare provider, pharmacist, or hauora provider if you think that you, or a member of your whānau, may be eligible for antiviral medicines.You can get a prescription for antivirals from your doctor, healthcare provider, or hauora provider. Some pharmacies can supply antivirals without a prescription.
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-nextSteps-currentAdvicePositive
      text:
        v: Continue to follow current advice: https://info.health.nz/conditions-treatments/infectious-diseases/covid-19/if-you-have-covid-19/
      type:
        v: display
    item:
      extension:
        value: Expression
      text:
        v: If symptoms persist, test again at 24 and 48 hours.
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-nextSteps-currentAdviceNegative
      text:
        v: Continue to follow current advice: https://info.health.nz/conditions-treatments/infectious-diseases/covid-19/testing-and-reporting/
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-nextSteps-failed
      text:
        v: Complete a new RAT and report the result.
      type:
        v: display
    item:
      extension:
        value: Expression
      link id:
        v: postSubmit-container-nextSteps-failedCall111
      text:
        v: Call 111 if you find it difficult to breathe, pass out, or find it very difficult to wake up, are blue around the mouth, or very pale and cold, or are having severe chest pain.
      type:
        v: display
  item:
    extension:
      url:
        v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
      value: Expression
    link id:
      v: postSubmit-container-furtherSupport

v: text/fhirpath

v: %testResult = 'failed'

string
v: <anatomic-icon icon='alert' variant='decorativeIcons' color='error100'></anatomic-icon> Result: Failed A result could not be determined.

v: text/fhirpath

v: %testResult != 'failed'

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'positive'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: <anatomic-icon icon='alert' variant='decorativeIcons' color='error100'></anatomic-icon> Result: Positive COVID-19 was detected.

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'negative'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Result: Negative COVID-19 was not detected.

v: text/fhirpath

v: %testResult != 'failed'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Antiviral eligibility

Expression
language:
  v: text/fhirpath
expression:
  v: %criteriaMet = true

Expression
language:
  v: text/fhirpath
expression:
  v: %criteriaMet = false

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Based on the information you have provided, you are not likely to be eligible for oral COVID-19 antiviral medication. Talk to your doctor, pharmacist or hauora provider by phone if you think this is incorrect. Pharmacies where you do not need a prescription for antivirals<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

v: text/fhirpath

v: %testResult = 'positive' and %isolationLeaveDate > today()

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Recommended isolation

Expression
language:
  v: text/fhirpath
expression:
  v: %recentSymptoms or (%recentTest and %hasSymptoms = false)

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: We recommend you stay home and isolate for five days from either the date you developed symptoms or the date you tested positive, whichever was earlier. You can leave your recommended isolation on the sixth day if you are feeling well.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/cqf-expression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: 'We recommend you stay home and isolate for 5 days from ' + %dayZero.formatDate('dddd, D MMMM') + '. You can leave your recommended isolation on ' + %isolationLeaveDate.formatDate('dddd, D MMMM') + ' if you are feeling well.'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: For 10 days you should stay away from healthcare facilities, aged residential care facilities, or anyone at risk of getting seriously unwell with COVID-19. If you must visit, phone ahead and remember to wear a mask. Further COVID-19 information<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

Expression
language:
  v: text/fhirpath
expression:
  v: %householdContact and %hasSymptoms

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: What to do next

Expression
language:
  v: text/fhirpath
expression:
  v: %criteriaMet = true

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Talk to your doctor, healthcare provider, pharmacist, or hauora provider if you think that you, or a member of your whānau, may be eligible for antiviral medicines. You can get a prescription for antivirals from your doctor, healthcare provider, or hauora provider. Some pharmacies can supply antivirals without a prescription. Pharmacies where you do not need a prescription for antivirals<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'positive'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Continue to follow current advice: If you have COVID-19<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'negative' and (%recentSymptoms or (%hasSymptoms and (%householdContact = false)))

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: If symptoms persist, test again at 24 and 48 hours.

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'negative'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Continue to follow current advice: testing and reporting<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'failed'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Complete a new RAT and report the result.

Expression
language:
  v: text/fhirpath
expression:
  v: %testResult = 'failed'

url:
  v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
value: string
  v: Call 111 if you find it difficult to breathe, pass out, or find it very difficult to wake up, are blue around the mouth, or very pale and cold, or are having severe chest pain.

v: text/fhirpath

v: %testResult != 'failed'

v: group

link id:
  v: postSubmit-container-furtherSupport-heading
text:
  v: Further support
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
    value: string
      v: Further support
type:
  v: display

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %testResult = 'positive' or %hasSymptoms
link id:
  v: postSubmit-container-furtherSupport-monitorSymptoms
text:
  v: Monitor COVID-19 symptoms and if they get worse or you need medical care, call a healthcare provider or Healthline on 0800 358 5453.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
    value: string
      v: Monitor COVID-19 symptoms<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon> and if they get worse or you need medical care, call a healthcare provider or Healthline on 0800 358 5453.
type:
  v: display

extension:
  url:
    v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
  value: Expression
    language:
      v: text/fhirpath
    expression:
      v: %testResult = 'negative' and %hasSymptoms = false
link id:
  v: postSubmit-container-furtherSupport-testIfSymptomatic
text:
  v: Monitor for COVID-19 symptoms, and test if you become symptomatic.If you return a positive RAT, report the result using this form.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
    value: string
      v: Monitor for COVID-19 symptoms<anatomic-icon icon='link' display='inlineBlock' variant='functionalIcons'></anatomic-icon>, and test if you become symptomatic. If you return a positive RAT, report the result using this form.
type:
  v: display

link id:
  v: postSubmit-container-furtherSupport-call111
text:
  v: Call 111 if you find it difficult to breathe, pass out, or find it very difficult to wake up, are blue around the mouth, or very pale and cold, or are having severe chest pain.
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
    value: string
      v: Call 111 if you find it difficult to breathe, pass out, or find it very difficult to wake up, are blue around the mouth, or very pale and cold, or are having severe chest pain.
type:
  v: display

link id:
  v: postSubmit-container-exitComplete
text:
  v: Exit
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/rendering-xhtml
    value: string
      v: <exit-button reason='completed'>Return to results page</exit-button>
type:
  v: display

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
  value: boolean
    v: true
link id:
  v: extract
type:
  v: group
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-itemExtractionContext
    value: code
      v: Observation
  extension:
    url:
      v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractUrn
    value: string
      v: urn:uuid:observation-result
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %testResult = 'positive'
  link id:
    v: extract-resultObservationValuePositive
  definition:
    v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.valueString
  text:
    v: Extract - test result positive
  type:
    v: string
  initial:
    value: string
      v: DETECTED
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-itemExtractionContext
    value: code
      v: Observation
  extension:
    url:
      v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractUrn
    value: string
      v: urn:uuid:observation-result
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %testResult = 'negative'
  link id:
    v: extract-resultObservationValueNegative
  definition:
    v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.valueString
  text:
    v: Extract - test result negative
  type:
    v: string
  initial:
    value: string
      v: NOT DETECTED
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-itemExtractionContext
    value: code
      v: Observation
  extension:
    url:
      v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractUrn
    value: string
      v: urn:uuid:observation-result
  extension:
    url:
      v: http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-enableWhenExpression
    value: Expression
      language:
        v: text/fhirpath
      expression:
        v: %testResult = 'failed'
  link id:
    v: extract-resultObservationValueFailed
  definition:
    v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.valueString
  text:
    v: Extract - test result failed
  type:
    v: string
  initial:
    value: string
      v: FAILED
item:
  link id:
    v: extract-resultObservationCode
  definition:
    v: https://build.fhir.org/ig/tewhatuora/cinc-fhir-ig/StructureDefinition/ManaakiNgaTahiObservation#Observation.code.coding[]
  type:
    v: choice
  initial:
    value: Coding
      code:
        v: XNZ5530
      display:
        v: SARS-CoV-2 RAT Self
item:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/sdc-questionnaire-itemExtractionContext
    value: code
      v: DiagnosticReport
  extension:
    url:
      v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractUrn
    value: string
      v: urn:uuid:diagnosticReport
  link id:
    v: extract-diagnosticReport
  type:
    v: group
  item:
    link id:
      v: extract-diagnosticReport-code
    definition:
      v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport#DiagnosticReport.code.coding[]
    type:
      v: choice
    initial:
      value: Coding
  item:
    link id:
      v: extract-diagnosticReport-identifierSystem
    definition:
      v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport#DiagnosticReport.identifier[0].system
    type:
      v: choice
    initial:
      value: string
        v: https://standards.digital.health.nz/ns/SendingApplication
  item:
    link id:
      v: extract-diagnosticReport-identifierValue
    definition:
      v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport#DiagnosticReport.identifier[0].value
    type:
      v: choice
    initial:
      value: string
        v: RAT Catcher
  item:
    link id:
      v: extract-diagnosticReport-result
    definition:
      v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport#DiagnosticReport.result[]
    type:
      v: choice
    initial:
      value: Reference
  item:
    link id:
      v: extract-diagnosticReport-phone
    definition:
      v: http://hl7.org/fhir/StructureDefinition/DiagnosticReport#DiagnosticReport.result[]
    type:
      v: choice
    initial:
      value: Reference
  item:
    extension:
      extension:
        value: Expression
      extension:
        value: Expression
      url:
        v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractMetadata
    link id:
      v: extract-diagnosticReportSubject
    type:
      v: boolean
    initial:
      value: boolean
        v: true
  item:
    extension:
      extension:
        value: Expression
      extension:
        value: Expression
      url:
        v: http://health.govt.nz/fhir/StructureDefinition/sdc-questionnaire-extractMetadata
    link id:
      v: extract-diagnosticReportPerformer
    type:
      v: boolean
    initial:
      value: boolean
        v: true

v: XNZ5530

v: SARS-CoV-2 RAT Self

v: urn:uuid:observation-result

v: SARS-CoV-2 RAT Self

v: urn:uuid:observation-phone

v: Text patient com

v: source

Expression
language:
  v: text/fhirpath
expression:
  v: QuestionnaireResponse.subject

v: destination

Expression
language:
  v: text/fhirpath
expression:
  v: DiagnosticReport.subject

v: source

Expression
language:
  v: text/fhirpath
expression:
  v: QuestionnaireResponse.subject

v: destination

Expression
language:
  v: text/fhirpath
expression:
  v: DiagnosticReport.performer[]

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-hidden
  value: boolean
    v: true
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/questionnaire-claims-extract
  value: string
    v: subject.display
link id:
  v: subjectName
text:
  v: subject name
type:
  v: string
required:
  v: true