PackagesCanonicalsLogsProblems
    Packages
    com.alextherapeutics.fhir.nicotine@1.0.1
    http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-smoking-status
description: A report on the smoking status made by the patient him/herself at a point in time. Used for example when a digital application asks the patient if they are smoke free, or when a patient reports that they have relapsed.
package_name: com.alextherapeutics.fhir.nicotine
derivation: constraint
name: SelfReportedSmokingStatus
type: Extension
elements:
  extension:
    array: true
    min: 2
    index: 0
    slicing:
      slices:
        reportedOn:
          match: {}
          schema:
            short: The date this report was made
            _required: true
            index: 1
            extensions: {}
            elements:
              extension: {index: 2}
              url:
                pattern: {type: Uri, value: reportedOn}
                index: 3
              value:
                choices: [valueDate]
                index: 5
              valueDate: {type: date, choiceOf: value, index: 6}
            required: [value, valueDate]
        status:
          match: {}
          schema:
            short: The status that was reported
            _required: true
            index: 8
            extensions: {}
            elements:
              extension: {index: 9}
              url:
                pattern: {type: Uri, value: status}
                index: 10
              value:
                choices: [valueCodeableConcept]
                index: 12
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
  url:
    pattern: {type: Uri, value: 'http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-smoking-status'}
    index: 15
  value:
    choices: []
    index: 17
package_version: 1.0.1
extensions:
  reportedOn:
    url: null
    short: The date this report was made
    _required: true
    index: 1
    extensions: {}
    elements:
      extension: {index: 2}
      url:
        pattern: {type: Uri, value: reportedOn}
        index: 3
      value:
        choices: [valueDate]
        index: 5
      valueDate: {type: date, choiceOf: value, index: 6}
    required: [value, valueDate]
  status:
    url: null
    short: The status that was reported
    _required: true
    index: 8
    extensions: {}
    elements:
      extension: {index: 9}
      url:
        pattern: {type: Uri, value: status}
        index: 10
      value:
        choices: [valueCodeableConcept]
        index: 12
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 13}
class: extension
kind: complex-type
url: http://www.alextherapeutics.com/fhir/StructureDefinition/self-reported-smoking-status
base: http://hl7.org/fhir/StructureDefinition/Extension
version: 1.0.0