PackagesCanonicalsLogsProblems
    Packages
    nictiz.fhir.nl.stu3.zib2017@2.2.8
    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: system, type: value}
          min: 1
          slices:
            LOINC:
              match: {system: 'http://loinc.org'}
              schema:
                index: 8
                elements:
                  system:
                    pattern: {type: Uri, value: 'http://loinc.org'}
                    index: 9
            NHGTable45:
              match: {system: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
              schema:
                index: 10
                elements:
                  system:
                    pattern: {type: Uri, value: 'https://referentiemodel.nhg.org/tabellen/nhg-tabel-45-diagnostische-bepalingen'}
                    index: 11
    required: [coding]
  valueQuantity:
    type: Quantity
    index: 12
    slicing:
      slices:
        valueQuantity:
          match: {}
          schema: {type: Quantity, index: 12}
package_version: 2.2.8
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.5