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

FHIR IG Statistics: StructureDefinition/MSG

Packagehl7.v2plus
Resource TypeStructureDefinition
IdMSG
FHIR VersionR5
Sourcehttp://somewhere.org/fhir/uv/v2plus/https://build.fhir.org/ig/HL7/v2ig/StructureDefinition-MSG.html
URLhttp://hl7.org/v2/StructureDefinition/MSG
Version0.0.0
Statusactive
Date2025-07-11T16:45:01+00:00
NameMSG
TitleHL7 v2 MSG Data Type
Authorityhl7
Description*Note*: Replaces the CM data type used in 2.16.9.9 MSH-9 as of v 2.5.
Typehttp://hl7.org/v2/StructureDefinition/MSG
Kindlogical

Resources that use this resource

No resources found


Resources that this resource uses

StructureDefinition
IDHL7 v2 ID Data Type
complex-data-typeHL7 v2 Complex Data Type
ValueSet
v2-0003hl7VS-eventTypeCode
v2-0076hl7VS-messageType
v2-0354hl7VS-messageStructure

Narrative

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

Generated Narrative: StructureDefinition MSG

NameFlagsCard.TypeDescription & Constraintsdoco
.. MSG 0..*V2ComplexDataTypemessage type
... 1 1..1codeMessage Code
Binding: hl7VS-messageType (required)
... 2 1..1codeTrigger Event
Binding: hl7VS-eventTypeCode (required)
... 3 1..1codeMessage Structure
Binding: hl7VS-messageStructure (required)

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "MSG",
  "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/MSG",
  "version": "0.0.0",
  "name": "MSG",
  "title": "HL7 v2 MSG 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 2.16.9.9 MSH-9 as of v 2.5.",
  "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/MSG",
  "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": "MSG",
        "path": "MSG",
        "short": "message type",
        "definition": "Definition: This field contains the message type, trigger event, and the message structure ID for the message.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Base",
          "min": 0,
          "max": "*"
        },
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "MSG.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 3
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.1",
        "short": "Message Code",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MSG.1",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0076"
        }
      },
      {
        "id": "MSG.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 3
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.2",
        "short": "Trigger Event",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MSG.2",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0003"
        }
      },
      {
        "id": "MSG.3",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 7
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.3",
        "short": "Message Structure",
        "min": 1,
        "max": "1",
        "base": {
          "path": "MSG.3",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0354"
        }
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "MSG",
        "path": "MSG",
        "short": "message type",
        "definition": "Definition: This field contains the message type, trigger event, and the message structure ID for the message.",
        "min": 0,
        "max": "*"
      },
      {
        "id": "MSG.1",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 3
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.1",
        "short": "Message Code",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0076"
        }
      },
      {
        "id": "MSG.2",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 3
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.2",
        "short": "Trigger Event",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0003"
        }
      },
      {
        "id": "MSG.3",
        "extension": [
          {
            "url": "http://hl7.org/v2/StructureDefinition/optionality",
            "valueCode": "R"
          },
          {
            "extension": [
              {
                "url": "min",
                "valueInteger": 3
              },
              {
                "url": "max",
                "valueInteger": 7
              }
            ],
            "url": "http://hl7.org/v2/StructureDefinition/length"
          }
        ],
        "path": "MSG.3",
        "short": "Message Structure",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "http://hl7.org/v2/StructureDefinition/ID"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://terminology.hl7.org/ValueSet/v2-0354"
        }
      }
    ]
  }
}