PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.base@2.2.0-ballot
    http://hl7.org.au/fhir/StructureDefinition/au-smokingstatus
description: null
package_name: hl7.fhir.au.base
derivation: constraint
name: AUSmokingStatus
type: Observation
elements:
  code:
    elements:
      coding:
        pattern:
          type: Coding
          value: {code: '266918002', system: 'http://snomed.info/sct'}
        index: 0
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: system, type: value}
          min: 1
          slices:
            smokingLOINCCode:
              match: {code: null, system: null}
              schema:
                pattern:
                  type: Coding
                  value: {code: 72166-2, system: 'http://loinc.org'}
                index: 1
              max: 1
    required: [coding]
  subject:
    type: Reference
    refers: ['http://hl7.org/fhir/StructureDefinition/Patient']
    index: 2
  effective:
    choices: [effectiveDateTime]
    index: 4
  effectiveDateTime: {type: dateTime, choiceOf: effective, index: 5}
  value:
    choices: [valueCodeableConcept]
    index: 7
  valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 8}
package_version: 2.2.0-ballot
class: profile
kind: resource
url: http://hl7.org.au/fhir/StructureDefinition/au-smokingstatus
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 2.2.0
required: [effectiveDateTime, subject, effective]