PackagesCanonicalsLogsProblems
    Packages
    lt.hl7.fhir.eu@0.0.2
    http://hl7.org/fhir/uv/ips/StructureDefinition/Ratio-uv-ips
{
  "description": "Ratio data type, constrained to use UCUM as the code system for units.",
  "_filename": "StructureDefinition-Ratio-uv-ips.json",
  "package_name": "lt.hl7.fhir.eu",
  "date": "2026-03-15T21:19:00+02:00",
  "derivation": "constraint",
  "publisher": "Lithuanian Medical Library",
  "fhirVersion": "5.0.0",
  "jurisdiction": [ {
    "coding": [ {
      "code": "EU",
      "system": "urn:iso:std:iso:3166"
    } ]
  } ],
  "purpose": "Allow only UCUM as the code system for units.",
  "name": "RatioIPS",
  "mapping": [ {
    "uri": "http://hl7.org/v2",
    "name": "HL7 V2 Mapping",
    "identity": "v2"
  }, {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "Ratio",
  "experimental": null,
  "resourceType": "StructureDefinition",
  "title": "Ratio (IPS)",
  "package_version": "0.0.2",
  "snapshot": {
    "element": [ {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "rat-1",
        "human": "Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present",
        "source": "http://hl7.org/fhir/StructureDefinition/Ratio|5.0.0",
        "severity": "error",
        "expression": "(numerator.exists() and denominator.exists()) or (numerator.empty() and denominator.empty() and extension.exists())"
      } ],
      "path": "Ratio",
      "min": 0,
      "definition": "A relationship of two Quantity values - expressed as a numerator and a denominator.",
      "isModifier": false,
      "short": "A ratio of two Quantity values - a numerator and a denominator",
      "mapping": [ {
        "map": "n/a,RTO",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "v2"
      } ],
      "max": "*",
      "id": "Ratio",
      "comment": "The Ratio datatype should only be used to express a relationship of two numbers if the relationship cannot be suitably expressed using a Quantity and a common unit.  Where the denominator value is known to be fixed to \"1\", Quantity should be used instead of Ratio.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Ratio"
      }
    }, {
      "path": "Ratio.id",
      "min": 0,
      "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
      "isModifier": false,
      "short": "Unique id for inter-element referencing",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "http://hl7.org/fhirpath/System.String",
        "extension": [ {
          "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
          "valueUrl": "id"
        } ]
      } ],
      "representation": [ "xmlAttr" ],
      "max": "1",
      "id": "Ratio.id",
      "condition": [ "ele-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Element.id"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      }, {
        "key": "ext-1",
        "human": "Must have either extensions or value[x], not both",
        "source": "http://hl7.org/fhir/StructureDefinition/Extension|5.0.0",
        "severity": "error",
        "expression": "extension.exists() != value.exists()"
      } ],
      "path": "Ratio.extension",
      "min": 0,
      "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and managable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
      "isModifier": false,
      "short": "Additional content defined by implementations",
      "mapping": [ {
        "map": "n/a",
        "identity": "rim"
      } ],
      "slicing": {
        "rules": "open",
        "description": "Extensions are always sliced by (at least) url",
        "discriminator": [ {
          "path": "url",
          "type": "value"
        } ]
      },
      "type": [ {
        "code": "Extension"
      } ],
      "alias": [ "extensions", "user content" ],
      "max": "*",
      "id": "Ratio.extension",
      "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.",
      "base": {
        "max": "*",
        "min": 0,
        "path": "Element.extension"
      },
      "isSummary": false
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Ratio.numerator",
      "min": 0,
      "definition": "The value of the numerator.",
      "isModifier": false,
      "short": "Numerator value",
      "mapping": [ {
        "map": ".numerator",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity"
      } ],
      "max": "1",
      "id": "Ratio.numerator",
      "condition": [ "rat-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Ratio.numerator"
      },
      "isSummary": true
    }, {
      "constraint": [ {
        "key": "ele-1",
        "human": "All FHIR elements must have a @value or children",
        "source": "http://hl7.org/fhir/StructureDefinition/Element|5.0.0",
        "severity": "error",
        "expression": "hasValue() or (children().count() > id.count())"
      } ],
      "path": "Ratio.denominator",
      "min": 0,
      "definition": "The value of the denominator.",
      "isModifier": false,
      "short": "Denominator value",
      "mapping": [ {
        "map": ".denominator",
        "identity": "rim"
      } ],
      "type": [ {
        "code": "Quantity",
        "profile": [ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity|5.0.0" ]
      } ],
      "max": "1",
      "id": "Ratio.denominator",
      "condition": [ "rat-1" ],
      "base": {
        "max": "1",
        "min": 0,
        "path": "Ratio.denominator"
      },
      "isSummary": true
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "5.0.0"
    } ]
  },
  "status": "draft",
  "language": "en",
  "id": "4445537e-1b22-40d2-9ab7-9018fb122f9e",
  "kind": "complex-type",
  "url": "http://hl7.org/fhir/uv/ips/StructureDefinition/Ratio-uv-ips",
  "version": "1.1.0",
  "differential": {
    "element": [ {
      "id": "Ratio",
      "path": "Ratio"
    } ]
  },
  "contact": [ {
    "name": "Lithuanian Medical Library",
    "telecom": [ {
      "value": "https://medicinosnk.lt",
      "system": "url"
    }, {
      "value": "info@medicinosnk.lt",
      "system": "email"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Ratio|5.0.0"
}