Publish-box (todo)
Modeling and Methodology Work Group | Maturity Level: N/A | Standards Status: Informative |
Raw Turtle (+ also see Turtle/RDF Format Specification)
StructureDefinition for RatioRange
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:StructureDefinition ; fhir:id [ fhir:v "RatioRange"] ; fhir:text [ fhir:status [ fhir:v "generated" ] ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ; fhir:value [ fhir:v "trial-use" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics" ] ; fhir:value [ fhir:v "can-bind" ] ] [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ; fhir:value [ fhir:v "fhir" ] ] ) ; fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange"], [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange"] ; fhir:version [ fhir:v "6.0.0-ballot2"], [ fhir:v "6.0.0-ballot2"] ; fhir:name [ fhir:v "RatioRange"], [ fhir:v "RatioRange"] ; fhir:status [ fhir:v "draft"], [ fhir:v "draft"] ; fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ; fhir:date [ fhir:v "2024-08-12T16:52:12+08:00"], [ fhir:v "2024-08-12T16:52:12+08:00"] ; fhir:publisher [ fhir:v "HL7 International / FHIR Infrastructure"], [ fhir:v "HL7 International / FHIR Infrastructure"] ; fhir:contact ( [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://hl7.org/fhir" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://hl7.org/fhir" ] ] ) ] [ fhir:telecom ( [ fhir:system [ fhir:v "url" ] ; fhir:value [ fhir:v "http://www.hl7.org/Special/committees/fiwg" ] ] ) ] ) ; fhir:description [ fhir:v "RatioRange Type: A range of ratios expressed as a low and high numerator and a denominator."], [ fhir:v "RatioRange Type: A range of ratios expressed as a low and high numerator and a denominator."] ; fhir:jurisdiction ( [ fhir:coding ( [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:code [ fhir:v "001" ] ; fhir:display [ fhir:v "World" ] ] ) ] [ fhir:coding ( [ fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm" ] ; fhir:code [ fhir:v "001" ] ; fhir:display [ fhir:v "World" ] ] ) ] ) ; fhir:purpose [ fhir:v "Need to be able to specify ranges of ratios."], [ fhir:v "Need to be able to specify ranges of ratios."] ; fhir:fhirVersion [ fhir:v "6.0.0-ballot2"] ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:uri [ fhir:v "http://hl7.org/v2" ] ; fhir:name [ fhir:v "HL7 V2 Mapping" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:uri [ fhir:v "http://hl7.org/v3" ] ; fhir:name [ fhir:v "RIM Mapping" ] ] ) ; fhir:kind [ fhir:v "complex-type"] ; fhir:abstract [ fhir:v "false"] ; fhir:type [ fhir:v "RatioRange"] ; fhir:baseDefinition [ fhir:v "http://hl7.org/fhir/StructureDefinition/DataType"] ; fhir:derivation [ fhir:v "specialization"] ; fhir:snapshot [ fhir:element ( [ fhir:id [ fhir:v "RatioRange" ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ; fhir:value [ fhir:v "trial-use" ] ] ) ; fhir:path [ fhir:v "RatioRange" ] ; fhir:short [ fhir:v "Range of ratio values" ] ; fhir:definition [ fhir:v "A range of ratios expressed as a low and high numerator and a denominator." ] ; fhir:comment [ fhir:v "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." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "RatioRange" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] [ fhir:key [ fhir:v "ratrng-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "One of lowNumerator or highNumerator and denominator SHALL be present, or all are absent. If all are absent, there SHALL be some extension present" ] ; fhir:expression [ fhir:v "((lowNumerator.exists() or highNumerator.exists()) and denominator.exists()) or (lowNumerator.empty() and highNumerator.empty() and denominator.empty() and extension.exists())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange" ] ] [ fhir:key [ fhir:v "ratrng-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, lowNumerator SHALL have a lower value than highNumerator" ] ; fhir:expression [ fhir:v "lowNumerator.hasValue().not() or highNumerator.hasValue().not() or (lowNumerator.lowBoundary() <= highNumerator.highBoundary())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a,IVL<RTO<QTY[not(type=\"TS\")]>> [lowClosed=\"true\" and highClosed=\"true\"]or URG<<RTO<QTY[not(type=\"TS\")]>>" ] ] [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR and also possibly SN (but see also quantity)" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.id" ] ; fhir:path [ fhir:v "RatioRange.id" ] ; fhir:representation ( [ fhir:v "xmlAttr" ] ) ; fhir:short [ fhir:v "Unique id for inter-element referencing" ] ; fhir:definition [ fhir:v "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "Element.id" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ] ; fhir:value [ fhir:v "id" ] ] ) ; fhir:code [ fhir:v "http://hl7.org/fhirpath/System.String" ] ] ) ; fhir:condition ( [ fhir:v "ele-1" ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.extension" ] ; fhir:path [ fhir:v "RatioRange.extension" ] ; fhir:slicing [ fhir:discriminator ( [ fhir:type [ fhir:v "value" ] ; fhir:path [ fhir:v "url" ] ] ) ; fhir:description [ fhir:v "Extensions are always sliced by (at least) url" ] ; fhir:rules [ fhir:v "open" ] ] ; fhir:short [ fhir:v "Additional content defined by implementations" ] ; fhir:definition [ fhir:v "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." ] ; fhir:comment [ fhir:v "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." ] ; fhir:alias ( [ fhir:v "extensions" ] [ fhir:v "user content" ] ) ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:base [ fhir:path [ fhir:v "Element.extension" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Extension" ] ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "n/a" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.lowNumerator" ] ; fhir:path [ fhir:v "RatioRange.lowNumerator" ] ; fhir:short [ fhir:v "Low Numerator limit" ] ; fhir:definition [ fhir:v "The value of the low limit numerator." ] ; fhir:comment [ fhir:v "If the low element is missing, the low boundary is not known." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "RatioRange.lowNumerator" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] [ fhir:v "ratrng-2" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR.1" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./low" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.highNumerator" ] ; fhir:path [ fhir:v "RatioRange.highNumerator" ] ; fhir:short [ fhir:v "High Numerator limit" ] ; fhir:definition [ fhir:v "The value of the high limit numerator." ] ; fhir:comment [ fhir:v "If the high element is missing, the high boundary is not known." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "RatioRange.highNumerator" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] [ fhir:v "ratrng-2" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR.2" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./high" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.denominator" ] ; fhir:path [ fhir:v "RatioRange.denominator" ] ; fhir:short [ fhir:v "Denominator value" ] ; fhir:definition [ fhir:v "The value of the denominator." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:base [ fhir:path [ fhir:v "RatioRange.denominator" ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] ) ; fhir:constraint ( [ fhir:key [ fhir:v "ele-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "All FHIR elements must have a @value or children" ] ; fhir:expression [ fhir:v "hasValue() or (children().count() > id.count())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/Element" ] ] ) ; fhir:isModifier [ fhir:v "false" ] ; fhir:isSummary [ fhir:v "false" ] ] ) ] ; fhir:differential [ fhir:element ( [ fhir:id [ fhir:v "RatioRange" ] ; fhir:extension ( [ fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ] ; fhir:value [ fhir:v "trial-use" ] ] ) ; fhir:path [ fhir:v "RatioRange" ] ; fhir:short [ fhir:v "Range of ratio values" ] ; fhir:definition [ fhir:v "A range of ratios expressed as a low and high numerator and a denominator." ] ; fhir:comment [ fhir:v "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." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "*" ] ; fhir:constraint ( [ fhir:key [ fhir:v "ratrng-1" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "One of lowNumerator or highNumerator and denominator SHALL be present, or all are absent. If all are absent, there SHALL be some extension present" ] ; fhir:expression [ fhir:v "((lowNumerator.exists() or highNumerator.exists()) and denominator.exists()) or (lowNumerator.empty() and highNumerator.empty() and denominator.empty() and extension.exists())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange" ] ] [ fhir:key [ fhir:v "ratrng-2" ] ; fhir:severity [ fhir:v "error" ] ; fhir:human [ fhir:v "If present, lowNumerator SHALL have a lower value than highNumerator" ] ; fhir:expression [ fhir:v "lowNumerator.hasValue().not() or highNumerator.hasValue().not() or (lowNumerator.lowBoundary() <= highNumerator.highBoundary())" ] ; fhir:source [ fhir:v "http://hl7.org/fhir/StructureDefinition/RatioRange" ] ] ) ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR and also possibly SN (but see also quantity)" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "IVL<RTO<QTY[not(type=\"TS\")]>> [lowClosed=\"true\" and highClosed=\"true\"]or URG<<RTO<QTY[not(type=\"TS\")]>>" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.lowNumerator" ] ; fhir:path [ fhir:v "RatioRange.lowNumerator" ] ; fhir:short [ fhir:v "Low Numerator limit" ] ; fhir:definition [ fhir:v "The value of the low limit numerator." ] ; fhir:comment [ fhir:v "If the low element is missing, the low boundary is not known." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] [ fhir:v "ratrng-2" ] ) ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR.1" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./low" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.highNumerator" ] ; fhir:path [ fhir:v "RatioRange.highNumerator" ] ; fhir:short [ fhir:v "High Numerator limit" ] ; fhir:definition [ fhir:v "The value of the high limit numerator." ] ; fhir:comment [ fhir:v "If the high element is missing, the high boundary is not known." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] [ fhir:v "ratrng-2" ] ) ; fhir:mapping ( [ fhir:identity [ fhir:v "v2" ] ; fhir:map [ fhir:v "NR.2" ] ] [ fhir:identity [ fhir:v "rim" ] ; fhir:map [ fhir:v "./high" ] ] ) ] [ fhir:id [ fhir:v "RatioRange.denominator" ] ; fhir:path [ fhir:v "RatioRange.denominator" ] ; fhir:short [ fhir:v "Denominator value" ] ; fhir:definition [ fhir:v "The value of the denominator." ] ; fhir:min [ fhir:v "0" ] ; fhir:max [ fhir:v "1" ] ; fhir:type ( [ fhir:code [ fhir:v "Quantity" ] ; fhir:profile ( [ fhir:v "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ] ) ] ) ; fhir:condition ( [ fhir:v "ratrng-1" ] ) ] ) ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R6 hl7.fhir.core#6.0.0-ballot2 generated on Mon, Aug 12, 2024 16:57+0800.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R5 |
|
Propose a change