PackagesCanonicalsLogsProblems
    Packages
    fhir.outburn.co.il@0.5.2
    http://fhir.outburn.co.il/StructureDefinition/jcpm-obs-pregnancy-history
description: Proposed constraints and extensions on JCPM Pregnancy-History Resource
package_name: fhir.outburn.co.il
derivation: constraint
name: JCPMPregnancyHistory
type: Observation
elements:
  status:
    pattern: {type: code, value: final}
    type: code
    index: 0
  code:
    elements:
      coding:
        elements:
          system:
            pattern: {type: uri, value: 'http://loinc.org'}
            type: uri
            index: 1
          code:
            pattern: {type: code, value: 10163-4}
            type: code
            index: 2
          display:
            pattern: {type: string, value: Findings of pregnancies}
            type: string
            index: 3
        required: [code, system]
  value:
    choices: []
    index: 5
  specimen: {index: 6}
  referenceRange: {index: 7}
  component:
    mustSupport: false
    array: true
    min: 4
    index: 8
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.system, type: value}
      - {path: code.coding.code, type: value}
      min: 4
      slices:
        num-pregnancies:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 11996-6}
          schema:
            _required: true
            index: 9
            elements:
              code:
                elements:
                  coding:
                    index: 10
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 11
                      code:
                        pattern: {type: code, value: 11996-6}
                        type: code
                        index: 12
                      display:
                        pattern: {type: string, value: '[#] Pregnancies'}
                        type: string
                        index: 13
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 15
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 16
                elements:
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 18
                  code:
                    pattern: {type: code, value: '{#}'}
                    type: code
                    index: 19
        num-births-live:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 11636-8}
          schema:
            _required: true
            index: 20
            elements:
              code:
                elements:
                  coding:
                    index: 21
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 22
                      code:
                        pattern: {type: code, value: 11636-8}
                        type: code
                        index: 23
                      display:
                        pattern: {type: string, value: '[#] Births.live'}
                        type: string
                        index: 24
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 26
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 27
                elements:
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 29
                  code:
                    pattern: {type: code, value: '{#}'}
                    type: code
                    index: 30
        num-births-total:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 11640-0}
          schema:
            _required: true
            index: 31
            elements:
              code:
                elements:
                  coding:
                    index: 32
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 33
                      code:
                        pattern: {type: code, value: 11640-0}
                        type: code
                        index: 34
                      display:
                        pattern: {type: string, value: '[#] Births total'}
                        type: string
                        index: 35
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 37
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 38
                elements:
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 40
                  code:
                    pattern: {type: code, value: '{#}'}
                    type: code
                    index: 41
        num-previous-cesarian:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 68497-7}
          schema:
            _required: true
            index: 42
            elements:
              code:
                elements:
                  coding:
                    index: 43
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 44
                      code:
                        pattern: {type: code, value: 68497-7}
                        type: code
                        index: 45
                      display:
                        pattern: {type: string, value: 'Previous cesarean deliveries #'}
                        type: string
                        index: 46
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 48
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 49
                elements:
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 51
                  code:
                    pattern: {type: code, value: '{#}'}
                    type: code
                    index: 52
package_version: 0.5.2
class: profile
kind: resource
url: http://fhir.outburn.co.il/StructureDefinition/jcpm-obs-pregnancy-history
base: http://fhir.health.gov.il/StructureDefinition/il-core-observation
version: 0.3.0