PackagesCanonicalsLogsProblems
    Packages
    fhir.outburn.co.il@0.5.3
    http://fhir.outburn.co.il/StructureDefinition/jcpm-obs-pregnancy-summary
description: Proposed constraints and extensions on JCPM Pregnancy-Summary Resource
package_name: fhir.outburn.co.il
derivation: constraint
name: JCPMPregnancySummary
type: Observation
elements:
  referenceRange: {index: 19}
  specimen: {index: 18}
  value:
    choices: []
    index: 17
  component:
    mustSupport: false
    array: true
    min: 2
    index: 20
    slicing:
      rules: open
      discriminator:
      - {path: code.coding.system, type: value}
      - {path: code.coding.code, type: value}
      min: 2
      slices:
        num-of-fetuses:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '127363001'}
          schema:
            index: 199
            elements:
              code:
                elements:
                  coding:
                    index: 200
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 201
                      code:
                        pattern: {type: code, value: '127363001'}
                        type: code
                        index: 202
                      display:
                        pattern: {type: string, value: Number of fetuses}
                        type: string
                        index: 203
                    required: [code, system]
                  text:
                    pattern: {type: string, value: מס׳ עוברים}
                    type: string
                    index: 204
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 206
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 207
                elements:
                  value: {index: 209}
                  unit:
                    pattern: {type: string, value: '#'}
                    type: string
                    index: 210
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 211
                  code:
                    pattern: {type: code, value: '#'}
                    type: code
                    index: 212
                required: [code, system, unit, value]
        gestational-diabetes:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '11687002'}
          schema:
            index: 145
            elements:
              code:
                elements:
                  coding:
                    index: 146
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 147
                      code:
                        pattern: {type: code, value: '11687002'}
                        type: code
                        index: 148
                      display:
                        pattern: {type: string, value: gestational diabetes mellitus}
                        type: string
                        index: 149
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 151
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 152}
            required: [value, valueCodeableConcept]
        weight-at-delivery:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 69461-2}
          schema:
            index: 112
            elements:
              code:
                elements:
                  coding:
                    index: 113
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 114
                      code:
                        pattern: {type: code, value: 69461-2}
                        type: code
                        index: 115
                      display:
                        pattern: {type: string, value: Body weight at delivery}
                        type: string
                        index: 116
                    required: [code, system]
                  text:
                    pattern: {type: string, value: משקל בסיום הריון}
                    type: string
                    index: 117
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 119
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 120
                elements:
                  value: {index: 122}
                  unit: {index: 123}
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 124
                  code:
                    short: Coded responses from the common UCUM units for vital signs value set.
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-bodyweight|4.0.1', bindingName: BodyWeightUnits}
                    index: 125
                required: [code, system, unit, value]
        IgG:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 22244-8}
          schema:
            index: 172
            elements:
              code:
                elements:
                  coding:
                    index: 173
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 174
                      code:
                        pattern: {type: code, value: 22244-8}
                        type: code
                        index: 175
                      display:
                        pattern: {type: string, value: 'Cytomegalovirus IgG Ab [Presence] in Serum or Plasma'}
                        type: string
                        index: 176
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 178
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 179}
        type-2-diabetes:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '609567009'}
          schema:
            index: 163
            elements:
              code:
                elements:
                  coding:
                    index: 164
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 165
                      code:
                        pattern: {type: code, value: '609567009'}
                        type: code
                        index: 166
                      display:
                        pattern: {type: string, value: Pre-existing type 2 diabetes mellitus in pregnancy}
                        type: string
                        index: 167
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 169
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 170}
        gestational-age:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 76516-4}
          schema:
            index: 76
            elements:
              code:
                elements:
                  coding:
                    index: 77
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 78
                      code:
                        pattern: {type: code, value: 76516-4}
                        type: code
                        index: 79
                      display:
                        pattern: {type: string, value: gestational age at birth}
                        type: string
                        index: 80
                    required: [code, system]
                  text:
                    pattern: {type: string, value: שבוע לידה}
                    type: string
                    index: 81
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 83
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 84
                elements:
                  unit:
                    pattern: {type: string, value: wk}
                    type: string
                    index: 86
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 87
                  code:
                    pattern: {type: code, value: wk}
                    type: code
                    index: 88
            required: [value, valueQuantity]
        last-menstruation-start:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 8665-2}
          schema:
            array: true
            index: 56
            elements:
              code:
                elements:
                  coding:
                    index: 57
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 58
                      code:
                        pattern: {type: code, value: 8665-2}
                        type: code
                        index: 59
                      display:
                        pattern: {type: string, value: Last menstrual period start date}
                        type: string
                        index: 60
                    required: [code, system]
                  text:
                    pattern: {type: string, value: תאריך תחילת וסת אחרון}
                    type: string
                    index: 61
                required: [coding]
              value:
                choices: [valueDateTime]
                index: 63
              valueDateTime: {type: dateTime, choiceOf: value, index: 64}
            required: [value, valueDateTime]
        delivery-date:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 93857-1}
          schema:
            index: 66
            elements:
              code:
                elements:
                  coding:
                    index: 67
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 68
                      code:
                        pattern: {type: code, value: 93857-1}
                        type: code
                        index: 69
                      display:
                        pattern: {type: string, value: Date and time of obstetric delivery}
                        type: string
                        index: 70
                    required: [code, system]
                  text:
                    pattern: {type: string, value: תאריך לידה}
                    type: string
                    index: 71
                required: [coding]
              value:
                choices: [valueDateTime]
                index: 73
              valueDateTime: {type: dateTime, choiceOf: value, index: 74}
            required: [value, valueDateTime]
        num-of-birth:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 63894-0}
          schema:
            index: 222
            elements:
              code:
                elements:
                  coding:
                    index: 223
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 224
                      code:
                        pattern: {type: code, value: 63894-0}
                        type: code
                        index: 225
                      display:
                        pattern: {type: string, value: Number of birth}
                        type: string
                        index: 226
                    required: [code, system]
                  text:
                    pattern: {type: string, value: מספר לידה}
                    type: string
                    index: 227
                required: [coding]
              value:
                choices: [valueInteger]
                index: 229
              valueInteger: {type: integer, choiceOf: value, index: 230}
        diagnostic-procedures:
          match:
            code:
              coding: {system: 'http://loinc.org', code: LP130361-1}
          schema:
            array: true
            index: 89
            elements:
              code:
                elements:
                  coding:
                    index: 90
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 91
                      code:
                        pattern: {type: code, value: LP130361-1}
                        type: code
                        index: 92
                      display:
                        pattern: {type: string, value: Diagnostic procedures performed}
                        type: string
                        index: 93
                    required: [code, system]
                  text:
                    pattern: {type: string, value: פרוצדורה אבחנתית שבוצעה}
                    type: string
                    index: 94
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 96
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 97}
        method-induced-abortion:
          match:
            code:
              coding: {system: 'http://fhir.outburn.co.il/CodeSystem/TBD-Codes', code: method-of-induced-abortion}
          schema:
            array: true
            index: 36
            elements:
              code:
                elements:
                  coding:
                    index: 37
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://fhir.outburn.co.il/CodeSystem/TBD-Codes'}
                        type: uri
                        index: 38
                      code:
                        pattern: {type: code, value: method-of-induced-abortion}
                        type: code
                        index: 39
                      display:
                        pattern: {type: string, value: method of induced abortion}
                        type: string
                        index: 40
                    required: [code, system]
                  text:
                    pattern: {type: string, value: שיטת הפלה}
                    type: string
                    index: 41
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 43
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 44}
            required: [value, valueCodeableConcept]
        IgM:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 30325-5}
          schema:
            index: 181
            elements:
              code:
                elements:
                  coding:
                    index: 182
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 183
                      code:
                        pattern: {type: code, value: 30325-5}
                        type: code
                        index: 184
                      display:
                        pattern: {type: string, value: 'Cytomegalovirus  IgM Ab [Presence] in Serum or Plasma'}
                        type: string
                        index: 185
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 187
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 188}
        num-of-current-pregnancy:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '127363001'}
          schema:
            _required: true
            index: 213
            elements:
              code:
                elements:
                  coding:
                    index: 214
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 215
                      code:
                        pattern: {type: code, value: '127363001'}
                        type: code
                        index: 216
                      display:
                        pattern: {type: string, value: 'Number of pregnancies, currently pregnant'}
                        type: string
                        index: 217
                    required: [code, system]
                  text:
                    pattern: {type: string, value: מספר הריון}
                    type: string
                    index: 218
                required: [coding]
              value:
                choices: [valueInteger]
                index: 220
              valueInteger: {type: integer, choiceOf: value, index: 221}
        outcome:
          match:
            code:
              coding: {system: null, code: null}
          schema:
            array: true
            min: 1
            _required: true
            index: 21
            elements:
              code:
                elements:
                  coding:
                    mustSupport: false
                    array: true
                    min: 2
                    index: 22
                    slicing:
                      rules: open
                      discriminator:
                      - {path: system, type: value}
                      min: 2
                      slices:
                        loinc:
                          match: {system: 'http://loinc.org'}
                          schema:
                            _required: true
                            index: 23
                            elements:
                              system:
                                pattern: {type: uri, value: 'http://loinc.org'}
                                type: uri
                                index: 24
                              code:
                                pattern: {type: code, value: 63893-2}
                                type: code
                                index: 25
                              display:
                                pattern: {type: string, value: Outcome of pregnancy}
                                type: string
                                index: 26
                            required: [code, system]
                        snomed:
                          match: {system: 'http://snomed.info/sct'}
                          schema:
                            _required: true
                            index: 27
                            elements:
                              system:
                                pattern: {type: uri, value: 'http://snomed.info/sct'}
                                type: uri
                                index: 28
                              code:
                                pattern: {type: code, value: '267013003'}
                                type: code
                                index: 29
                              display:
                                pattern: {type: string, value: Past pregnancy outcome}
                                type: string
                                index: 30
                            required: [code, system]
                  text:
                    pattern: {type: string, value: תוצאות הריון}
                    type: string
                    index: 31
              value:
                choices: [valueCodeableConcept]
                index: 33
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 34}
            required: [value, valueCodeableConcept]
        weight-pre-pregnancy:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 69460-4}
          schema:
            index: 99
            elements:
              code:
                elements:
                  coding:
                    index: 100
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 101
                      code:
                        pattern: {type: code, value: 69460-4}
                        type: code
                        index: 102
                      display:
                        pattern: {type: string, value: Body weight pre current pregnancy}
                        type: string
                        index: 103
                    required: [code, system]
                  text:
                    pattern: {type: string, value: משקל בתחילת הריון}
                    type: string
                    index: 104
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 106
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 107
                elements:
                  value: {index: 109}
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 110
                  code:
                    short: Coded responses from the common UCUM units for vital signs value set.
                    binding: {strength: required, valueSet: 'http://hl7.org/fhir/ValueSet/ucum-bodyweight|4.0.1', bindingName: BodyWeightUnits}
                    index: 111
                required: [code, system, value]
        gestational-proteinuria:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '34165000'}
          schema:
            index: 136
            elements:
              code:
                elements:
                  coding:
                    index: 137
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 138
                      code:
                        pattern: {type: code, value: '34165000'}
                        type: code
                        index: 139
                      display:
                        pattern: {type: string, value: gestational proteinuria}
                        type: string
                        index: 140
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 142
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 143}
            required: [value, valueCodeableConcept]
        type-1-diabetes:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '609564002'}
          schema:
            index: 154
            elements:
              code:
                elements:
                  coding:
                    index: 155
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 156
                      code:
                        pattern: {type: code, value: '609564002'}
                        type: code
                        index: 157
                      display:
                        pattern: {type: string, value: Pre-existing type 1 diabetes mellitus in pregnancy}
                        type: string
                        index: 158
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 160
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 161}
        num-live-births:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 11636-8}
          schema:
            index: 231
            elements:
              code:
                elements:
                  coding:
                    index: 232
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 233
                      code:
                        pattern: {type: code, value: 11636-8}
                        type: code
                        index: 234
                      display:
                        pattern: {type: string, value: '[#] Births.live'}
                        type: string
                        index: 235
                    required: [code, system]
                  text:
                    pattern: {type: string, value: ילודים חיים}
                    type: string
                    index: 236
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 238
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 239
                elements:
                  value: {index: 241}
                  unit:
                    pattern: {type: string, value: '#'}
                    type: string
                    index: 242
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 243
                  code:
                    pattern: {type: code, value: '#'}
                    type: code
                    index: 244
                required: [code, system, unit, value]
        num-stillborn-births:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 57062-2}
          schema:
            index: 245
            elements:
              code:
                elements:
                  coding:
                    index: 246
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 247
                      code:
                        pattern: {type: code, value: 57062-2}
                        type: code
                        index: 248
                      display:
                        pattern: {type: string, value: '[#] Births.stillborn'}
                        type: string
                        index: 249
                    required: [code, system]
                  text:
                    pattern: {type: string, value: ילודים מתים}
                    type: string
                    index: 250
                required: [coding]
              value:
                choices: [valueQuantity]
                index: 252
              valueQuantity:
                type: Quantity
                choiceOf: value
                index: 253
                elements:
                  value: {index: 255}
                  unit:
                    pattern: {type: string, value: '#'}
                    type: string
                    index: 256
                  system:
                    pattern: {type: uri, value: 'http://unitsofmeasure.org'}
                    type: uri
                    index: 257
                  code:
                    pattern: {type: code, value: '#'}
                    type: code
                    index: 258
                required: [code, system, unit, value]
        pregnancy-induced-hypertension:
          match:
            code:
              coding: {system: 'http://snomed.info/sct', code: '48194001'}
          schema:
            index: 126
            elements:
              code:
                elements:
                  coding:
                    index: 127
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://snomed.info/sct'}
                        type: uri
                        index: 128
                      code:
                        pattern: {type: code, value: '48194001'}
                        type: code
                        index: 129
                      display:
                        pattern: {type: string, value: Pregnancy-induced hypertension}
                        type: string
                        index: 130
                    required: [code, system]
                  text:
                    pattern: {type: string, value: יתר לחץ דם בהריון}
                    type: string
                    index: 131
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 133
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 134}
            required: [value, valueCodeableConcept]
        hospitalization:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 71590-4}
          schema:
            index: 190
            elements:
              code:
                elements:
                  coding:
                    index: 191
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 192
                      code:
                        pattern: {type: code, value: 71590-4}
                        type: code
                        index: 193
                      display:
                        pattern: {type: string, value: 'Hospitalized or emergency room [ESRD]'}
                        type: string
                        index: 194
                    required: [code, system]
                required: [coding]
              value:
                choices: [valueCodeableConcept]
                index: 196
              valueCodeableConcept: {type: CodeableConcept, choiceOf: value, index: 197}
            required: [value, valueCodeableConcept]
        date-end-pregnancy:
          match:
            code:
              coding: {system: 'http://loinc.org', code: 63963-3}
          schema:
            index: 46
            elements:
              code:
                elements:
                  coding:
                    index: 47
                    elements:
                      system:
                        pattern: {type: uri, value: 'http://loinc.org'}
                        type: uri
                        index: 48
                      code:
                        pattern: {type: code, value: 63963-3}
                        type: code
                        index: 49
                      display:
                        pattern: {type: string, value: Date of end of pregnancy}
                        type: string
                        index: 50
                    required: [code, system]
                  text:
                    pattern: {type: string, value: תאריך סיום הריון}
                    type: string
                    index: 51
                required: [coding]
              value:
                choices: [valueDateTime]
                index: 53
              valueDateTime: {type: dateTime, choiceOf: value, index: 54}
            required: [value, valueDateTime]
  status:
    pattern: {type: code, value: final}
    type: code
    index: 0
  effective:
    choices: [effectivePeriod]
    index: 13
  code:
    elements:
      coding:
        index: 1
        elements:
          system:
            pattern: {type: uri, value: 'http://loinc.org'}
            type: uri
            index: 2
          code:
            pattern: {type: code, value: 90767-5}
            type: code
            index: 3
          display:
            pattern: {type: string, value: Pregnancy summary Document}
            type: string
            index: 4
        required: [code, system]
    required: [coding]
  focus:
    index: 6
    elements:
      type:
        pattern: {type: uri, value: condition}
        type: uri
        index: 7
      identifier:
        index: 8
        elements:
          system: {index: 9}
          value: {index: 10}
        required: [system, value]
      display:
        pattern: {type: string, value: הריון}
        type: string
        index: 11
    required: [identifier]
  subject:
    type: Reference
    refers: ['http://fhir.outburn.co.il/StructureDefinition/jcpm-patient']
    index: 5
  effectivePeriod: {type: Period, choiceOf: effective, index: 14}
package_version: 0.5.3
class: profile
kind: resource
url: http://fhir.outburn.co.il/StructureDefinition/jcpm-obs-pregnancy-summary
base: http://fhir.health.gov.il/StructureDefinition/il-core-observation
version: 0.3.0
required: [focus, subject]