PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.au.core@1.0.0-ballot
    http://hl7.org.au/fhir/core/StructureDefinition/au-core-smokingstatus
description: This profile sets minimum expectations for an Observation resource to record, search, and fetch observations that represent a patient’s smoking status, i.e. current behaviour for all types of tobacco smoking, with standard coding. It is based on the core FHIR [Observation](http://hl7.org/fhir/R4/observation.html) resource and identifies the *additional* mandatory core elements, extensions, vocabularies and value sets that **SHALL** be present in the Observation resource when conforming to this profile. It provides the floor for standards development for specific uses cases in an Australian context.
package_name: hl7.fhir.au.core
derivation: constraint
name: AUCoreSmokingStatus
type: Observation
elements:
  category:
    mustSupport: true
    index: 1
    slicing:
      rules: open
      discriminator:
      - {path: $this, type: pattern}
      min: 1
      slices:
        socialHistory:
          match:
            coding:
            - {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
          schema:
            pattern:
              type: CodeableConcept
              value:
                coding:
                - {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            _required: true
            index: 2
          min: 1
          max: 1
  value:
    mustSupport: true
    choices: [valueCodeableConcept]
    index: 13
  effectiveDateTime:
    constraint:
      au-core-obs-01: {human: Date shall be at least to day, source: 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-smokingstatus', severity: error, expression: $this is DateTime implies $this.toString().length() >= 8}
    short: Date, and optionally time, the observation was performed
    type: dateTime
    mustSupport: true
    choiceOf: effective
    index: 11
  status: {mustSupport: true, index: 0}
  effective:
    constraint:
      au-core-obs-01: {human: Date shall be at least to day, source: 'http://hl7.org.au/fhir/core/StructureDefinition/au-core-smokingstatus', severity: error, expression: $this is DateTime implies $this.toString().length() >= 8}
    short: Date, and optionally time, the observation was performed
    mustSupport: true
    choices: [effectiveDateTime]
    index: 10
  code:
    mustSupport: true
    pattern:
      type: CodeableConcept
      value:
        coding:
        - {code: '1747861000168109', system: 'http://snomed.info/sct'}
    index: 3
    elements:
      coding:
        index: 4
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: system, type: value}
          min: null
          slices:
            loincSmokingStatus:
              match: {code: 72166-2, system: 'http://loinc.org'}
              schema:
                short: LOINC Smoking Status
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 6
                  code:
                    pattern: {type: Code, value: 72166-2}
                    index: 7
                required: [system, code]
  valueCodeableConcept: {type: CodeableConcept, mustSupport: true, choiceOf: value, index: 14}
  subject:
    type: Reference
    mustSupport: true
    refers: ['http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient']
    index: 8
  dataAbsentReason: {mustSupport: true, index: 15}
package_version: 1.0.0-ballot
class: profile
kind: resource
url: http://hl7.org.au/fhir/core/StructureDefinition/au-core-smokingstatus
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.0.0-ballot
required: [effectiveDateTime, subject, category, effective]