PackagesCanonicalsLogsProblems
    Packages
    ee.fhir.mpi@1.1.0
    https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation
description: Töötamine
package_name: ee.fhir.mpi
derivation: constraint
name: EEMPISocialHistoryOccupation
type: Observation
elements:
  category:
    index: 3
    elements:
      coding:
        index: 4
        slicing:
          slices:
            obscat:
              match: {}
              schema:
                pattern:
                  type: Coding
                  value: {code: social-history, system: 'http://terminology.hl7.org/CodeSystem/observation-category', display: Social history}
                _required: true
                index: 5
              min: 1
    required: [coding]
  referenceRange: {index: 28}
  hasMember: {index: 29}
  interpretation: {index: 22}
  method: {index: 25}
  specimen: {index: 26}
  value:
    choices: []
    index: 21
  component:
    array: true
    min: 1
    max: 2
    index: 30
    slicing:
      rules: open
      description: Slice based on the component.code pattern
      discriminator:
      - {path: code, type: pattern}
      min: 1
      max: 2
      slices:
        job:
          match:
            code:
              coding:
              - {code: '160922003', system: 'http://snomed.info/sct', display: Job details}
          schema:
            mustSupport: true
            _required: true
            index: 31
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '160922003', system: 'http://snomed.info/sct', display: Job details}
                index: 32
              value:
                short: Tööamet.
                choices: [valueCodeableConcept]
                index: 34
              valueCodeableConcept: {type: CodeableConcept, short: Tööamet., choiceOf: value, index: 35}
        type:
          match:
            code:
              coding:
              - {code: '224361009', system: 'http://snomed.info/sct', display: Type of job}
          schema:
            index: 36
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '224361009', system: 'http://snomed.info/sct', display: Type of job}
                index: 37
              value:
                short: Töötamise liik.
                choices: [valueCodeableConcept]
                index: 39
              valueCodeableConcept: {type: CodeableConcept, short: Töötamise liik., choiceOf: value, index: 40}
        rate:
          match:
            code:
              coding:
              - {code: '224374003', system: 'http://snomed.info/sct', display: Regularity of work}
          schema:
            short: Lepinguline töökoormus.
            index: 41
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '224374003', system: 'http://snomed.info/sct', display: Regularity of work}
                index: 42
              value:
                short: Töökoormus (0..1].
                pattern:
                  type: Quantity
                  value: {code: /1, unit: per work rate, system: 'http://unitsofmeasure.org'}
                choices: [valueQuantity]
                index: 44
              valueQuantity:
                type: Quantity
                short: Töökoormus (0..1].
                pattern:
                  type: Quantity
                  value: {code: /1, unit: per work rate, system: 'http://unitsofmeasure.org'}
                choiceOf: value
                index: 45
  status:
    pattern: {type: Code, value: final}
    index: 2
  effective:
    choices: [effectivePeriod]
    index: 17
  code:
    elements:
      coding:
        array: true
        min: 2
        max: 2
        index: 6
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: 2
          max: 2
          slices:
            loinc:
              match: {code: 11341-5}
              schema:
                mustSupport: true
                _required: true
                index: 7
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 8
                  code:
                    pattern: {type: Code, value: 11341-5}
                    index: 9
                  display:
                    pattern: {type: String, value: History of occupation}
                    index: 10
                required: [system, code]
            snomed:
              match: {code: '184104002'}
              schema:
                mustSupport: true
                _required: true
                index: 11
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 12
                  code:
                    pattern: {type: Code, value: '184104002'}
                    index: 13
                  display:
                    pattern: {type: String, value: Patient occupation}
                    index: 14
                required: [system, code]
  bodySite: {index: 23}
  device: {index: 27}
  basedOn: {index: 0}
  partOf: {index: 1}
  bodyStructure: {index: 24}
  subject:
    type: Reference
    refers: ['https://fhir.ee/base/StructureDefinition/ee-patient']
    index: 15
  performer:
    type: Reference
    short: Tööandja asutus.
    refers: ['https://fhir.ee/base/StructureDefinition/ee-organization']
    index: 19
  effectivePeriod: {type: Period, choiceOf: effective, index: 18}
package_version: 1.1.0
class: profile
kind: resource
url: https://fhir.ee/mpi/StructureDefinition/ee-mpi-socialhistory-occupation
base: https://fhir.ee/base/StructureDefinition/ee-observation
version: 1.1.0
required: [effectivePeriod, component, subject, category, effective]