PackagesCanonicalsLogsProblems
    Packages
    ee.fhir.mpi@1.4.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: 9
    elements:
      coding:
        index: 10
        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: 11
              min: 1
              max: 1
    required: [coding]
  referenceRange: {index: 35}
  hasMember: {index: 36}
  interpretation: {index: 29}
  encounter: {index: 22}
  method: {index: 32}
  specimen: {index: 33}
  value:
    choices: []
    index: 27
  implicitRules: {index: 0}
  component:
    array: true
    max: 2
    index: 37
    slicing:
      rules: open
      description: Slice based on the component.code pattern
      discriminator:
      - {path: code, type: pattern}
      min: null
      max: 2
      slices:
        job:
          match:
            code:
              coding:
              - {code: '160922003', system: 'http://snomed.info/sct', display: Job details}
          schema:
            mustSupport: true
            index: 38
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '160922003', system: 'http://snomed.info/sct', display: Job details}
                index: 39
              value:
                short: Tööamet.
                choices: [valueCodeableConcept]
                index: 41
              valueCodeableConcept: {type: CodeableConcept, short: Tööamet., choiceOf: value, index: 42}
            required: [value, valueCodeableConcept]
        rate:
          match:
            code:
              coding:
              - {code: '224374003', system: 'http://snomed.info/sct', display: Regularity of work}
          schema:
            short: Lepinguline töökoormus.
            index: 43
            elements:
              code:
                pattern:
                  type: CodeableConcept
                  value:
                    coding:
                    - {code: '224374003', system: 'http://snomed.info/sct', display: Regularity of work}
                index: 44
              value:
                short: Töökoormus (0..1].
                choices: [valueQuantity]
                index: 46
              valueQuantity: {type: Quantity, short: 'Töökoormus (0..1].', choiceOf: value, index: 47}
              value[x]:
                elements:
                  comparator: {index: 48}
                  unit:
                    pattern: {type: String, value: '1'}
                    index: 49
            required: [value, valueQuantity]
  contained:
    index: 1
    slicing:
      rules: open
      ordered: false
      discriminator:
      - {path: $this, type: type}
      min: 1
      max: 1
      slices:
        employer:
          match: {}
          schema:
            type: Organization
            short: Tööandja asutus
            _required: true
            index: 2
            elements:
              contact:
                elements:
                  address:
                    elements:
                      use:
                        pattern: {type: Code, value: work}
                        index: 3
                      country:
                        pattern: {type: String, value: EE}
                        index: 4
  status:
    pattern: {type: Code, value: final}
    index: 8
  effective:
    choices: []
    index: 24
  code:
    elements:
      coding:
        array: true
        min: 1
        max: 2
        index: 12
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          min: 1
          max: 2
          slices:
            loinc:
              match: {code: 11341-5}
              schema:
                mustSupport: true
                index: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 14
                  code:
                    pattern: {type: Code, value: 11341-5}
                    index: 15
                  display:
                    pattern: {type: String, value: History of occupation}
                    index: 16
                required: [system, code]
            snomed:
              match: {code: '184104002'}
              schema:
                mustSupport: true
                index: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://snomed.info/sct'}
                    index: 18
                  code:
                    pattern: {type: Code, value: '184104002'}
                    index: 19
                  display:
                    pattern: {type: String, value: Patient occupation}
                    index: 20
                required: [system, code]
    required: [coding]
  bodySite: {index: 30}
  device: {index: 34}
  basedOn: {index: 6}
  partOf: {index: 7}
  bodyStructure: {index: 31}
  subject:
    type: Reference
    refers: ['https://fhir.ee/mpi/StructureDefinition/ee-mpi-patient-verified']
    index: 21
  modifierExtension: {index: 5}
  performer:
    type: Reference
    short: Tööandja asutus. Viide contained ressursile
    refers: ['https://fhir.ee/base/StructureDefinition/ee-organization']
    index: 25
  dataAbsentReason: {index: 28}
package_version: 1.4.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.4.0
required: [subject, category, contained, performer]