{
  "resourceType": "StructureDefinition",
  "id": "pl-lab-przelicznikJednostek",
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics",
      "valueCode": "can-be-target"
    }
  ],
  "url": "http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-przelicznikJednostek",
  "name": "PrzelicznikJednostek",
  "title": "Przelicznik jednostek",
  "status": "draft",
  "description": "Przelicznik jednostek parametru wyniku badania",
  "fhirVersion": "5.0.0",
  "kind": "logical",
  "abstract": false,
  "type": "http://hl7.org.pl/fhir/ig/pl-lab/StructureDefinition/pl-lab-przelicznikJednostek",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Base",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "pl-lab-przelicznikJednostek",
        "path": "pl-lab-przelicznikJednostek",
        "short": "Przelicznik jednostek",
        "definition": "Przelicznik jednostek parametru wyniku badania",
        "min": 0,
        "max": "*",
        "base": {
          "path": "pl-lab-przelicznikJednostek",
          "min": 0,
          "max": "*"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "pl-lab-przelicznikJednostek.jednostkaDocelowa",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "pl-lab-przelicznikJednostek.jednostkaDocelowa",
        "short": "Jednoska docelowa",
        "definition": "Jednostka docelowa",
        "comment": "Codes may be defined very casually in enumerations or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information.",
        "min": 1,
        "max": "1",
        "base": {
          "path": "pl-lab-przelicznikJednostek.jednostkaDocelowa",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "Coding"
          }
        ],
        "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": "cod-1",
            "severity": "warning",
            "human": "A Coding SHOULD NOT have a display unless a code is also present.  Computation on Coding.display alone is generally unsafe.  Consider using CodeableConcept.text",
            "expression": "code.exists().not() implies display.exists().not()",
            "source": "http://hl7.org/fhir/StructureDefinition/Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
        },
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          },
          {
            "identity": "v2",
            "map": "CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"
          },
          {
            "identity": "rim",
            "map": "CV"
          },
          {
            "identity": "orim",
            "map": "fhir:Coding rdfs:subClassOf dt:CDCoding"
          }
        ]
      },
      {
        "id": "pl-lab-przelicznikJednostek.wartoscPrzelicznika",
        "path": "pl-lab-przelicznikJednostek.wartoscPrzelicznika",
        "short": "Wartość przelicznika",
        "definition": "Wartość przelicznika",
        "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": 1,
        "max": "1",
        "base": {
          "path": "pl-lab-przelicznikJednostek.wartoscPrzelicznika",
          "min": 1,
          "max": "1"
        },
        "type": [
          {
            "code": "decimal"
          }
        ],
        "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"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      },
      {
        "id": "pl-lab-przelicznikJednostek.opis",
        "path": "pl-lab-przelicznikJednostek.opis",
        "short": "Opis",
        "definition": "Opis przelicznika jednostek",
        "comment": "Note that FHIR strings SHALL NOT exceed 1,048,576 (1024*1024) characters in size",
        "min": 0,
        "max": "1",
        "base": {
          "path": "pl-lab-przelicznikJednostek.opis",
          "min": 0,
          "max": "1"
        },
        "type": [
          {
            "code": "string"
          }
        ],
        "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"
          }
        ],
        "mapping": [
          {
            "identity": "rim",
            "map": "n/a"
          }
        ]
      }
    ]
  },
  "differential": {
    "element": [
      {
        "id": "pl-lab-przelicznikJednostek",
        "path": "pl-lab-przelicznikJednostek",
        "short": "Przelicznik jednostek",
        "definition": "Przelicznik jednostek parametru wyniku badania"
      },
      {
        "id": "pl-lab-przelicznikJednostek.jednostkaDocelowa",
        "path": "pl-lab-przelicznikJednostek.jednostkaDocelowa",
        "short": "Jednoska docelowa",
        "definition": "Jednostka docelowa",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Coding"
          }
        ],
        "binding": {
          "strength": "required",
          "valueSet": "http://hl7.org/fhir/ValueSet/ucum-units"
        }
      },
      {
        "id": "pl-lab-przelicznikJednostek.wartoscPrzelicznika",
        "path": "pl-lab-przelicznikJednostek.wartoscPrzelicznika",
        "short": "Wartość przelicznika",
        "definition": "Wartość przelicznika",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "pl-lab-przelicznikJednostek.opis",
        "path": "pl-lab-przelicznikJednostek.opis",
        "short": "Opis",
        "definition": "Opis przelicznika jednostek",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      }
    ]
  }
}