PackagesCanonicalsLogsProblems
    Packages
    PGO.02@1.02.1
    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: PGO.02
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: 'http://hl7.org/fhir/StructureDefinition/observation-eventTiming'}
          schema:
            type: Extension
            short: Approximate time of observation
            mustSupport: true
            url: h
            index: 1
            elements:
              url:
                pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/observation-eventTiming'}
                index: 2
  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: 3
    elements:
      coding:
        index: 4
        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: 21
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 22
                  code:
                    pattern: {type: Code, value: '3221'}
                    index: 23
                  display: {index: 24}
                required: [display, system, code]
            beforeDinerGlucoseNhgtable45:
              match: {code: '3227', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 49
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 50
                  code:
                    pattern: {type: Code, value: '3227'}
                    index: 51
                  display: {index: 52}
                required: [display, system, code]
            beforeLunchGlucoseNhgtable45:
              match: {code: '3225', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 41
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 42
                  code:
                    pattern: {type: Code, value: '3225'}
                    index: 43
                  display: {index: 44}
                required: [display, system, code]
            beforeNightGlucoseNhgtable45:
              match: {code: '3226', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 45
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 46
                  code:
                    pattern: {type: Code, value: '3226'}
                    index: 47
                  display: {index: 48}
                required: [display, system, code]
            generalGlucoseloinc:
              match: {code: 14743-9, system: 'http://loinc.org'}
              schema:
                index: 9
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 10
                  code:
                    pattern: {type: Code, value: 14743-9}
                    index: 11
                  display: {index: 12}
                required: [display, system, code]
            postMealGlucoseloinc:
              match: {code: 14760-3, system: 'http://loinc.org'}
              schema:
                index: 13
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 14
                  code:
                    pattern: {type: Code, value: 14760-3}
                    index: 15
                  display: {index: 16}
                required: [display, system, code]
            fastingGlucoseNhgtable45:
              match: {code: '382', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 17
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 18
                  code:
                    pattern: {type: Code, value: '382'}
                    index: 19
                  display: {index: 20}
                required: [display, system, code]
            postLunchGlucoseNhgtable45:
              match: {code: '3223', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 33
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 34
                  code:
                    pattern: {type: Code, value: '3223'}
                    index: 35
                  display: {index: 36}
                required: [display, system, code]
            fastingGlucoseloinc:
              match: {code: 41604-0, system: 'http://loinc.org'}
              schema:
                index: 5
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 6
                  code:
                    pattern: {type: Code, value: 41604-0}
                    index: 7
                  display: {index: 8}
                required: [display, system, code]
            generalGlucoseNhgtable45:
              match: {code: '355', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 25
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 26
                  code:
                    pattern: {type: Code, value: '355'}
                    index: 27
                  display: {index: 28}
                required: [display, system, code]
            postDinerGlucoseNhgtable45:
              match: {code: '3222', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 29
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 30
                  code:
                    pattern: {type: Code, value: '3222'}
                    index: 31
                  display: {index: 32}
                required: [display, system, code]
            postBreakfastGlucoseNhgtable45:
              match: {code: '3223', system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 37
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 38
                  code:
                    pattern: {type: Code, value: '3223'}
                    index: 39
                  display: {index: 40}
                required: [display, system, code]
    required: [coding]
  valueQuantity: {type: Quantity, index: 53}
package_version: 1.02.1
extensions:
  eventTiming:
    url: h
    type: Extension
    short: Approximate time of observation
    mustSupport: true
    index: 1
    elements:
      url:
        pattern: {type: Uri, value: 'http://hl7.org/fhir/StructureDefinition/observation-eventTiming'}
        index: 2
class: profile
kind: resource
url: http://nictiz.nl/fhir/StructureDefinition/vitalsign-bloodglucose
base: http://nictiz.nl/fhir/StructureDefinition/zib-LaboratoryTestResult-Observation
version: '1.0'