PackagesCanonicalsLogsProblems
    Packages
    IdHIE.0v@0.0.1
    http://fhir.hie.moh.gov.id/StructureDefinition/Observation-lab-result-id-core
description: Observation Lab Result My Core
package_name: IdHIE.0v
derivation: constraint
name: ObservationLabResultIdCore
type: Observation
elements:
  category:
    index: 0
    elements:
      coding:
        elements:
          system:
            pattern: {type: Uri, value: 'http://terminology.hl7.org/CodeSystem/observation-category'}
            index: 1
          code:
            pattern: {type: Code, value: laboratory}
            index: 2
        required: [system, code]
  code:
    binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/loinc-id-core'}
    index: 3
    elements:
      coding:
        index: 4
        slicing:
          rules: open
          discriminator:
          - {path: system, type: value}
          min: null
          slices:
            lab:
              match: {system: 'http://fhir.hie.moh.gov.id/CodeSystem/lab-id-core'}
              schema:
                binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/lab-id-core'}
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://fhir.hie.moh.gov.id/CodeSystem/lab-id-core'}
                    index: 6
                  code: {index: 7}
                required: [system, code]
            codeLoinc:
              match: {system: 'http://loinc.org'}
              schema:
                binding: {strength: preferred, valueSet: 'http://fhir.hie.moh.gov.id/ValueSet/loinc-id-core'}
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 9
  value:
    choices: []
    index: 11
  component:
    index: 12
    elements:
      value:
        choices: [valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueDateTime]
        index: 14
      valueQuantity: {type: Quantity, choiceOf: value, index: 15}
      valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 16}
      valueString: {type: string, choiceOf: value, index: 17}
      valueBoolean: {type: boolean, choiceOf: value, index: 18}
      valueRange: {type: Range, choiceOf: value, index: 19}
      valueDateTime: {type: dateTime, choiceOf: value, index: 20}
package_version: 0.0.1
class: profile
kind: resource
url: http://fhir.hie.moh.gov.id/StructureDefinition/Observation-lab-result-id-core
base: http://hl7.org/fhir/StructureDefinition/Observation
version: 1.0.0
required: [component, category]