PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.stu3.zib2017@1.1.4
    http://nictiz.nl/fhir/StructureDefinition/vitalsign-bloodglucose
description: This profile represents a single blood glucose self measurement based on the seven-point scale (SMBG).
package_name: nictiz.fhir.nl.stu3.zib2017
derivation: constraint
name: Vital Signs BloodGlucose
type: Observation
elements:
  extension:
    index: 0
    slicing:
      rules: open
      discriminator:
      - {path: url, type: value}
      min: null
      slices:
        eventTiming:
          match: {url: null}
          schema:
            type: Extension
            mustSupport: true
            url: h
            index: 1
            extensions:
              code:
                url: null
                index: 2
                elements:
                  valueCodeableConcept:
                    index: 3
                    slicing:
                      slices:
                        valueCodeableConcept:
                          match: {}
                          schema: {index: 3}
              offset:
                url: null
                index: 4
                elements:
                  valueQuantity:
                    index: 5
                    slicing:
                      slices:
                        valueQuantity:
                          match: {}
                          schema: {index: 5}
            elements:
              extension:
                index: 2
                slicing:
                  slices:
                    code:
                      match: {}
                      schema:
                        index: 2
                        elements:
                          valueCodeableConcept:
                            index: 3
                            slicing:
                              slices:
                                valueCodeableConcept:
                                  match: {}
                                  schema: {index: 3}
                    offset:
                      match: {}
                      schema:
                        index: 4
                        elements:
                          valueQuantity:
                            index: 5
                            slicing:
                              slices:
                                valueQuantity:
                                  match: {}
                                  schema: {index: 5}
  code:
    constraint:
      bg-1: {human: Observation.code SHALL have at least one coding based on LOINC, severity: error, expression: 'coding.where(system = ''http://loinc.org'').exists()'}
      bg-2: {human: Observation.code MAY have a maximum of one coding based on NHG Table 45, severity: error, expression: 'coding.where(system = ''https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'').count() <= 1'}
    index: 6
    elements:
      coding:
        index: 7
        slicing:
          rules: open
          discriminator:
          - {path: code, type: value}
          - {path: system, type: value}
          min: 1
          slices:
            generalGlucosePortableDeviceNhgtable45:
              match: {code: '3221', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 24
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 25
                  code:
                    pattern: {type: Code, value: '3221'}
                    index: 26
                  display: {index: 27}
                required: [display, system, code]
            beforeDinerGlucoseNhgtable45:
              match: {code: '3227', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 52
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 53
                  code:
                    pattern: {type: Code, value: '3227'}
                    index: 54
                  display: {index: 55}
                required: [display, system, code]
            beforeLunchGlucoseNhgtable45:
              match: {code: '3225', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 44
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 45
                  code:
                    pattern: {type: Code, value: '3225'}
                    index: 46
                  display: {index: 47}
                required: [display, system, code]
            beforeNightGlucoseNhgtable45:
              match: {code: '3226', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 48
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 49
                  code:
                    pattern: {type: Code, value: '3226'}
                    index: 50
                  display: {index: 51}
                required: [display, system, code]
            generalGlucoseloinc:
              match: {code: 14743-9, system: 'http://loinc.org'}
              schema:
                index: 12
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 13
                  code:
                    pattern: {type: Code, value: 14743-9}
                    index: 14
                  display: {index: 15}
                required: [display, system, code]
            postMealGlucoseloinc:
              match: {code: 14760-3, system: 'http://loinc.org'}
              schema:
                index: 16
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 17
                  code:
                    pattern: {type: Code, value: 14760-3}
                    index: 18
                  display: {index: 19}
                required: [display, system, code]
            fastingGlucoseNhgtable45:
              match: {code: '382', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 20
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 21
                  code:
                    pattern: {type: Code, value: '382'}
                    index: 22
                  display: {index: 23}
                required: [display, system, code]
            postLunchGlucoseNhgtable45:
              match: {code: '3223', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 36
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 37
                  code:
                    pattern: {type: Code, value: '3223'}
                    index: 38
                  display: {index: 39}
                required: [display, system, code]
            fastingGlucoseloinc:
              match: {code: 41604-0, system: 'http://loinc.org'}
              schema:
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 9
                  code:
                    pattern: {type: Code, value: 41604-0}
                    index: 10
                  display: {index: 11}
                required: [display, system, code]
            generalGlucoseNhgtable45:
              match: {code: '355', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 28
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 29
                  code:
                    pattern: {type: Code, value: '355'}
                    index: 30
                  display: {index: 31}
                required: [display, system, code]
            postDinerGlucoseNhgtable45:
              match: {code: '3222', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 32
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 33
                  code:
                    pattern: {type: Code, value: '3222'}
                    index: 34
                  display: {index: 35}
                required: [display, system, code]
            postBreakfastGlucoseNhgtable45:
              match: {code: '3224', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 40
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 41
                  code:
                    pattern: {type: Code, value: '3224'}
                    index: 42
                  display: {index: 43}
                required: [display, system, code]
    required: [coding]
  valueQuantity:
    type: Quantity
    index: 56
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, index: 56}
package_version: 1.1.4
extensions:
  eventTiming:
    url: h
    type: Extension
    mustSupport: true
    index: 1
    extensions:
      code:
        url: null
        index: 2
        elements:
          valueCodeableConcept:
            index: 3
            slicing:
              slices:
                valueCodeableConcept:
                  match: {}
                  schema: {index: 3}
      offset:
        url: null
        index: 4
        elements:
          valueQuantity:
            index: 5
            slicing:
              slices:
                valueQuantity:
                  match: {}
                  schema: {index: 5}
    elements:
      extension:
        index: 2
        slicing:
          slices:
            code:
              match: {}
              schema:
                index: 2
                elements:
                  valueCodeableConcept:
                    index: 3
                    slicing:
                      slices:
                        valueCodeableConcept:
                          match: {}
                          schema: {index: 3}
            offset:
              match: {}
              schema:
                index: 4
                elements:
                  valueQuantity:
                    index: 5
                    slicing:
                      slices:
                        valueQuantity:
                          match: {}
                          schema: {index: 5}
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/vitalsign-bloodglucose
base: http://nictiz.nl/fhir/StructureDefinition/zib-LaboratoryTestResult-Observation
version: 1.0.1