HL7 FHIR® Implementation Guide: Breast Cancer Data, Release 1 - US Realm (Draft for Comment)

This page is part of the Breast Cancer Data Logical Models and FHIR Profiles (v0.1.0: STU 1 Draft) based on FHIR R3. . For a full list of available versions, see the Directory of published versions

RangeProfile

@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

# - resource -------------------------------------------------------------------

 a fhir:StructureDefinition;
  fhir:nodeRole fhir:treeRoot;
  fhir:Resource.id [ fhir:value "shr-core-Range"];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ];
     fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n  <p><b>BC Range Profile</b></p>\n  <p>An interval defined by a quantitative upper and/or lower bound. One of the two bounds must be specified, and the lower bound must be less than the upper bound. When Quantities are specified, the units of measure must be the same.</p>\n  <p><b>BC Mapping Summary</b></p>\n  <p><pre>shr.core.Range maps to Range:\n  LowerBound maps to low\n  UpperBound maps to high\n</pre></p>\n</div>"
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/us/breastcancer/StructureDefinition/shr-core-Range"];
  fhir:StructureDefinition.identifier [
     fhir:index 0;
     fhir:Identifier.system [ fhir:value "http://hl7.org/fhir/us/breastcancer" ];
     fhir:Identifier.value [ fhir:value "shr.core.Range" ]
  ];
  fhir:StructureDefinition.version [ fhir:value "0.1.0"];
  fhir:StructureDefinition.name [ fhir:value "RangeProfile"];
  fhir:StructureDefinition.title [ fhir:value "BC Range Profile"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.date [ fhir:value "2018-04-01T00:00:00+11:00"^^xsd:dateTime];
  fhir:StructureDefinition.publisher [ fhir:value "The HL7 Cancer Interoperability Group sponsored by Clinical Interoperability Council Work Group (CIC)"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://standardhealthrecord.org" ]     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "An interval defined by a quantitative upper and/or lower bound. One of the two bounds must be specified, and the lower bound must be less than the upper bound. When Quantities are specified, the units of measure must be the same."];
  fhir:StructureDefinition.purpose [ fhir:value "Need to be able to specify ranges of values."];
  fhir:StructureDefinition.fhirVersion [ fhir:value "3.0.1"];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.mapping.identity [ fhir:value "v2" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v2" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "HL7 v2 Mapping" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.mapping.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.mapping.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.mapping.name [ fhir:value "RIM Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "complex-type"];
  fhir:StructureDefinition.abstract [ fhir:value "false"^^xsd:boolean];
  fhir:StructureDefinition.type [ fhir:value "Range"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/Range"];
  fhir:StructureDefinition.derivation [ fhir:value "constraint"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.snapshot.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Range:shr-core-Range" ];
       fhir:ElementDefinition.path [ fhir:value "Range" ];
       fhir:ElementDefinition.short [ fhir:value "BC Range Profile" ];
       fhir:ElementDefinition.definition [ fhir:value "An interval defined by a quantitative upper and/or lower bound. One of the two bounds must be specified, and the lower bound must be less than the upper bound. When Quantities are specified, the units of measure must be the same." ];
       fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.condition [
         fhir:value "ele-1";
         fhir:index 0       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.constraint.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "hasValue() | (children().count() > id.count())" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.constraint.source [ fhir:value "Element" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.constraint.key [ fhir:value "rng-2" ];
         fhir:ElementDefinition.constraint.severity [ fhir:value "error" ];
         fhir:ElementDefinition.constraint.human [ fhir:value "If present, low SHALL have a lower value than high" ];
         fhir:ElementDefinition.constraint.expression [ fhir:value "low.empty() or high.empty() or (low <= high)" ];
         fhir:ElementDefinition.constraint.xpath [ fhir:value "not(exists(f:low/f:value/@value)) or not(exists(f:high/f:value/@value)) or (number(f:low/f:value/@value) <= number(f:high/f:value/@value))" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "NR and also possibly SN (but see also quantity)" ]       ], [
         fhir:index 2;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "IVL<QTY[not(type=\"TS\")]> [lowClosed=\"true\" and highClosed=\"true\"]or URG<QTY[not(type=\"TS\")]>" ]       ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.id" ];
       fhir:ElementDefinition.path [ fhir:value "Range.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0       ];
       fhir:ElementDefinition.short [ fhir:value "xml:id (or equivalent in JSON)" ];
       fhir:ElementDefinition.definition [ fhir:value "unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "1" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "string" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.extension" ];
       fhir:ElementDefinition.path [ fhir:value "Range.extension" ];
       fhir:ElementDefinition.slicing [
         fhir:ElementDefinition.slicing.discriminator [
           fhir:index 0;
           fhir:ElementDefinition.slicing.discriminator.type [ fhir:value "value" ];
           fhir:ElementDefinition.slicing.discriminator.path [ fhir:value "url" ]         ];
         fhir:ElementDefinition.slicing.description [ fhir:value "Extensions are always sliced by (at least) url" ];
         fhir:ElementDefinition.slicing.rules [ fhir:value "open" ]       ];
       fhir:ElementDefinition.short [ fhir:value "Additional Content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "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:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0       ], [
         fhir:value "user content";
         fhir:index 1       ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.base.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.base.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
         fhir:ElementDefinition.base.max [ fhir:value "*" ]       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Extension" ]       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "n/a" ]       ]     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.low" ];
       fhir:ElementDefinition.path [ fhir:value "Range.low" ];
       fhir:ElementDefinition.short [ fhir:value "Low limit" ];
       fhir:ElementDefinition.definition [ fhir:value "The low limit. The boundary is inclusive." ];
       fhir:ElementDefinition.comment [ fhir:value "If the low element is missing, the low boundary is not known." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]       ];
       fhir:ElementDefinition.condition [
         fhir:value "rng-2";
         fhir:index 0       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "NR.1" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./low" ]       ]     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.high" ];
       fhir:ElementDefinition.path [ fhir:value "Range.high" ];
       fhir:ElementDefinition.short [ fhir:value "High limit" ];
       fhir:ElementDefinition.definition [ fhir:value "The high limit. The boundary is inclusive." ];
       fhir:ElementDefinition.comment [ fhir:value "If the high element is missing, the high boundary is not known." ];
       fhir:ElementDefinition.min [ fhir:value "0"^^xsd:nonNegativeInteger ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]       ];
       fhir:ElementDefinition.condition [
         fhir:value "rng-2";
         fhir:index 0       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true"^^xsd:boolean ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.mapping.identity [ fhir:value "v2" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "NR.2" ]       ], [
         fhir:index 1;
         fhir:ElementDefinition.mapping.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.mapping.map [ fhir:value "./high" ]       ]     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.differential.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "Range:shr-core-Range" ];
       fhir:ElementDefinition.path [ fhir:value "Range" ];
       fhir:ElementDefinition.short [ fhir:value "BC Range Profile" ];
       fhir:ElementDefinition.definition [ fhir:value "An interval defined by a quantitative upper and/or lower bound. One of the two bounds must be specified, and the lower bound must be less than the upper bound. When Quantities are specified, the units of measure must be the same." ]     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.low" ];
       fhir:ElementDefinition.path [ fhir:value "Range.low" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]       ]     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "Range:shr-core-Range.high" ];
       fhir:ElementDefinition.path [ fhir:value "Range.high" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.type.code [ fhir:value "Quantity" ];
         fhir:ElementDefinition.type.profile [ fhir:value "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" ]       ]     ]
  ].

# - ontology header ------------------------------------------------------------

 a owl:Ontology;
  owl:imports fhir:fhir.ttl.