FHIR © HL7.org  |  Server Home  |  XIG Home  |  XIG Stats  |  Server Source  |  FHIR  

FHIR IG Statistics: StructureDefinition/VR

Packagehl7.v2plus
Resource TypeStructureDefinition
IdVR
FHIR VersionR5
Sourcehttp://somewhere.org/fhir/uv/v2plus/https://build.fhir.org/ig/HL7/v2ig/StructureDefinition-VR.html
URLhttp://hl7.org/v2/StructureDefinition/VR
Version0.0.0
Statusactive
Date2025-07-11T16:45:01+00:00
NameVR
TitleHL7 v2 VR Data Type
Authorityhl7
Description*Note:* Replaces the CM data type used in 5.10.5.3.11 QRD-11 as of v 2.5. The VR differs from the Numeric Range (NR) data type only in that the values are not restricted to numbers. If the range is not numeric, the set must be orderable in some intuitive way such as alpha or the order must be defined in the field where the data type is used. Example 1: |+^+++| Example 2: Colors of the rainbow |violet^red|
Typehttp://hl7.org/v2/StructureDefinition/VR
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
STHL7 v2 String Primitive Type
complex-data-typeHL7 v2 Complex Data Type

Narrative

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

Generated Narrative: StructureDefinition VR

NameFlagsCard.TypeDescription & Constraintsdoco
.. VR 0..*V2ComplexDataTypevalue range
... 1 0..1stringFirst Data Code Value
... 2 0..1stringLast Data Code Value

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "VR",
  "meta": {
    "profile": [
      "http://hl7.org/v2/StructureDefinition/complex-data-type-profile"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "informative",
      "_valueCode": {
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
            "valueCanonical": "http://somewhere.org/fhir/uv/v2plus/ImplementationGuide/hl7.other.uv.v2plus"
          }
        ]
      }
    }
  ],
  "url": "http://hl7.org/v2/StructureDefinition/VR",
  "version": "0.0.0",
  "name": "VR",
  "title": "HL7 v2 VR Data Type",
  "status": "active",
  "date": "2025-07-11T16:45:01+00:00",
  "publisher": "HL7 International",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/Special/committees/v2mgmt"
        }
      ]
    }
  ],
  "description": "*Note:* Replaces the CM data type used in 5.10.5.3.11 QRD-11 as of v 2.5.\n\nThe VR differs from the Numeric Range (NR) data type only in that the values are not restricted to numbers. If the range is not numeric, the set must be orderable in some intuitive way such as alpha or the order must be defined in the field where the data type is used.\n\nExample 1:\n\n|+^+++|\n\nExample 2: Colors of the rainbow\n\n|violet^red|",
  "fhirVersion": "5.0.0",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org/v2/StructureDefinition/VR",
  "baseDefinition": "http://hl7.org/v2/StructureDefinition/complex-data-type",
  "derivation": "specialization",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "0.0.0"
      }
    ],
    "element": [
      {
        "id": "VR",
        "path": "VR",
        "short": "value range",
        "definition": "*Definition:* This data type contains the lower bound value and upper bound values that constitute a range. Either or both components may be populated.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "VR.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "O"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 6
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "VR.1",
        "short": "First Data Code Value",
        "min": 0,
        "max": "1",
        "base": {
          "path": "VR.1",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ST"
          }
        ]
      },
      {
        "id": "VR.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "O"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 6
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "VR.2",
        "short": "Last Data Code Value",
        "min": 0,
        "max": "1",
        "base": {
          "path": "VR.2",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ST"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "VR",
        "path": "VR",
        "short": "value range",
        "definition": "*Definition:* This data type contains the lower bound value and upper bound values that constitute a range. Either or both components may be populated.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "VR.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "O"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 6
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "VR.1",
        "short": "First Data Code Value",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ST"
          }
        ]
      },
      {
        "id": "VR.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "O"
          },
          {
            "extension": [
              {
                "url": "length",
                "valueInteger": 6
              },
              {
                "url": "noTruncate",
                "valueBoolean": true
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/conformance-length"
          }
        ],
        "path": "VR.2",
        "short": "Last Data Code Value",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ST"
          }
        ]
      }
    ]
  }
}