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

FHIR IG Statistics: StructureDefinition/ch-emed-epr-amount-range

Packagech.fhir.ig.ch-emed-epr
TypeStructureDefinition
Idch-emed-epr-amount-range
FHIR VersionR4
Sourcehttp://fhir.ch/ig/ch-emed-epr/http://fhir.ch/ig/ch-emed-epr/2.0.0/StructureDefinition-ch-emed-epr-amount-range.html
URLhttp://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range
Version2.0.0
Statusdraft
Date2025-01-21T10:58:28+00:00
NameCHEMEDEPRAmountRange
TitleAmount Range
Realmch
Authorityhl7
DescriptionA range of amount quantities
CopyrightCC0-1.0
TypeRange
Kindcomplex-type

Resources that use this resource

StructureDefinition
ch-emed-epr-dosage-medicationrequestDosage (MedicationRequest)
ch-emed-epr-dosage-splitDosage Split
ch-emed-epr-dosageDosage (MedicationStatement / MedicationDispense)

Resources that this resource uses

StructureDefinition
ch-core-range-with-emed-unitsCH Core Range with EMED Units
ch-emed-epr-amount-quantityAmount Quantity

Narrative

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

Generated Narrative: StructureDefinition ch-emed-epr-amount-range

NameFlagsCard.TypeDescription & Constraintsdoco
.. Range 0..*CHCoreRangeWithEmedUnitsSet of values bounded by low and high
... id D0..1string✕ This element is not supported
... extension D0..*Extension✕ This element is not supported
... low 1..1CHEMEDEPRAmountQuantityA fixed quantity (no comparator)
... high 1..1CHEMEDEPRAmountQuantityA fixed quantity (no comparator)

doco Documentation for this format

Source

{
  "resourceType": "StructureDefinition",
  "id": "ch-emed-epr-amount-range",
  "text": {
    "status": "extensions",
    "div": "<!-- snip (see above) -->"
  },
  "url": "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-range",
  "version": "2.0.0",
  "name": "CHEMEDEPRAmountRange",
  "title": "Amount Range",
  "status": "draft",
  "date": "2025-01-21T10:58:28+00:00",
  "publisher": "CARA",
  "contact": [
    {
      "name": "CARA",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.cara.ch"
        }
      ]
    }
  ],
  "description": "A range of amount quantities",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "urn:iso:std:iso:3166",
          "code": "CH",
          "display": "Switzerland"
        }
      ]
    }
  ],
  "copyright": "CC0-1.0",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "v2",
      "uri": "http://hl7.org/v2",
      "name": "HL7 v2 Mapping"
    },
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    }
  ],
  "kind": "complex-type",
  "abstract": false,
  "type": "Range",
  "baseDefinition": "http://fhir.ch/ig/ch-core/StructureDefinition/ch-core-range-with-emed-units",
  "derivation": "constraint",
  "snapshot": {
    "element": [
      {
        "id": "Range",
        "path": "Range",
        "short": "Set of values bounded by low and high",
        "definition": "A set of ordered Quantities defined by a low and high limit.",
        "comment": "The stated low and high value are assumed to have arbitrarily high precision when it comes to determining which values are in the range. I.e. 1.99 is not in the range 2 -> 3.",
        "min": 0,
        "max": "*",
        "base": {
          "path": "Range",
          "min": 0,
          "max": "*"
        },
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "rng-2",
            "severity": "error",
            "human": "If present, low SHALL have a lower value than high",
            "expression": "low.empty() or high.empty() or (low <= high)",
            "xpath": "not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))",
            "source": "http://hl7.org/fhir/StructureDefinition/Range"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "NR and also possibly SN (but see also quantity)"
          },
          {
            "identity": "rim",
            "map": "IVL<QTY[not(type=\"TS\")]> [lowClosed=\"true\" and highClosed=\"true\"]or URG<QTY[not(type=\"TS\")]>"
          }
        ]
      },
      {
        "id": "Range.id",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "Range.id",
        "representation": [
          "xmlAttr"
        ],
        "short": "✕ This element is not supported",
        "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
        "min": 0,
        "max": "1",
        "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,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "Range.extension",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "Range.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "description": "Extensions are always sliced by (at least) url",
          "rules": "open"
        },
        "short": "✕ This element is not supported",
        "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile.",
        "min": 0,
        "max": "*",
        "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())",
            "xpath": "@value|f:*|h:div",
            "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()",
            "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
            "source": "http://hl7.org/fhir/StructureDefinition/Extension"
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "id": "Range.low",
        "path": "Range.low",
        "short": "A fixed quantity (no comparator)",
        "definition": "The comparator is not used on a SimpleQuantity",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Range.low",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system.exists()",
            "xpath": "not(exists(f:code)) or exists(f:system)",
            "source": "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key": "sqty-1",
            "severity": "error",
            "human": "The comparator is not used on a SimpleQuantity",
            "expression": "comparator.empty()",
            "xpath": "not(exists(f:comparator))",
            "source": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      },
      {
        "id": "Range.high",
        "path": "Range.high",
        "short": "A fixed quantity (no comparator)",
        "definition": "The comparator is not used on a SimpleQuantity",
        "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "Range.high",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity"
            ]
          }
        ],
        "condition": [
          "ele-1"
        ],
        "constraint": [
          {
            "key": "ele-1",
            "severity": "error",
            "human": "All FHIR elements must have a @value or children",
            "expression": "hasValue() or (children().count() > id.count())",
            "xpath": "@value|f:*|h:div",
            "source": "http://hl7.org/fhir/StructureDefinition/Element"
          },
          {
            "key": "qty-3",
            "severity": "error",
            "human": "If a code for the unit is present, the system SHALL also be present",
            "expression": "code.empty() or system.exists()",
            "xpath": "not(exists(f:code)) or exists(f:system)",
            "source": "http://hl7.org/fhir/StructureDefinition/Quantity"
          },
          {
            "key": "sqty-1",
            "severity": "error",
            "human": "The comparator is not used on a SimpleQuantity",
            "expression": "comparator.empty()",
            "xpath": "not(exists(f:comparator))",
            "source": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
          }
        ],
        "isModifier": false,
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "SN (see also Range) or CQ"
          },
          {
            "identity": "rim",
            "map": "PQ, IVL<PQ>, MO, CO, depending on the values"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "Range",
        "path": "Range"
      },
      {
        "id": "Range.id",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "Range.id",
        "short": "✕ This element is not supported",
        "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
      },
      {
        "id": "Range.extension",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "draft"
          }
        ],
        "path": "Range.extension",
        "short": "✕ This element is not supported",
        "definition": "Implementers should not set or read this element. \nThis element is only kept as optional to allow submission of documents that would contain a value, \nsince those documents are still readable by others.\nThe meaning of this element is undefined in this profile."
      },
      {
        "id": "Range.low",
        "path": "Range.low",
        "min": 1,
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity"
            ]
          }
        ]
      },
      {
        "id": "Range.high",
        "path": "Range.high",
        "min": 1,
        "type": [
          {
            "code": "Quantity",
            "profile": [
              "http://fhir.ch/ig/ch-emed-epr/StructureDefinition/ch-emed-epr-amount-quantity"
            ]
          }
        ]
      }
    ]
  }
}