Skip to content
Alpha: see what works today →
Menu

cascade:referenceRangeHigh reference range high

https://ns.cascadeprotocol.org/cascade#referenceRangeHigh

The high bound of the one reference range the source marks normal, or of its only one, <version>#reference-high; with no high bound the range is everything from its low one.

Type
owl:ObjectProperty
Domain
cascade:LaboratoryTestResult
Range
cascade:Quantity
Shapes
  • cascade:LaboratoryTestResultValueShape: nodeKind sh:IRI; maxCount 1; node cascade:BoundQuantityShape A reference range has at most one high bound, a quantity node of its version with no comparator: its bounds are inside it (FHIR SimpleQuantity, sqty-1).

cascade:LaboratoryTestResultValueShape checks the subject of any cascade:resultValueKind, cascade:resultQuantity, cascade:resultRatioNumerator, cascade:resultRatioDenominator, cascade:resultValueRangeLow, cascade:resultValueRangeHigh, cascade:resultValueCode, cascade:resultValueText, cascade:referenceRangeLow, cascade:referenceRangeHigh, cascade:resultInterpretationCode.

On the whole node: sparql [ a sh:SPARQLConstraint; message "A lab result's value is held only by the properties of its kind: {?property} is not one of {?kind}'s."; severity sh:Violation; select

SELECT $this ?kind ?property WHERE {
  $this ?property ?value ; <https://ns.cascadeprotocol.org/cascade#resultValueKind> ?kind .
  FILTER ((?property = <https://ns.cascadeprotocol.org/cascade#resultQuantity>
           && ?kind != <https://ns.cascadeprotocol.org/cascade#QuantityResultValue>)
          || (?property IN (<https://ns.cascadeprotocol.org/cascade#resultRatioNumerator>,
                            <https://ns.cascadeprotocol.org/cascade#resultRatioDenominator>)
              && ?kind != <https://ns.cascadeprotocol.org/cascade#RatioResultValue>)
          || (?property IN (<https://ns.cascadeprotocol.org/cascade#resultValueRangeLow>,
                            <https://ns.cascadeprotocol.org/cascade#resultValueRangeHigh>)
              && ?kind != <https://ns.cascadeprotocol.org/cascade#RangeResultValue>)
          || (?property = <https://ns.cascadeprotocol.org/cascade#resultValueCode>
              && ?kind != <https://ns.cascadeprotocol.org/cascade#CodedResultValue>))
}
]; sparql [ a sh:SPARQLConstraint; message "A lab result's version that holds a value says which kind it is, by cascade:resultValueKind: it holds {?property} and no kind."; severity sh:Violation; select
SELECT $this ?property WHERE {
  $this ?property ?value .
  FILTER (?property IN (<https://ns.cascadeprotocol.org/cascade#resultQuantity>, <https://ns.cascadeprotocol.org/cascade#resultRatioNumerator>,
                        <https://ns.cascadeprotocol.org/cascade#resultRatioDenominator>, <https://ns.cascadeprotocol.org/cascade#resultValueRangeLow>,
                        <https://ns.cascadeprotocol.org/cascade#resultValueRangeHigh>, <https://ns.cascadeprotocol.org/cascade#resultValueCode>,
                        <https://ns.cascadeprotocol.org/cascade#resultValueText>))
  FILTER NOT EXISTS { $this <https://ns.cascadeprotocol.org/cascade#resultValueKind> ?kind }
  FILTER NOT EXISTS { $this <https://ns.cascadeprotocol.org/cascade#entryMember> ?member }
}
]

Where it comes from and what uses it
See also
https://hl7.org/fhir/R4/observation-definitions.html#Observation.referenceRange.high
Queries