FHIR © HL7.org  |  FHIRsmith 4.0.1  |  Server Home  |  XIG Home  |  XIG Stats  | 

FHIR IG analytics

Packageopenehr.ehds.fhir.dataexchange
Resource TypeStructureDefinition
IdStructureDefinition-DvCount.json
FHIR VersionR4
Sourcehttps://build.fhir.org/ig/freshehr/EHDS-openEHR-FHIR-IG/StructureDefinition-DvCount.html
URLhttps://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/DvCount
Version0.1.0
Statusdraft
Date2026-03-25T15:55:34+00:00
NameDvCount
Typehttps://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/DvCount
Kindlogical

Resources that use this resource

StructureDefinition
openehr.ehds.fhir.dataexchange#currentInternationalPatientSummaryInternational Patient Summary

Resources that this resource uses

StructureDefinition
openehr.base#currentDV-COUNTDV_COUNT

Narrative

Note: links and images are rebased to the (stated) source


Source1

{
  "resourceType": "StructureDefinition",
  "id": "DvCount",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/web-source",
      "valueUrl": "https://specifications.openehr.org/releases/RM/Release-1.1.0/data_types.html#_dv_count_class"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#add"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#subtract"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#multiply"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#less_than"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/type-operation",
      "valueCanonical": "#is_strictly_comparable_to"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-as-leaf"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-defns-parent"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-replace-cardinality"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-as-leaf"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-defns-parent"
    },
    {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/view-hint",
      "valueCode": "element-view-replace-cardinality"
    }
  ],
  "url": "https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/DvCount",
  "version": "0.1.0",
  "name": "DvCount",
  "status": "draft",
  "date": "2026-03-25T15:55:34+00:00",
  "publisher": "Ian",
  "contact": [
    {
      "name": "Ian",
      "telecom": [
        {
          "system": "url",
          "value": "http://example.org/example-publisher"
        }
      ]
    }
  ],
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "https://ianbennett.github.io/ExampleIG_Ian/StructureDefinition/DvCount",
  "baseDefinition": "http://openehr.org/fhir/StructureDefinition/DV-COUNT",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "0.1.0-snapshot"
      }
    ],
    "element": [
      {
        "id": "DvCount",
        "path": "DvCount",
        "short": "Count",
        "definition": "openEHR Count",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "Other_reference_ranges_validity",
            "severity": "error",
            "human": "Other reference ranges validity must be present",
            "expression": "other_reference_ranges.exists() implies other_reference_ranges.empty().not()",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-ORDERED"
          },
          {
            "key": "Is_simple_validity",
            "severity": "error",
            "human": "Is simple validity must satisfy conditional constraints",
            "expression": "(normal_range .empty() and other_reference_ranges .empty()) implies is_simple()",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-ORDERED"
          },
          {
            "key": "Normal_range_and_status_consistency",
            "severity": "error",
            "human": "Normal range and status consistency must be present",
            "expression": "(normal_range.exists() and normal_status.exists()) implies (normal_status.code_string.is_equal (ā€œNā€) xor normal_range.not().has (self))",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-ORDERED"
          },
          {
            "key": "Magnitude_status_valid",
            "severity": "error",
            "human": "Magnitude status valid must be present",
            "expression": "magnitude_status.exists() implies valid_magnitude_status() (magnitude_status)",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-QUANTIFIED"
          },
          {
            "key": "Accuracy_is_percent_validity",
            "severity": "error",
            "human": "Accuracy is percent validity must satisfy conditional constraints",
            "expression": "accuracy = 0 implies accuracy_is_percent.not()",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-AMOUNT"
          },
          {
            "key": "Accuracy_validity",
            "severity": "error",
            "human": "Accuracy validity must satisfy conditional constraints",
            "expression": "accuracy_is_percent implies valid_percentage() (accuracy)",
            "source": "http://openehr.org/fhir/StructureDefinition/DV-AMOUNT"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "DvCount.CR",
        "path": "DvCount.CR",
        "short": "Carriage return character.",
        "definition": "Carriage return character.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "BASIC_DEFINITIONS.CR",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.LF",
        "path": "DvCount.LF",
        "short": "Line feed character.",
        "definition": "Line feed character.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "BASIC_DEFINITIONS.LF",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.Local-terminology-id",
        "path": "DvCount.Local_terminology_id",
        "short": "Predefined terminology identifier",
        "definition": "Predefined terminology identifier to indicate it is local to the knowledge resource in which it occurs, e.g. an archetype",
        "min": 1,
        "max": "1",
        "base": {
          "path": "OPENEHR_DEFINITIONS.Local_terminology_id",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.normal-status",
        "path": "DvCount.normal_status",
        "short": "Optional normal status indicator of value with respect to normal range for this value.",
        "definition": "Optional normal status indicator of value with respect to normal range for this value. Often included by lab, even if the normal range itself is not included. Coded by ordinals in series HHH, HH, H, (nothing), L, LL, LLL; see openEHR terminology group  `normal_status`.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DV_ORDERED.normal_status",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://openehr.org/fhir/StructureDefinition/CODE-PHRASE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.normal-range",
        "path": "DvCount.normal_range",
        "short": "Optional normal range.",
        "definition": "Optional normal range.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DV_ORDERED.normal_range",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "name",
                    "valueCode": "T"
                  },
                  {
                    "url": "type",
                    "valueUri": "http://openehr.org/fhir/StructureDefinition/DV-COUNT"
                  }
                ],
                "url": "http://hl7.org/fhir/tools/StructureDefinition/type-parameter"
              }
            ],
            "code": "http://openehr.org/fhir/StructureDefinition/DV-INTERVAL"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.other-reference-ranges",
        "path": "DvCount.other_reference_ranges",
        "short": "Optional tagged other reference ranges for this value in its particular measurement context.",
        "definition": "Optional tagged other reference ranges for this value in its particular measurement context.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "DV_ORDERED.other_reference_ranges",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "name",
                    "valueCode": "T"
                  },
                  {
                    "url": "type",
                    "valueUri": "http://openehr.org/fhir/StructureDefinition/DV-COUNT"
                  }
                ],
                "url": "http://hl7.org/fhir/tools/StructureDefinition/type-parameter"
              }
            ],
            "code": "http://openehr.org/fhir/StructureDefinition/REFERENCE-RANGE"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.magnitude-status",
        "path": "DvCount.magnitude_status",
        "short": "Optional status of magnitude with values: \n\n* `\"=\"`   :   magnitude is a point value \n* `\"<\"`   :   value is < magnitude \n* `\">\"`   :   value is > magnitude \n* `\"<=\"` : value is <= magnitude \n* `\">=\"` : value is >= magnitude \n* `\"~\"`   :   value is approximately magnitude \n\nIf not present, assumed meaning is  `\"=\"` .",
        "definition": "Optional status of magnitude with values: \n\n* `\"=\"`   :   magnitude is a point value \n* `\"<\"`   :   value is < magnitude \n* `\">\"`   :   value is > magnitude \n* `\"<=\"` : value is <= magnitude \n* `\">=\"` : value is >= magnitude \n* `\"~\"`   :   value is approximately magnitude \n\nIf not present, assumed meaning is  `\"=\"` .",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DV_QUANTIFIED.magnitude_status",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.accuracy",
        "path": "DvCount.accuracy",
        "short": "Accuracy of measurement, expressed either as a half-range percent value (`_accuracy_is_percent_` = `True`) or a half-range quantity.",
        "definition": "Accuracy of measurement, expressed either as a half-range percent value (`_accuracy_is_percent_` = `True`) or a half-range quantity. A value of `0` means that accuracy is 100%, i.e. no error.\n\nA value of `_unknown_accuracy_value_` means that accuracy was not recorded.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DV_QUANTIFIED.accuracy",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.accuracy-is-percent",
        "path": "DvCount.accuracy_is_percent",
        "short": "If `True`, indicates that when this object was created, `_accuracy_` was recorded as a percent value; if `False`, as an absolute quantity value.",
        "definition": "If `True`, indicates that when this object was created, `_accuracy_` was recorded as a percent value; if `False`, as an absolute quantity value.",
        "min": 0,
        "max": "1",
        "base": {
          "path": "DV_AMOUNT.accuracy_is_percent",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "boolean"
          }
        ],
        "isModifier": false
      },
      {
        "id": "DvCount.magnitude",
        "path": "DvCount.magnitude",
        "min": 1,
        "max": "1",
        "base": {
          "path": "DV_COUNT.magnitude",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "integer"
          }
        ],
        "isModifier": false
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "DvCount",
        "path": "DvCount",
        "short": "Count",
        "definition": "openEHR Count"
      }
    ]
  }
}