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

FHIR IG Statistics: StructureDefinition/NM

Packagehl7.v2plus
Resource TypeStructureDefinition
IdNM
FHIR VersionR5
Sourcehttp://somewhere.org/fhir/uv/v2plus/https://build.fhir.org/ig/HL7/v2ig/StructureDefinition-NM.html
URLhttp://hl7.org/v2/StructureDefinition/NM
Version0.0.0
Statusactive
Date2024-06-01T12:00:00+11:00
NameNM
TitleHL7 v2 Numeric Primitive Type
Authorityhl7
DescriptionFIXME add from v2
Typedecimal
Kindprimitive-type

Resources that use this resource

StructureDefinition
CCPHL7 v2 CCP Data Type
CDHL7 v2 CD Data Type
CPHL7 v2 CP Data Type
CQHL7 v2 CQ Data Type
CSUHL7 v2 CSU Data Type
DDIHL7 v2 DDI Data Type
DLTHL7 v2 DLT Data Type
DTNHL7 v2 DTN Data Type
MAHL7 v2 MA Data Type
MOHL7 v2 MO Data Type
MOPHL7 v2 MOP Data Type
NAHL7 v2 NA Data Type
NRHL7 v2 NR Data Type
OGHL7 v2 OG Data Type
RCDHL7 v2 RCD Data Type
RPTHL7 v2 RPT Data Type
SNHL7 v2 SN Data Type
UVCHL7 v2 UVC Data Type
WVIHL7 v2 WVI Data Type
XADHL7 v2 XAD Data Type
XTNHL7 v2 XTN Data Type

Resources that this resource uses

No resources found


Narrative

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

Generated Narrative: StructureDefinition NM

NameFlagsCard.TypeDescription & Constraintsdoco
.. decimal C0..*decimalPrimitive Type decimal
Constraints: nm-1
... id 0..0
... extension 0..0

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "NM",
  "meta": {
    "profile": [
      "http://hl7.org/v2/StructureDefinition/primitive-data-type-profile"
    ]
  },
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-category",
      "valueString": "FIXME.DataTypes"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "normative"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
      "valueCode": "4.0.0"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "inm"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "has-range"
    }
  ],
  "url": "http://hl7.org/v2/StructureDefinition/NM",
  "version": "0.0.0",
  "name": "NM",
  "title": "HL7 v2 Numeric Primitive Type",
  "status": "active",
  "date": "2024-06-01T12:00:00+11:00",
  "publisher": "HL7 International",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/Special/committees/v2mgmt"
        }
      ]
    }
  ],
  "description": "FIXME add from v2",
  "fhirVersion": "5.0.0",
  "kind": "primitive-type",
  "abstract": false,
  "type": "decimal",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/decimal",
  "derivation": "constraint",
  "snapshot": {
    "extension": [
      {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
        "valueString": "5.0.0"
      }
    ],
    "element": [
      {
        "id": "decimal",
        "path": "decimal",
        "short": "Primitive Type decimal",
        "definition": "A rational number with implicit precision",
        "comment": "Do not use an IEEE type floating point type, instead use something that works like a true decimal, with inbuilt precision (e.g. Java BigInteger)",
        "min": 0,
        "max": "*",
        "base": {
          "path": "decimal",
          "min": 0,
          "max": "*"
        },
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "nm-1",
            "severity": "error",
            "expression": "decimal.value.matches('/^(?=.{1,16}$)([+-]?\\d+(\\.\\d\\d*)?)$/')"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "decimal.id",
        "path": "decimal.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "xml:id (or equivalent in JSON)",
        "definition": "unique id for the element within a resource (for internal references)",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Element.id",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "string"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.String"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "decimal.extension",
        "path": "decimal.extension",
        "short": "Extension",
        "definition": "An Extension",
        "min": 0,
        "max": "0",
        "base": {
          "path": "Element.extension",
          "min": 0,
          "max": "*"
        },
        "type": [
          {
            "code": "Extension"
          }
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "ext-1",
            "severity": "error",
            "human": "Must have either extensions or value[x], not both",
            "expression": "extension.exists() != value.exists()",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "decimal.value",
        "path": "decimal.value",
        "representation": [
          "xmlAttr"
        ],
        "short": "Primitive value for decimal",
        "definition": "The actual value",
        "min": 0,
        "max": "1",
        "base": {
          "path": "decimal.value",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "extension": [
              {
                "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                "valueUrl": "decimal"
              },
              {
                "url": "http://hl7.org/fhir/StructureDefinition/regex",
                "valueString": "-?(0|[1-9][0-9]{0,17})(\\.[0-9]{1,17})?([eE][+-]?[0-9]{1,9}})?"
              }
            ],
            "code": "http://hl7.org/fhirpath/System.Decimal"
          }
        ],
        "isModifier": false,
        "isSummary": false
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "decimal",
        "path": "decimal",
        "constraint": [
          {
            "key": "nm-1",
            "severity": "error",
            "expression": "decimal.value.matches('/^(?=.{1,16}$)([+-]?\\d+(\\.\\d\\d*)?)$/')"
          }
        ]
      },
      {
        "id": "decimal.id",
        "path": "decimal.id",
        "max": "0"
      },
      {
        "id": "decimal.extension",
        "path": "decimal.extension",
        "max": "0"
      }
    ]
  }
}