# Quantity (MyHealth@EU) - MyHealth@EU Core v1.0.0

* [**Table of Contents**](toc.md)
* [**Artifacts Summary**](artifacts.md)
* **Quantity (MyHealth@EU)**

## Data Type Profile: Quantity (MyHealth@EU) 

| | |
| :--- | :--- |
| *Official URL*:http://fhir.ehdsi.eu/core/StructureDefinition/Quantity-myhealth | *Version*:1.0.0 |
| Active as of 2026-05-04 | *Computable Name*:QuantityMyHealth |

 
This profile of the Quantity data type constraints the Quantity (MyHealth@EU) profile defining a core value set for UCUM. The Quantity (MyHealth@EU) imposes the usage of the UCUM as the code system for units and allows expressing uncertainty of measurement. 

 
This profile of the Quantity data type imposes the usage of the UCUM as the code system for units and allows expressing uncertainty of measurement 

**Usages:**

* Derived from this DataType Profile: [Simple Quantity (MyHealth@EU)](StructureDefinition-SimpleQuantity-myhealth.md)
* Use this DataType Profile: [Ratio (MyHealth@EU)](StructureDefinition-Ratio-myhealth.md) and [Observation: Medical Test Result (Core)](StructureDefinition-medicalTestResult-myhealtheu-core.md)

You can also check for [usages in the FHIR IG Statistics](https://packages2.fhir.org/xig/myhealth.eu.fhir.core|current/StructureDefinition/Quantity-myhealth)

### Formal Views of Profile Content

 [Description of Profiles, Differentials, Snapshots and how the different presentations work](http://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#structure-definitions). 

 

Other representations of profile: [CSV](StructureDefinition-Quantity-myhealth.csv), [Excel](StructureDefinition-Quantity-myhealth.xlsx), [Schematron](StructureDefinition-Quantity-myhealth.sch) 



## Resource Content

```json
{
  "resourceType" : "StructureDefinition",
  "id" : "Quantity-myhealth",
  "url" : "http://fhir.ehdsi.eu/core/StructureDefinition/Quantity-myhealth",
  "version" : "1.0.0",
  "name" : "QuantityMyHealth",
  "title" : "Quantity (MyHealth@EU)",
  "status" : "active",
  "date" : "2026-05-04T16:10:59+02:00",
  "publisher" : "MyHealth@Eu",
  "contact" : [{
    "name" : "MyHealth@Eu",
    "telecom" : [{
      "system" : "url",
      "value" : "https://health.ec.europa.eu/other-pages/basic-page/myhealtheu-flyer-addressed-patients-and-health-professionals_en"
    }]
  }],
  "description" : "This profile of the Quantity data type constraints the Quantity (MyHealth@EU) profile defining a core value set for UCUM. The Quantity (MyHealth@EU) imposes the usage of the UCUM as the code system for units and allows expressing uncertainty of measurement.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "150",
      "display" : "Europe"
    }]
  }],
  "purpose" : "This profile of the Quantity data type imposes the usage of the UCUM as the code system for units and allows expressing uncertainty of measurement",
  "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" : "Quantity",
  "baseDefinition" : "http://hl7.org/fhir/StructureDefinition/Quantity",
  "derivation" : "constraint",
  "differential" : {
    "element" : [{
      "id" : "Quantity",
      "path" : "Quantity",
      "short" : "A measured amount using UCUM",
      "definition" : "A measured amount (or an amount that can potentially be measured) and uncertainty of the measurement. Note that measured amounts include amounts that are not precisely quantified, including amounts involving arbitrary units and floating currencies.\r\nThis profile imposes that the code system for units be UCUM."
    },
    {
      "id" : "Quantity.extension:uncertainty",
      "path" : "Quantity.extension",
      "sliceName" : "uncertainty",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/iso21090-uncertainty|5.2.0"]
      }]
    },
    {
      "id" : "Quantity.extension:uncertaintyType",
      "path" : "Quantity.extension",
      "sliceName" : "uncertaintyType",
      "min" : 0,
      "max" : "1",
      "type" : [{
        "code" : "Extension",
        "profile" : ["http://hl7.org/fhir/StructureDefinition/iso21090-uncertaintyType|5.2.0"]
      }]
    },
    {
      "id" : "Quantity.system",
      "path" : "Quantity.system",
      "short" : "UCUM or EDQM system for units",
      "min" : 1,
      "constraint" : [{
        "key" : "myhealth-allowed-systems",
        "severity" : "error",
        "human" : "The system for the quantity unit must be either UCUM or EDQM.",
        "expression" : "$this = 'http://unitsofmeasure.org' or $this = 'http://standardterms.edqm.eu'",
        "source" : "http://fhir.ehdsi.eu/core/StructureDefinition/Quantity-myhealth"
      }],
      "mustSupport" : true
    },
    {
      "id" : "Quantity.code",
      "path" : "Quantity.code",
      "min" : 1,
      "mustSupport" : true,
      "binding" : {
        "extension" : [{
          "extension" : [{
            "url" : "key",
            "valueId" : "ehdsi-quantity-unit-binding"
          },
          {
            "url" : "purpose",
            "valueCode" : "extensible"
          },
          {
            "url" : "valueSet",
            "valueCanonical" : "http://terminology.ehdsi.eu/ValueSet/eHDSIQuantityUnit"
          },
          {
            "url" : "documentation",
            "valueMarkdown" : "A unit of presentation used to represent the quantity of product"
          },
          {
            "url" : "shortDoco",
            "valueString" : "A unit of presentation used to represent the quantity of product"
          }],
          "url" : "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
        }],
        "strength" : "extensible",
        "valueSet" : "http://terminology.ehdsi.eu/ValueSet/eHDSIUnit"
      }
    }]
  }
}

```
