diff --git a/README.md b/README.md
index 0e6893a..2978b49 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,7 @@ The profiles will be based on R4, [FHIR 4.0.1](http://hl7.org/fhir/R4/).
## Published Snapshot
-The working version of the IG is published at https://fhir.fi/finnish-base-profiles/.
+The working version of the IG is published at https://fhir.fi/fi-base-profiles/.
## Companion Specifications
@@ -72,4 +72,4 @@ docker-compose run runner bash -c "cd /workdir && ./_updatePublisher.sh --yes"
docker-compose run runner bash -c "cd /workdir && ./_genonce.sh"
```
-Html output will be generated to `output/StructureDefinition-FinnishCorePatient.html`.
+Html output will be generated to `output/StructureDefinition-FiBasePatient.html`.
diff --git a/input/examples/Bloodglucose-max.json b/input/examples/Bloodglucose-max.json
new file mode 100644
index 0000000..32e75e2
--- /dev/null
+++ b/input/examples/Bloodglucose-max.json
@@ -0,0 +1,158 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodglucose-max",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose",
+ "http://example.org/StructureDefinition/other-bloodglucose-structuredefinition"
+ ],
+ "security": [
+ {
+ "code": "U",
+ "system": "http://terminology.hl7.org/CodeSystem/v3-Confidentiality",
+ "display": "unrestricted"
+ }
+ ]
+ },
+ "language": "en",
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:206fc986-517a-4054-bc0a-03eb906c9571"
+ },
+ {
+ "system": "urn:ietf:rfc:39862",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38c2"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ },
+ {
+ "system": "http://example.org/CodeSystem/categories",
+ "code": "observation"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "15074-8",
+ "display": "Glucose (Bld) [Moles/Vol]"
+ },
+ {
+ "system": "http://loinc.org",
+ "code": "14743-9",
+ "display": "Glucose Glucometer (BldC) [Moles/Vol]"
+ },
+ {
+ "system": "http://loinc.org",
+ "code": "14745-4",
+ "display": "Glucose (Body fld) [Moles/Vol]"
+ },
+ {
+ "system": "http://example.org",
+ "code": "12345",
+ "display": "Glucose [Moles/Vol]"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c"
+ },
+ "effectiveDateTime": "2020-10-05",
+ "issued": "2019-12-05T09:21:37.130+02:00",
+ "performer": [
+ {
+ "reference": "Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c"
+ }
+ ],
+ "valueQuantity": {
+ "value": 10.0,
+ "unit": "mmol/l",
+ "comparator": "<",
+ "system": "http://unitsofmeasure.org",
+ "code": "mmol/L",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/iso21090-PQ-translation",
+ "valueQuantity": {
+ "value": 2,
+ "unit": "mg/dl",
+ "system": "http://unitsofmeasure.org",
+ "code": "mg/dL"
+ }
+ }
+ ]
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "<",
+ "display": "Off scale low"
+ }
+ ]
+ }
+ ],
+ "note": [
+ {
+ "text": "käyttäjän lisäämä kommentti"
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 16,
+ "unit": "mmol/l",
+ "system": "http://unitsofmeasure.org",
+ "code": "mg/dL"
+ },
+ "high": {
+ "value": 10,
+ "unit": "mmol/l",
+ "system": "http://unitsofmeasure.org",
+ "code": "mg/dL"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ],
+ "text": {
+ "status": "generated",
+ "div": "
Subject | Patient/f1fa0b52-eccf-44af-96c7-84a3251bb22c |
Code | ins-short-fast |
Display | Fast-acting insulin |
Text | Lyhytvaikutteinen insuliini |
"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHREXTBoolean.json b/input/examples/FIPHREXTBoolean.json
new file mode 100644
index 0000000..06c6be0
--- /dev/null
+++ b/input/examples/FIPHREXTBoolean.json
@@ -0,0 +1,268 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-ext-boolean",
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-boolean",
+ "version": "0.1",
+ "name": "FIPHREXTBoolean",
+ "title": "Finnish PHR boolean extension",
+ "status": "draft",
+ "experimental": true,
+ "date": "2019-07-24",
+ "publisher": "Kela",
+ "description": "Finnish PHR extension structure to be used in boolean type extension element in profiles.",
+ "fhirVersion": "4.0.0",
+ "kind": "complex-type",
+ "abstract": false,
+ "context": [
+ {
+ "type": "element",
+ "expression": "Resource"
+ }
+ ],
+ "type": "Extension",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Extension",
+ "path": "Extension",
+ "short": "Finnish PHR boolean extension",
+ "definition": "Finnish PHR extension structure to be used in boolean type extension element in profiles.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Extension"
+ },
+ "constraint": [
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.id",
+ "path": "Extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "_code": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
+ "valueString": "string"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
+ "valueString": "xsd:string"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
+ "valueString": "xsd:string"
+ }
+ ]
+ }
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension",
+ "path": "Extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "identifies the meaning of the extension",
+ "definition": "Source of the definition for the extension code - a logical name or a URL.",
+ "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "_code": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type",
+ "valueString": "string"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type",
+ "valueString": "xsd:string"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type",
+ "valueString": "xsd:string"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/regex",
+ "valueString": "((http|https)://([A-Za-z0-9\\\\\\.\\:\\%\\$]*\\/)*)?(Account|ActivityDefinition|AdverseEvent|AllergyIntolerance|Appointment|AppointmentResponse|AuditEvent|Basic|Binary|BiologicallyDerivedProduct|BodyStructure|Bundle|CapabilityStatement|CarePlan|CareTeam|CatalogEntry|ChargeItem|ChargeItemDefinition|Claim|ClaimResponse|ClinicalImpression|CodeSystem|Communication|CommunicationRequest|CompartmentDefinition|Composition|ConceptMap|Condition|Consent|Contract|Coverage|CoverageEligibilityRequest|CoverageEligibilityResponse|DetectedIssue|Device|DeviceDefinition|DeviceMetric|DeviceRequest|DeviceUseStatement|DiagnosticReport|DocumentManifest|DocumentReference|EffectEvidenceSynthesis|Encounter|Endpoint|EnrollmentRequest|EnrollmentResponse|EpisodeOfCare|EventDefinition|Evidence|EvidenceVariable|ExampleScenario|ExplanationOfBenefit|FamilyMemberHistory|Flag|Goal|GraphDefinition|Group|GuidanceResponse|HealthcareService|ImagingStudy|Immunization|ImmunizationEvaluation|ImmunizationRecommendation|ImplementationGuide|InsurancePlan|Invoice|Library|Linkage|List|Location|Measure|MeasureReport|Media|Medication|MedicationAdministration|MedicationDispense|MedicationKnowledge|MedicationRequest|MedicationStatement|MedicinalProduct|MedicinalProductAuthorization|MedicinalProductContraindication|MedicinalProductIndication|MedicinalProductIngredient|MedicinalProductInteraction|MedicinalProductManufactured|MedicinalProductPackaged|MedicinalProductPharmaceutical|MedicinalProductUndesirableEffect|MessageDefinition|MessageHeader|MolecularSequence|NamingSystem|NutritionOrder|Observation|ObservationDefinition|OperationDefinition|OperationOutcome|Organization|OrganizationAffiliation|Patient|PaymentNotice|PaymentReconciliation|Person|PlanDefinition|Practitioner|PractitionerRole|Procedure|Provenance|Questionnaire|QuestionnaireResponse|RelatedPerson|RequestGroup|ResearchDefinition|ResearchElementDefinition|ResearchStudy|ResearchSubject|RiskAssessment|RiskEvidenceSynthesis|Schedule|SearchParameter|ServiceRequest|Slot|Specimen|SpecimenDefinition|StructureDefinition|StructureMap|Subscription|Substance|SubstanceNucleicAcid|SubstancePolymer|SubstanceProtein|SubstanceReferenceInformation|SubstanceSourceMaterial|SubstanceSpecification|SupplyDelivery|SupplyRequest|Task|TerminologyCapabilities|TestReport|TestScript|ValueSet|VerificationResult|VisionPrescription)\\/[A-Za-z0-9\\-\\.]{1,64}(\\/_history\\/[A-Za-z0-9\\-\\.]{1,64})?"
+ }
+ ]
+ }
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x]:valueBoolean",
+ "path": "Extension.value[x]",
+ "sliceName": "valueBoolean",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Extension",
+ "path": "Extension",
+ "min": 0,
+ "max": "*"
+ },
+ {
+ "id": "Extension.value[x]:valueBoolean",
+ "path": "Extension.value[x]",
+ "sliceName": "valueBoolean",
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHREXTCreatingApplication.json b/input/examples/FIPHREXTCreatingApplication.json
new file mode 100644
index 0000000..ce4bb46
--- /dev/null
+++ b/input/examples/FIPHREXTCreatingApplication.json
@@ -0,0 +1,1444 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-ext-creatingapplication",
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication",
+ "version": "0.2",
+ "name": "FIPHREXTCreatingApplication",
+ "title": "Finnish PHR Application Information extension",
+ "status": "active",
+ "experimental": false,
+ "publisher": "Kela",
+ "description": "Information about the application that created the resource instance",
+ "purpose": "Finnish PHR extension structure for information about application that has created the reource. Extension shall be included in all resources that are stored in PHR, except contained resources.",
+ "fhirVersion": "4.0.1",
+ "kind": "complex-type",
+ "abstract": false,
+ "context": [
+ {
+ "type": "element",
+ "expression": "Observation"
+ },
+ {
+ "type": "element",
+ "expression": "MedicationAdministration"
+ },
+ {
+ "type": "element",
+ "expression": "MedicationStatement"
+ },
+ {
+ "type": "element",
+ "expression": "CarePlan"
+ },
+ {
+ "type": "element",
+ "expression": "Questionnaire"
+ },
+ {
+ "type": "element",
+ "expression": "QuestionnaireResponse"
+ },
+ {
+ "type": "element",
+ "expression": "StructureDefinition"
+ }
+ ],
+ "type": "Extension",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Extension",
+ "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": "Extension",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Extension",
+ "min": 0,
+ "max": "*"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.id",
+ "path": "Extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension",
+ "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": "Extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name",
+ "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": "Extension.extension",
+ "sliceName": "name",
+ "short": "Application name",
+ "definition": "Application name registered in PHR cataloque.",
+ "comment": ".",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name.id",
+ "path": "Extension.extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name.extension",
+ "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": "Extension.extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name.url",
+ "path": "Extension.extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "identifies the meaning of the extension",
+ "definition": "Source of the definition for the extension code - a logical name or a URL.",
+ "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "name",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name.value[x]",
+ "path": "Extension.extension.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "base64Binary"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "canonical"
+ },
+ {
+ "code": "code"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "id"
+ },
+ {
+ "code": "instant"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "markdown"
+ },
+ {
+ "code": "oid"
+ },
+ {
+ "code": "positiveInt"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "unsignedInt"
+ },
+ {
+ "code": "uri"
+ },
+ {
+ "code": "url"
+ },
+ {
+ "code": "uuid"
+ },
+ {
+ "code": "Address"
+ },
+ {
+ "code": "Age"
+ },
+ {
+ "code": "Annotation"
+ },
+ {
+ "code": "Attachment"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "ContactPoint"
+ },
+ {
+ "code": "Count"
+ },
+ {
+ "code": "Distance"
+ },
+ {
+ "code": "Duration"
+ },
+ {
+ "code": "HumanName"
+ },
+ {
+ "code": "Identifier"
+ },
+ {
+ "code": "Money"
+ },
+ {
+ "code": "Period"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "Reference"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "Signature"
+ },
+ {
+ "code": "Timing"
+ },
+ {
+ "code": "ContactDetail"
+ },
+ {
+ "code": "Contributor"
+ },
+ {
+ "code": "DataRequirement"
+ },
+ {
+ "code": "Expression"
+ },
+ {
+ "code": "ParameterDefinition"
+ },
+ {
+ "code": "RelatedArtifact"
+ },
+ {
+ "code": "TriggerDefinition"
+ },
+ {
+ "code": "UsageContext"
+ },
+ {
+ "code": "Dosage"
+ },
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:name.value[x]:valueString",
+ "path": "Extension.extension.value[x]",
+ "sliceName": "valueString",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId",
+ "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": "Extension.extension",
+ "sliceName": "applicationId",
+ "short": "Application identifier",
+ "definition": "Application id. A unique identifier, assigned to the client by Kela in registeration process",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId.id",
+ "path": "Extension.extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId.extension",
+ "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": "Extension.extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId.url",
+ "path": "Extension.extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "identifies the meaning of the extension",
+ "definition": "Source of the definition for the extension code - a logical name or a URL.",
+ "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "applicationId",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId.value[x]",
+ "path": "Extension.extension.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "base64Binary"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "canonical"
+ },
+ {
+ "code": "code"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "id"
+ },
+ {
+ "code": "instant"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "markdown"
+ },
+ {
+ "code": "oid"
+ },
+ {
+ "code": "positiveInt"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "unsignedInt"
+ },
+ {
+ "code": "uri"
+ },
+ {
+ "code": "url"
+ },
+ {
+ "code": "uuid"
+ },
+ {
+ "code": "Address"
+ },
+ {
+ "code": "Age"
+ },
+ {
+ "code": "Annotation"
+ },
+ {
+ "code": "Attachment"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "ContactPoint"
+ },
+ {
+ "code": "Count"
+ },
+ {
+ "code": "Distance"
+ },
+ {
+ "code": "Duration"
+ },
+ {
+ "code": "HumanName"
+ },
+ {
+ "code": "Identifier"
+ },
+ {
+ "code": "Money"
+ },
+ {
+ "code": "Period"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "Reference"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "Signature"
+ },
+ {
+ "code": "Timing"
+ },
+ {
+ "code": "ContactDetail"
+ },
+ {
+ "code": "Contributor"
+ },
+ {
+ "code": "DataRequirement"
+ },
+ {
+ "code": "Expression"
+ },
+ {
+ "code": "ParameterDefinition"
+ },
+ {
+ "code": "RelatedArtifact"
+ },
+ {
+ "code": "TriggerDefinition"
+ },
+ {
+ "code": "UsageContext"
+ },
+ {
+ "code": "Dosage"
+ },
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId.value[x]:valueString",
+ "path": "Extension.extension.value[x]",
+ "sliceName": "valueString",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "identifies the meaning of the extension",
+ "definition": "Source of the definition for the extension code - a logical name or a URL.",
+ "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "base64Binary"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "canonical"
+ },
+ {
+ "code": "code"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "id"
+ },
+ {
+ "code": "instant"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "markdown"
+ },
+ {
+ "code": "oid"
+ },
+ {
+ "code": "positiveInt"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "unsignedInt"
+ },
+ {
+ "code": "uri"
+ },
+ {
+ "code": "url"
+ },
+ {
+ "code": "uuid"
+ },
+ {
+ "code": "Address"
+ },
+ {
+ "code": "Age"
+ },
+ {
+ "code": "Annotation"
+ },
+ {
+ "code": "Attachment"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "ContactPoint"
+ },
+ {
+ "code": "Count"
+ },
+ {
+ "code": "Distance"
+ },
+ {
+ "code": "Duration"
+ },
+ {
+ "code": "HumanName"
+ },
+ {
+ "code": "Identifier"
+ },
+ {
+ "code": "Money"
+ },
+ {
+ "code": "Period"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "Reference"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "Signature"
+ },
+ {
+ "code": "Timing"
+ },
+ {
+ "code": "ContactDetail"
+ },
+ {
+ "code": "Contributor"
+ },
+ {
+ "code": "DataRequirement"
+ },
+ {
+ "code": "Expression"
+ },
+ {
+ "code": "ParameterDefinition"
+ },
+ {
+ "code": "RelatedArtifact"
+ },
+ {
+ "code": "TriggerDefinition"
+ },
+ {
+ "code": "UsageContext"
+ },
+ {
+ "code": "Dosage"
+ },
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Extension",
+ "path": "Extension",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog."
+ },
+ {
+ "id": "Extension.extension",
+ "path": "Extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Extension.extension:name",
+ "path": "Extension.extension",
+ "sliceName": "name",
+ "short": "Application name",
+ "definition": "Application name registered in PHR cataloque.",
+ "comment": ".",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Extension.extension:name.url",
+ "path": "Extension.extension.url",
+ "fixedUri": "name"
+ },
+ {
+ "id": "Extension.extension:name.value[x]",
+ "path": "Extension.extension.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Extension.extension:name.value[x]:valueString",
+ "path": "Extension.extension.value[x]",
+ "sliceName": "valueString",
+ "min": 1,
+ "type": [
+ {
+ "code": "string"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension:applicationId",
+ "path": "Extension.extension",
+ "sliceName": "applicationId",
+ "short": "Application identifier",
+ "definition": "Application id. A unique identifier, assigned to the client by Kela in registeration process",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Extension.extension:applicationId.url",
+ "path": "Extension.extension.url",
+ "fixedUri": "applicationId"
+ },
+ {
+ "id": "Extension.extension:applicationId.value[x]",
+ "path": "Extension.extension.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Extension.extension:applicationId.value[x]:valueString",
+ "path": "Extension.extension.value[x]",
+ "sliceName": "valueString",
+ "min": 1,
+ "type": [
+ {
+ "code": "string"
+ }
+ ]
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHREXTPqTranslation.json b/input/examples/FIPHREXTPqTranslation.json
new file mode 100644
index 0000000..c31157c
--- /dev/null
+++ b/input/examples/FIPHREXTPqTranslation.json
@@ -0,0 +1,679 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-ext-pq-translation",
+ "meta": {
+ "lastUpdated": "2021-11-23T06:37:23.250+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation",
+ "version": "0.01",
+ "name": "FIPHREXTPqTranslation",
+ "title": "Finnish PHR PQTranslation Extension",
+ "status": "draft",
+ "experimental": true,
+ "date": "2020-12-30",
+ "publisher": "Kela",
+ "description": "Finnish PHR extension to express an alternative representation of the same physical quantity expressed in a different unit from a different unit code system and possibly with a different value.",
+ "fhirVersion": "4.0.1",
+ "kind": "complex-type",
+ "abstract": false,
+ "context": [
+ {
+ "type": "element",
+ "expression": "Quantity"
+ }
+ ],
+ "type": "Extension",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Extension",
+ "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": "Extension",
+ "short": "Finnish PHR physical quantity translation extension",
+ "definition": "Finnish PHR physical quantity translation extension to express an alternative representation of the same physical quantity expressed in a different unit from a different unit code system and possibly with a different value.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Extension",
+ "min": 0,
+ "max": "*"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.id",
+ "path": "Extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension",
+ "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": "Extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].id",
+ "path": "Extension.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].extension",
+ "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": "Extension.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].value",
+ "path": "Extension.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].comparator",
+ "path": "Extension.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Extension.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].system",
+ "path": "Extension.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].code",
+ "path": "Extension.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Extension",
+ "path": "Extension",
+ "short": "Finnish PHR physical quantity translation extension",
+ "definition": "Finnish PHR physical quantity translation extension to express an alternative representation of the same physical quantity expressed in a different unit from a different unit code system and possibly with a different value."
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation"
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x].value",
+ "path": "Extension.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Extension.value[x].unit",
+ "path": "Extension.value[x].unit",
+ "min": 1
+ },
+ {
+ "id": "Extension.value[x].system",
+ "path": "Extension.value[x].system",
+ "min": 1
+ },
+ {
+ "id": "Extension.value[x].code",
+ "path": "Extension.value[x].code",
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHREXTUnsignedInt.json b/input/examples/FIPHREXTUnsignedInt.json
new file mode 100644
index 0000000..46f0870
--- /dev/null
+++ b/input/examples/FIPHREXTUnsignedInt.json
@@ -0,0 +1,289 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-unsignedint",
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint",
+ "version": "0.2",
+ "name": "FIPHREXTUnsignedInt",
+ "title": "Finnish PHR UnsignedInt Extension",
+ "status": "draft",
+ "experimental": true,
+ "date": "2019-09-11",
+ "description": "Finnish PHR extension structure to be used in unsignedInt type extension element in profiles.",
+ "fhirVersion": "4.0.1",
+ "kind": "complex-type",
+ "abstract": false,
+ "context": [
+ {
+ "type": "element",
+ "expression": "Observation"
+ }
+ ],
+ "type": "Extension",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Extension",
+ "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": "Extension",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Extension",
+ "min": 0,
+ "max": "*"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.id",
+ "path": "Extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Extension.extension",
+ "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": "Extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "identifies the meaning of the extension",
+ "definition": "Source of the definition for the extension code - a logical name or a URL.",
+ "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "unsignedInt"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Extension",
+ "path": "Extension",
+ "short": "Finnish PHR UnsignedInt Extension",
+ "definition": "Finnish PHR extension structure to be used in non-negative integer type extension element in profiles."
+ },
+ {
+ "id": "Extension.url",
+ "path": "Extension.url",
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint"
+ },
+ {
+ "id": "Extension.value[x]",
+ "path": "Extension.value[x]",
+ "type": [
+ {
+ "code": "unsignedInt"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRMetByStandardRMR.json b/input/examples/FIPHRMetByStandardRMR.json
new file mode 100644
index 0000000..151df96
--- /dev/null
+++ b/input/examples/FIPHRMetByStandardRMR.json
@@ -0,0 +1,35060 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "FIPHRMetByStandardRMR",
+ "meta": {
+ "versionId": "7",
+ "lastUpdated": "2021-02-22T09:29:22.869+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-metbystandardrmr",
+ "version": "0.1.0",
+ "name": "FIPHRMetByStandardRMR",
+ "title": "Finnish PHR MET by Standard RMR",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:29:17.48596+00:00",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Measurements and simple assertions",
+ "definition": "Measurements and simple assertions made about a patient, device or other subject.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-metbystandardrmr",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "fitness",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82260-1",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "FinnishPHR: Component observations SHALL contain the standard resting metabolic rate and one of the following three options: the measured metabolic equivalent of task, the estimated metabolic equivalent of task or the reported metabolic equivalent of task. In the case of containing the estimated metabolic equivalent of task or the reported metabolic equivalent of task, component observations SHOULD also contain the source for the estimated metabolic equivalent of task or the source for the reported metabolic equivalent of task. Component observations MAY also contain the adjusted metabolic equivalent of task. In the case of containing the adjusted metabolic equivalent of task, component observations SHOULD also contain the source for the adjusted metabolic equivalent of task.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 2,
+ "max": "5",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr",
+ "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": "Observation.component",
+ "sliceName": "standard-rmr",
+ "short": "FinnishPHR: Standard RMR",
+ "definition": "FinnishPHR: Standard resting metabolic rate (RMR), by convention 3.5 ml of oxygen per kg per min.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-standard-rmr",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82284-1",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "ml/kg/min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "mL/kg/min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met",
+ "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": "Observation.component",
+ "sliceName": "measured-met",
+ "short": "FinnishPHR: Measured MET",
+ "definition": "FinnishPHR: Measured metabolic equivalent of task (MET) calculated based on measured activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-measured-met",
+ "short": "FinnishPHR: Measured MET",
+ "definition": "FinnishPHR: Measured metabolic equivalent of task (MET) calculated based on measured activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82261-9",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "MET",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "[MET]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met",
+ "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": "Observation.component",
+ "sliceName": "estimated-met",
+ "short": "FinnishPHR: Estimated MET",
+ "definition": "FinnishPHR: Estimated metabolic equivalent of task (MET) calculated based on estimated activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-estimated-met SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-estimated-met",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82262-7",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "MET",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "[MET]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source",
+ "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": "Observation.component",
+ "sliceName": "estimated-source",
+ "short": "FinnishPHR: Source for estimated MET",
+ "definition": "FinnishPHR: Source used to estimate the activity metabolic rate when calculating the estimated metabolic equivalent of task (MET).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-estimated-source SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-estimated-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82280-9",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforestimatedmet"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding",
+ "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": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-estimated-source SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source",
+ "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": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-estimated-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.id",
+ "path": "Observation.component.value[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.extension",
+ "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": "Observation.component.value[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.version",
+ "path": "Observation.component.value[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.userSelected",
+ "path": "Observation.component.value[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met",
+ "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": "Observation.component",
+ "sliceName": "reported-met",
+ "short": "FinnishPHR: Reported MET",
+ "definition": "Finnish PHR: Reported metabolic equivalent of task (MET) calculated based on reported activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-reported-met SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-reported-met",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82263-5",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "MET",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "[MET]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source",
+ "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": "Observation.component",
+ "sliceName": "reported-source",
+ "short": "FinnishPHR: Source for reported MET",
+ "definition": "FinnishPHR: Source used for the reported activity metabolic rate when calculating the reported metabolic equivalent of task (MET).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-reported-source SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-reported-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82281-7",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying sources for reported MET-values.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforreportedmet"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding",
+ "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": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrValue-estimated-source SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source",
+ "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": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-reported-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.id",
+ "path": "Observation.component.value[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.extension",
+ "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": "Observation.component.value[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.version",
+ "path": "Observation.component.value[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.userSelected",
+ "path": "Observation.component.value[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met",
+ "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": "Observation.component",
+ "sliceName": "adjusted-met",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-adjusted-met SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-adjusted-met",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82271-8",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "MET",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "[MET]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source",
+ "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": "Observation.component",
+ "sliceName": "adjusted-source",
+ "short": "FinnishPHR: Source for adjusted MET",
+ "definition": "FinnishPHR: Source used to adjust the activity metabolic rate when calculating the adjusted metabolic equivalent of task (MET).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode-adjusted-source SHALL be used. Other codes MAY be used.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-adjusted-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82283-3",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying sources for adjusted MET-values.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforadjustedmet"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding",
+ "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": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforadjustedmet"
+ },
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source",
+ "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": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-adjusted-source",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.id",
+ "path": "Observation.component.value[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.extension",
+ "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": "Observation.component.value[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.version",
+ "path": "Observation.component.value[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.userSelected",
+ "path": "Observation.component.value[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-metbystandardrmr"
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "82260-1"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "max": "0"
+ },
+ {
+ "id": "Observation.interpretation",
+ "path": "Observation.interpretation",
+ "max": "0"
+ },
+ {
+ "id": "Observation.referenceRange",
+ "path": "Observation.referenceRange",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "comment": "FinnishPHR: Component observations SHALL contain the standard resting metabolic rate and one of the following three options: the measured metabolic equivalent of task, the estimated metabolic equivalent of task or the reported metabolic equivalent of task. In the case of containing the estimated metabolic equivalent of task or the reported metabolic equivalent of task, component observations SHOULD also contain the source for the estimated metabolic equivalent of task or the source for the reported metabolic equivalent of task. Component observations MAY also contain the adjusted metabolic equivalent of task. In the case of containing the adjusted metabolic equivalent of task, component observations SHOULD also contain the source for the adjusted metabolic equivalent of task.",
+ "min": 2,
+ "max": "5"
+ },
+ {
+ "id": "Observation.component:standard-rmr",
+ "path": "Observation.component",
+ "sliceName": "standard-rmr",
+ "short": "FinnishPHR: Standard RMR",
+ "definition": "FinnishPHR: Standard resting metabolic rate (RMR), by convention 3.5 ml of oxygen per kg per min.",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:standard-rmr.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-standard-rmr",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:standard-rmr.code.coding:fiphrCode-standard-rmr.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82284-1"
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "ml/kg/min"
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:standard-rmr.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "mL/kg/min"
+ },
+ {
+ "id": "Observation.component:standard-rmr.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:standard-rmr.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:measured-met",
+ "path": "Observation.component",
+ "sliceName": "measured-met",
+ "short": "FinnishPHR: Measured MET",
+ "definition": "FinnishPHR: Measured metabolic equivalent of task (MET) calculated based on measured activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:measured-met.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-measured-met",
+ "short": "FinnishPHR: Measured MET",
+ "definition": "FinnishPHR: Measured metabolic equivalent of task (MET) calculated based on measured activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:measured-met.code.coding:fiphrCode-measured-met.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82261-9"
+ },
+ {
+ "id": "Observation.component:measured-met.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "MET"
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:measured-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "[MET]"
+ },
+ {
+ "id": "Observation.component:measured-met.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:measured-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-met",
+ "path": "Observation.component",
+ "sliceName": "estimated-met",
+ "short": "FinnishPHR: Estimated MET",
+ "definition": "FinnishPHR: Estimated metabolic equivalent of task (MET) calculated based on estimated activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-met.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-estimated-met SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-estimated-met",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:estimated-met.code.coding:fiphrCode-estimated-met.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82262-7"
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "MET"
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:estimated-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "[MET]"
+ },
+ {
+ "id": "Observation.component:estimated-met.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:estimated-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-source",
+ "path": "Observation.component",
+ "sliceName": "estimated-source",
+ "short": "FinnishPHR: Source for estimated MET",
+ "definition": "FinnishPHR: Source used to estimate the activity metabolic rate when calculating the estimated metabolic equivalent of task (MET).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-source.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-estimated-source SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-estimated-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:estimated-source.code.coding:fiphrCode-estimated-source.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82280-9"
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforestimatedmet"
+ }
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding",
+ "path": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-estimated-source SHALL be used. Other codes MAY be used.",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source",
+ "path": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-estimated-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:estimated-source.value[x].coding:fiphrValue-estimated-source.display",
+ "path": "Observation.component.value[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:estimated-source.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:estimated-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-met",
+ "path": "Observation.component",
+ "sliceName": "reported-met",
+ "short": "FinnishPHR: Reported MET",
+ "definition": "Finnish PHR: Reported metabolic equivalent of task (MET) calculated based on reported activity metabolic rate and the standard resting metabolic rate (RMR).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-met.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-reported-met SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-reported-met",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:reported-met.code.coding:fiphrCode-reported-met.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82263-5"
+ },
+ {
+ "id": "Observation.component:reported-met.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "MET"
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:reported-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "[MET]"
+ },
+ {
+ "id": "Observation.component:reported-met.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:reported-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-source",
+ "path": "Observation.component",
+ "sliceName": "reported-source",
+ "short": "FinnishPHR: Source for reported MET",
+ "definition": "FinnishPHR: Source used for the reported activity metabolic rate when calculating the reported metabolic equivalent of task (MET).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-source.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-reported-source SHALL be used. Other codes MAY be used.",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-reported-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:reported-source.code.coding:fiphrCode-reported-source.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82281-7"
+ },
+ {
+ "id": "Observation.component:reported-source.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying sources for reported MET-values.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforreportedmet"
+ }
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding",
+ "path": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrValue-estimated-source SHALL be used. Other codes MAY be used.",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source",
+ "path": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-reported-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:reported-source.value[x].coding:fiphrValue-reported-source.display",
+ "path": "Observation.component.value[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:reported-source.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:reported-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-met",
+ "path": "Observation.component",
+ "sliceName": "adjusted-met",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-met.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-adjusted-met SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-adjusted-met",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:adjusted-met.code.coding:fiphrCode-adjusted-met.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82271-8"
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "MET"
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:adjusted-met.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "[MET]"
+ },
+ {
+ "id": "Observation.component:adjusted-met.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-met.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-source",
+ "path": "Observation.component",
+ "sliceName": "adjusted-source",
+ "short": "FinnishPHR: Source for adjusted MET",
+ "definition": "FinnishPHR: Source used to adjust the activity metabolic rate when calculating the adjusted metabolic equivalent of task (MET).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-source.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCode-adjusted-source SHALL be used. Other codes MAY be used."
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-adjusted-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:adjusted-source.code.coding:fiphrCode-adjusted-source.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "82283-3"
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying sources for adjusted MET-values.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforadjustedmet"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding",
+ "path": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforadjustedmet"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source",
+ "path": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-adjusted-source",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.system",
+ "path": "Observation.component.value[x].coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.code",
+ "path": "Observation.component.value[x].coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:adjusted-source.value[x].coding:fiphrValue-adjusted-source.display",
+ "path": "Observation.component.value[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:adjusted-source.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:adjusted-source.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDBloodglucose.json b/input/examples/FIPHRSDBloodglucose.json
new file mode 100644
index 0000000..78ca23b
--- /dev/null
+++ b/input/examples/FIPHRSDBloodglucose.json
@@ -0,0 +1,16357 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-bloodglucose",
+ "meta": {
+ "lastUpdated": "2021-11-23T06:37:42.574+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose",
+ "version": "0.1.0",
+ "name": "FIPHRSDBloodglucose",
+ "title": "Finnish PHR Blood Glucose profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-11-23",
+ "description": "Finnish PHR profile for blood glucose measurement.",
+ "purpose": "Finnish PHR profile for Observation used in blood glucose measurements. The profile is based on the Finnish PHR observation profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-vitalsigns",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Blood Glucose profile",
+ "definition": "Finnish PHR profile for Observation used in blood glucose measurements. The profile is based on the Finnish PHR observation profile.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "vs-2",
+ "severity": "error",
+ "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
+ "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
+ "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ },
+ {
+ "key": "PHR-1",
+ "severity": "error",
+ "human": "Resource SHALL contain code '15074-8' or '14743-9' or '14745-4'",
+ "expression": "(code.coding.where(code='15074-8').exists()) or (code.coding.where(code='14743-9').exists()) or (code.coding.where(code='14745-4').exists())",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ },
+ {
+ "key": "PHR-2",
+ "severity": "error",
+ "human": "When using code '15074-8' also code '14743-9' SHALL be used",
+ "expression": "code.coding.where(code='15074-8').exists() implies code.coding.where(code='14743-9').exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ },
+ {
+ "key": "PHR-3",
+ "severity": "error",
+ "human": "When using code '14743-9' also code '15074-8' SHALL be used",
+ "expression": "code.coding.where(code='14743-9').exists() implies code.coding.where(code='15074-8').exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
+ "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Language"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:hoursAfterMeal",
+ "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": "Observation.extension",
+ "sliceName": "hoursAfterMeal",
+ "short": "Meal context",
+ "definition": "Meal context, how many hours after meal measurement is done.",
+ "comment": "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.",
+ "requirements": "Meal context needed for result interpretation.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "coding.code"
+ },
+ {
+ "type": "value",
+ "path": "coding.system"
+ }
+ ],
+ "ordered": false,
+ "rules": "open"
+ },
+ "short": "Classification of type of observation.",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Vital-sign code SHALL be used. Additional codes MAY be used. (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources all vital signs observations.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCategory"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Classification of type of observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat",
+ "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": "Observation.category",
+ "sliceName": "VSCat",
+ "short": "Classification of type of observation",
+ "definition": "A code that classifies the general type of observation being made.",
+ "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.",
+ "requirements": "Used for filtering what observations are retrieved and displayed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCategory"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding",
+ "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": "Observation.category.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "vital-signs",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Coded Responses from C-CDA Vital Sign Results",
+ "definition": "Coded Responses from C-CDA Vital Sign Results.",
+ "comment": "Describes type of observation.",
+ "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCode"
+ }
+ ],
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code to be used with CGM readings",
+ "definition": "This code SHALL be used with CGM readings.",
+ "comment": "This code SHALL be used with CGM readings. Ordering of codings is undefined and SHALL NOT be used to infer meaning.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "PHR-1",
+ "severity": "error",
+ "human": "When using code '15074-8' or '14743-9' or '14745-4' system http://loinc.org SHALL be used",
+ "expression": "(where(code='15074-8').exists()) or (where(code='14743-9').exists()) or (where(code='14745-4').exists()) implies where(system=\"http://loinc.org\").exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood",
+ "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": "Observation.code.coding",
+ "sliceName": "GlucoseInBlood",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "15074-8",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer",
+ "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": "Observation.code.coding",
+ "sliceName": "GlucoseInCapillaryBloodByGlucometer",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "14743-9",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid",
+ "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": "Observation.code.coding",
+ "sliceName": "GlucoseInBodyFluid",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "14745-4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Often just a dateTime for Vital Signs",
+ "definition": "Often just a dateTime for Vital Signs.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-1",
+ "severity": "error",
+ "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
+ "expression": "($this as dateTime).toString().length() >= 8",
+ "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime",
+ "short": "Often just a dateTime for Vital Signs",
+ "definition": "Often just a dateTime for Vital Signs.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-1",
+ "severity": "error",
+ "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
+ "expression": "($this as dateTime).toString().length() >= 8",
+ "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "Updated when the result is updated.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "FinnishPHR: Glucose in blood",
+ "definition": "FinnishPHR: Glucose in blood",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity",
+ "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": "Observation.value[x].extension",
+ "sliceName": "alternativeQuantity",
+ "short": "Finnish PHR physical quantity translation extension",
+ "definition": "Finnish PHR physical quantity translation extension to express an alternative representation of the same physical quantity expressed in a different unit from a different unit code system and possibly with a different value.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.id",
+ "path": "Observation.value[x].extension.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.extension",
+ "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": "Observation.value[x].extension.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.url",
+ "path": "Observation.value[x].extension.url",
+ "representation": [
+ "xmlAttr"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Extension.url",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "uri"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x]",
+ "path": "Observation.value[x].extension.value[x]",
+ "short": "Value of extension",
+ "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](extensibility.html) for a list).",
+ "comment": "A stream of bytes, base64 encoded",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Extension.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].id",
+ "path": "Observation.value[x].extension.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].extension",
+ "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": "Observation.value[x].extension.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].value",
+ "path": "Observation.value[x].extension.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].comparator",
+ "path": "Observation.value[x].extension.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].extension.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].system",
+ "path": "Observation.value[x].extension.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].code",
+ "path": "Observation.value[x].extension.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "mmol/l",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "mmol/L",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing. \r\nFinnish PHR: Codes 'astext' and 'error' are allowed, no other codes.",
+ "comment": "Finnish PHR: Code 'error' SHALL be used when a device has been actively trying to measure the blood glucose but has failed for some reason. Code 'astext' SHALL be used when the measured value cannot be stored using the valueQuantity structure (with the comparator). In this case, the value SHALL be presented in the resource narrative. No other codes are allowed.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (Observation.value[x]) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "xml:id (or equivalent in JSON)",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "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": "Observation.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.id",
+ "path": "Observation.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.extension",
+ "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": "Observation.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.version",
+ "path": "Observation.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings may not exceed 1MB in size. \r\nFinnish PHR: Code 'error' SHALL be used when a device has been actively trying to measure the blood glucose but has failed for some reason. Code 'astext' SHALL be used when the measured value cannot be stored using the valueQuantity structure (with the comparator). In this case, the value SHALL be presented in the resource narrative. No other codes are allowed.",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.userSelected",
+ "path": "Observation.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason",
+ "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": "Observation.dataAbsentReason.coding",
+ "sliceName": "fiphrDataAbsentReason",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.version",
+ "path": "Observation.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.userSelected",
+ "path": "Observation.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "fixedReference": {
+ "reference": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].id",
+ "path": "Observation.note.author[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].extension",
+ "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": "Observation.note.author[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].reference",
+ "path": "Observation.note.author[x].reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].type",
+ "path": "Observation.note.author[x].type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier",
+ "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": "Observation.note.author[x].identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.id",
+ "path": "Observation.note.author[x].identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.extension",
+ "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": "Observation.note.author[x].identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.use",
+ "path": "Observation.note.author[x].identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.type",
+ "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": "Observation.note.author[x].identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.system",
+ "path": "Observation.note.author[x].identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.value",
+ "path": "Observation.note.author[x].identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.period",
+ "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": "Observation.note.author[x].identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.assigner",
+ "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": "Observation.note.author[x].identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.note.author[x].display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.id",
+ "path": "Observation.device.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.extension",
+ "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": "Observation.device.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.reference",
+ "path": "Observation.device.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.type",
+ "path": "Observation.device.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier",
+ "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": "Observation.device.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.id",
+ "path": "Observation.device.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.extension",
+ "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": "Observation.device.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.use",
+ "path": "Observation.device.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.type",
+ "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": "Observation.device.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.system",
+ "path": "Observation.device.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.value",
+ "path": "Observation.device.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.period",
+ "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": "Observation.device.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.assigner",
+ "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": "Observation.device.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.device.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Used when reporting vital signs panel components",
+ "definition": "Used when reporting vital signs panel components.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCode"
+ }
+ ],
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Blood Glucose profile",
+ "definition": "Finnish PHR profile for Observation used in blood glucose measurements. The profile is based on the Finnish PHR observation profile.",
+ "comment": ".",
+ "constraint": [
+ {
+ "key": "PHR-1",
+ "severity": "error",
+ "human": "Resource SHALL contain code '15074-8' or '14743-9' or '14745-4'",
+ "expression": "(code.coding.where(code='15074-8').exists()) or (code.coding.where(code='14743-9').exists()) or (code.coding.where(code='14745-4').exists())",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ },
+ {
+ "key": "PHR-2",
+ "severity": "error",
+ "human": "When using code '15074-8' also code '14743-9' SHALL be used",
+ "expression": "code.coding.where(code='15074-8').exists() implies code.coding.where(code='14743-9').exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ },
+ {
+ "key": "PHR-3",
+ "severity": "error",
+ "human": "When using code '14743-9' also code '15074-8' SHALL be used",
+ "expression": "code.coding.where(code='14743-9').exists() implies code.coding.where(code='15074-8').exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ },
+ {
+ "id": "Observation.extension",
+ "path": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 0
+ },
+ {
+ "id": "Observation.extension:hoursAfterMeal",
+ "path": "Observation.extension",
+ "sliceName": "hoursAfterMeal",
+ "short": "Meal context",
+ "definition": "Meal context, how many hours after meal measurement is done.",
+ "requirements": "Meal context needed for result interpretation.",
+ "min": 0,
+ "max": "1",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-unsignedint"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code to be used with CGM readings",
+ "definition": "This code SHALL be used with CGM readings.",
+ "comment": "This code SHALL be used with CGM readings. Ordering of codings is undefined and SHALL NOT be used to infer meaning.",
+ "min": 1,
+ "constraint": [
+ {
+ "key": "PHR-1",
+ "severity": "error",
+ "human": "When using code '15074-8' or '14743-9' or '14745-4' system http://loinc.org SHALL be used",
+ "expression": "(where(code='15074-8').exists()) or (where(code='14743-9').exists()) or (where(code='14745-4').exists()) implies where(system=\"http://loinc.org\").exists()",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood",
+ "path": "Observation.code.coding",
+ "sliceName": "GlucoseInBlood",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.code",
+ "path": "Observation.code.coding.code",
+ "min": 1,
+ "fixedCode": "15074-8"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBlood.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer",
+ "path": "Observation.code.coding",
+ "sliceName": "GlucoseInCapillaryBloodByGlucometer",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.code",
+ "path": "Observation.code.coding.code",
+ "min": 1,
+ "fixedCode": "14743-9"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInCapillaryBloodByGlucometer.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid",
+ "path": "Observation.code.coding",
+ "sliceName": "GlucoseInBodyFluid",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.code",
+ "path": "Observation.code.coding.code",
+ "min": 1,
+ "fixedCode": "14745-4"
+ },
+ {
+ "id": "Observation.code.coding:GlucoseInBodyFluid.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "short": "FinnishPHR: Glucose in blood",
+ "definition": "FinnishPHR: Glucose in blood",
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension",
+ "path": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 0
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity",
+ "path": "Observation.value[x].extension",
+ "sliceName": "alternativeQuantity",
+ "min": 0,
+ "max": "1",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-pq-translation"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension:alternativeQuantity.value[x].system",
+ "path": "Observation.value[x].extension.value[x].system",
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "path": "Observation.value[x].unit",
+ "min": 1,
+ "fixedString": "mmol/l"
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "mmol/L"
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "path": "Observation.dataAbsentReason",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing. \r\nFinnish PHR: Codes 'astext' and 'error' are allowed, no other codes.",
+ "comment": "Finnish PHR: Code 'error' SHALL be used when a device has been actively trying to measure the blood glucose but has failed for some reason. Code 'astext' SHALL be used when the measured value cannot be stored using the valueQuantity structure (with the comparator). In this case, the value SHALL be presented in the resource narrative. No other codes are allowed."
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "path": "Observation.dataAbsentReason.coding",
+ "min": 1
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "comment": "Note that FHIR strings may not exceed 1MB in size. \r\nFinnish PHR: Code 'error' SHALL be used when a device has been actively trying to measure the blood glucose but has failed for some reason. Code 'astext' SHALL be used when the measured value cannot be stored using the valueQuantity structure (with the comparator). In this case, the value SHALL be presented in the resource narrative. No other codes are allowed."
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDBloodpressure.json b/input/examples/FIPHRSDBloodpressure.json
new file mode 100644
index 0000000..0965060
--- /dev/null
+++ b/input/examples/FIPHRSDBloodpressure.json
@@ -0,0 +1,20917 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-bloodpressure",
+ "meta": {
+ "versionId": "7",
+ "lastUpdated": "2021-02-22T09:57:14.794+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodpressure",
+ "version": "0.1.0",
+ "name": "FIPHRSDBloodpressure",
+ "title": "Finnish PHR bloodpressure profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:57:11.9704394+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR profile for blood pressure measurement",
+ "purpose": "Finnish PHR profile for Observation used in blood pressure measurements.The profile is based on the Finnish PHR observation profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-vitalsigns",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR bloodpressure profile",
+ "definition": "Finnish PHR profile for Observation used in blood pressure measurements. The profile is based on the Finnish PHR observation profile.",
+ "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "vs-2",
+ "severity": "error",
+ "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
+ "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
+ "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodpressure",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Status"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "coding.code"
+ },
+ {
+ "type": "value",
+ "path": "coding.system"
+ }
+ ],
+ "ordered": false,
+ "rules": "open"
+ },
+ "short": "Classification of type of observation.",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Vital-sign code SHALL be used. Additional codes MAY be used. (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources all vital signs observations.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "preferred",
+ "description": "Classification of type of observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat",
+ "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": "Observation.category",
+ "sliceName": "VSCat",
+ "short": "Classification of type of observation",
+ "definition": "A code that classifies the general type of observation being made.",
+ "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.",
+ "requirements": "Used for filtering what observations are retrieved and displayed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "required",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding",
+ "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": "Observation.category.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "vital-signs",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Coded Responses from C-CDA Vital Sign Results",
+ "definition": "Coded Responses from C-CDA Vital Sign Results.",
+ "comment": "Describes type of observation.",
+ "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems. Also supports communication of the same instance to systems requiring different encodings.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems. Also supports communication of the same instance to systems requiring different encodings.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "FinnishPHR: Code of Blood pressure panel",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "FinnishPHR: Blood pressure (systolic and diastolic -- grouping structure)",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "85354-9",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Often just a dateTime for Vital Signs",
+ "definition": "Often just a dateTime for Vital Signs.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-1",
+ "severity": "error",
+ "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
+ "expression": "($this as dateTime).toString().length() >= 8",
+ "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "Updated when the result is updated.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Value-element is not used in Finnish PHR Spirometry Blood Pressure Profile although it's not profiled off on the main level.",
+ "definition": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "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": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "definition": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "NB! DataAbsentReason-element is not used in Finnish PHR Spirometry Blood Pressure Profile although it's not profiled off on the main level.",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes specifying why the result (Observation.value[x]) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "xml:id (or equivalent in JSON)",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "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": "Observation.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason",
+ "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": "Observation.dataAbsentReason.coding",
+ "sliceName": "fiphrDataAbsentReason",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.version",
+ "path": "Observation.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.userSelected",
+ "path": "Observation.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "fixedReference": {
+ "reference": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].id",
+ "path": "Observation.note.author[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].extension",
+ "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": "Observation.note.author[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].reference",
+ "path": "Observation.note.author[x].reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].type",
+ "path": "Observation.note.author[x].type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier",
+ "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": "Observation.note.author[x].identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.id",
+ "path": "Observation.note.author[x].identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.extension",
+ "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": "Observation.note.author[x].identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.use",
+ "path": "Observation.note.author[x].identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.type",
+ "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": "Observation.note.author[x].identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.system",
+ "path": "Observation.note.author[x].identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.value",
+ "path": "Observation.note.author[x].identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.period",
+ "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": "Observation.note.author[x].identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.assigner",
+ "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": "Observation.note.author[x].identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.note.author[x].display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.id",
+ "path": "Observation.device.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.extension",
+ "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": "Observation.device.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.reference",
+ "path": "Observation.device.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.type",
+ "path": "Observation.device.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier",
+ "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": "Observation.device.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.id",
+ "path": "Observation.device.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.extension",
+ "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": "Observation.device.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.use",
+ "path": "Observation.device.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.type",
+ "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": "Observation.device.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.system",
+ "path": "Observation.device.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.value",
+ "path": "Observation.device.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.period",
+ "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": "Observation.device.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.assigner",
+ "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": "Observation.device.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.device.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Used when reporting vital signs panel components",
+ "definition": "Used when reporting vital signs panel components.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 2,
+ "max": "2",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic",
+ "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": "Observation.component",
+ "sliceName": "systolic",
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "8480-6",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]",
+ "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": "Observation.component.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity",
+ "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": "Observation.component.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision) for systolic",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation for systolic",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "mm[Hg]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form for systolic",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "mm[Hg]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic",
+ "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": "Observation.component",
+ "sliceName": "diastolic",
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "8462-4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]",
+ "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": "Observation.component.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity",
+ "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": "Observation.component.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision) for diastolic",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation for diastolic",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "mm[Hg]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form for diastolic",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "mm[Hg]",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR bloodpressure profile",
+ "definition": "Finnish PHR profile for Observation used in blood pressure measurements. The profile is based on the Finnish PHR observation profile.",
+ "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodpressure"
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "FinnishPHR: Code of Blood pressure panel",
+ "comment": "FinnishPHR: Blood pressure (systolic and diastolic -- grouping structure)",
+ "min": 1,
+ "fixedCode": "85354-9"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Value-element is not used in Finnish PHR Spirometry Blood Pressure Profile although it's not profiled off on the main level.",
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].id",
+ "path": "Observation.value[x].id",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x].comparator",
+ "path": "Observation.value[x].comparator",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "path": "Observation.value[x].unit",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "path": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "max": "0",
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "path": "Observation.dataAbsentReason",
+ "short": "NB! DataAbsentReason-element is not used in Finnish PHR Spirometry Blood Pressure Profile although it's not profiled off on the main level."
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "max": "0"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "path": "Observation.dataAbsentReason.coding",
+ "max": "0"
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "path": "Observation.dataAbsentReason.text",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "min": 2,
+ "max": "2"
+ },
+ {
+ "id": "Observation.component:systolic",
+ "path": "Observation.component",
+ "sliceName": "systolic",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:systolic.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.system",
+ "path": "Observation.component.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.code",
+ "path": "Observation.component.code.coding.code",
+ "min": 1,
+ "fixedCode": "8480-6"
+ },
+ {
+ "id": "Observation.component:systolic.code.coding:fiphrCoding.display",
+ "path": "Observation.component.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:systolic.value[x]",
+ "path": "Observation.component.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity",
+ "path": "Observation.component.value[x]",
+ "sliceName": "valueQuantity",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision) for systolic",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.unit",
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation for systolic",
+ "min": 1,
+ "fixedString": "mm[Hg]"
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form for systolic",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:systolic.value[x]:valueQuantity.code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "mm[Hg]"
+ },
+ {
+ "id": "Observation.component:systolic.dataAbsentReason.coding",
+ "path": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component:systolic.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component:diastolic",
+ "path": "Observation.component",
+ "sliceName": "diastolic",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.system",
+ "path": "Observation.component.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.code",
+ "path": "Observation.component.code.coding.code",
+ "min": 1,
+ "fixedCode": "8462-4"
+ },
+ {
+ "id": "Observation.component:diastolic.code.coding:fiphrCoding.display",
+ "path": "Observation.component.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]",
+ "path": "Observation.component.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity",
+ "path": "Observation.component.value[x]",
+ "sliceName": "valueQuantity",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision) for diastolic",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.unit",
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation for diastolic",
+ "min": 1,
+ "fixedString": "mm[Hg]"
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form for diastolic",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:diastolic.value[x]:valueQuantity.code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "mm[Hg]"
+ },
+ {
+ "id": "Observation.component:diastolic.dataAbsentReason.coding",
+ "path": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component:diastolic.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDBodyWeight.json b/input/examples/FIPHRSDBodyWeight.json
new file mode 100644
index 0000000..9d41d92
--- /dev/null
+++ b/input/examples/FIPHRSDBodyWeight.json
@@ -0,0 +1,14241 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-bodyweight",
+ "meta": {
+ "versionId": "3",
+ "lastUpdated": "2021-02-22T09:57:40.383+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyweight",
+ "version": "0.1.0",
+ "name": "FIPHRSDBodyWeight",
+ "title": "Finnish PHR Bodyweight profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:57:38.734274+00:00",
+ "description": "Finnish PHR profile for Bodyweight observation resource",
+ "purpose": "Finnish PHR profile for Observation used in Bodyweight measurements made about a patient. The profile is based on the Finnish PHR observation profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-vitalsigns",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Bodyweight profile",
+ "definition": "Finnish PHR abstract base profile for Observation used in Vital signs measurements made about a patient. Base profile defines profiled elements used in all vital signs observation resources.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "vs-2",
+ "severity": "error",
+ "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
+ "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
+ "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyweight",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Status"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "coding.code"
+ },
+ {
+ "type": "value",
+ "path": "coding.system"
+ }
+ ],
+ "ordered": false,
+ "rules": "open"
+ },
+ "short": "Classification of type of observation.",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Vital-sign code SHALL be used. Additional codes MAY be used. (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources all vital signs observations.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "preferred",
+ "description": "Classification of type of observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat",
+ "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": "Observation.category",
+ "sliceName": "VSCat",
+ "short": "Classification of type of observation",
+ "definition": "A code that classifies the general type of observation being made.",
+ "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.",
+ "requirements": "Used for filtering what observations are retrieved and displayed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "required",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding",
+ "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": "Observation.category.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "vital-signs",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Coded Responses from C-CDA Vital Sign Results",
+ "definition": "Coded Responses from C-CDA Vital Sign Results.",
+ "comment": "Describes type of observation.",
+ "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems. Also supports communication of the same instance to systems requiring different encodings.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems. Also supports communication of the same instance to systems requiring different encodings.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "29463-7",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Often just a dateTime for Vital Signs",
+ "definition": "Often just a dateTime for Vital Signs.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-1",
+ "severity": "error",
+ "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
+ "expression": "($this as dateTime).toString().length() >= 8",
+ "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "Updated when the result is updated.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "definition": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "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": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "FinnishPHR: Weight in kilograms",
+ "definition": "FinnishPHR: Weight in kilograms",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "short": "Finnish PHR: The value of the measured weight",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Value is mandatory in FinnishPHR vital-signs Observations",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Finnish PHR: The unit presentation of the measured weight in kilograms",
+ "definition": "Finnish PHR: A human-readable form of the unit.presentation of the measured weight in kilograms",
+ "comment": ".",
+ "requirements": "Unit is mandatory in FinnishPHR vital-signs Observations",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "kg",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "kg",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes specifying why the result (Observation.value[x]) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "xml:id (or equivalent in JSON)",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "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": "Observation.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason",
+ "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": "Observation.dataAbsentReason.coding",
+ "sliceName": "fiphrDataAbsentReason",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.version",
+ "path": "Observation.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.userSelected",
+ "path": "Observation.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "fixedReference": {
+ "reference": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].id",
+ "path": "Observation.note.author[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].extension",
+ "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": "Observation.note.author[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].reference",
+ "path": "Observation.note.author[x].reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].type",
+ "path": "Observation.note.author[x].type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier",
+ "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": "Observation.note.author[x].identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.id",
+ "path": "Observation.note.author[x].identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.extension",
+ "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": "Observation.note.author[x].identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.use",
+ "path": "Observation.note.author[x].identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.type",
+ "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": "Observation.note.author[x].identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.system",
+ "path": "Observation.note.author[x].identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.value",
+ "path": "Observation.note.author[x].identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.period",
+ "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": "Observation.note.author[x].identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.assigner",
+ "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": "Observation.note.author[x].identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.note.author[x].display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.id",
+ "path": "Observation.device.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.extension",
+ "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": "Observation.device.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.reference",
+ "path": "Observation.device.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.type",
+ "path": "Observation.device.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier",
+ "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": "Observation.device.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.id",
+ "path": "Observation.device.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.extension",
+ "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": "Observation.device.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.use",
+ "path": "Observation.device.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.type",
+ "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": "Observation.device.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.system",
+ "path": "Observation.device.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.value",
+ "path": "Observation.device.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.period",
+ "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": "Observation.device.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.assigner",
+ "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": "Observation.device.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.device.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Used when reporting vital signs panel components",
+ "definition": "Used when reporting vital signs panel components.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Bodyweight profile",
+ "definition": "Finnish PHR abstract base profile for Observation used in Vital signs measurements made about a patient. Base profile defines profiled elements used in all vital signs observation resources.",
+ "comment": "."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyweight"
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "min": 1,
+ "fixedCode": "29463-7"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "path": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "FinnishPHR: Weight in kilograms",
+ "definition": "FinnishPHR: Weight in kilograms",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "short": "Finnish PHR: The value of the measured weight",
+ "requirements": "Value is mandatory in FinnishPHR vital-signs Observations",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "path": "Observation.value[x].unit",
+ "short": "Finnish PHR: The unit presentation of the measured weight in kilograms",
+ "definition": "Finnish PHR: A human-readable form of the unit.presentation of the measured weight in kilograms",
+ "comment": ".",
+ "requirements": "Unit is mandatory in FinnishPHR vital-signs Observations",
+ "min": 1,
+ "fixedString": "kg"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "kg"
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "max": "0"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "path": "Observation.dataAbsentReason.coding",
+ "max": "0"
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "path": "Observation.dataAbsentReason.text",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDCalorieIntake.json b/input/examples/FIPHRSDCalorieIntake.json
new file mode 100644
index 0000000..942cc06
--- /dev/null
+++ b/input/examples/FIPHRSDCalorieIntake.json
@@ -0,0 +1,9388 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-calorieintake",
+ "meta": {
+ "versionId": "2",
+ "lastUpdated": "2021-02-22T10:04:28.821+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake",
+ "version": "0.1.0",
+ "name": "FIPHRSDCalorieIntake",
+ "title": "Finnish PHR Calorie Intake profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T10:04:26.0579285+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR profile for Calorie Intake observation resource",
+ "purpose": "Finnish PHR profile for Observation used for measuring calorie intake. The profile is based on the Finnish PHR Nutrition profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-nutrition",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR profile for Calorie Intake observation resource",
+ "definition": "Finnish PHR profile for Observation used for measuring calorie intake. The profile is based on the Finnish PHR Nutrition profile.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation.\r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA code that classifies the general type of observation being made.",
+ "comment": "FinnishPHR: Only value nutrition valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "Finnish PHR: All resources are related to nutrition.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-observationcategory"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Finnish PHR: Codes for high level observation categories.",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "nutrition",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (code / type)",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nDescribes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.\r\nFinnish PHR: The valueset binding strength in the base profile is set to 'example', because some of the derived profiles use another valueset. In all profiles derived from the base profile, the valueset binding strength SHALL be set to 'required'.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-nutrition"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "9052-2",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "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": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "kcal",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "kcal",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used. The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCode"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR profile for Calorie Intake observation resource",
+ "definition": "Finnish PHR profile for Observation used for measuring calorie intake. The profile is based on the Finnish PHR Nutrition profile."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "9052-2"
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime",
+ "min": 1,
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "path": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "path": "Observation.value[x].unit",
+ "min": 1,
+ "fixedString": "kcal"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "kcal"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDCarePlan.json b/input/examples/FIPHRSDCarePlan.json
new file mode 100644
index 0000000..fe21162
--- /dev/null
+++ b/input/examples/FIPHRSDCarePlan.json
@@ -0,0 +1,10197 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-selfcareplan-r4",
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4",
+ "version": "0.1.0",
+ "name": "FIPHRSDCarePlan",
+ "title": "Finnish PHR SelfCarePlan profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2020-02-04",
+ "description": "StructureDefinition for FinnishPHR SelfCarePlan resource.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "CarePlan",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "CarePlan",
+ "path": "CarePlan",
+ "short": "Self-care plan for patient",
+ "definition": "Describes the intention of how one or more practitioners intend to deliver care for a particular patient, group or community for a period of time, possibly limited to care for a specific condition or set of conditions.",
+ "alias": [
+ "Care Team"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request"
+ },
+ {
+ "identity": "rim",
+ "map": "Act[classCode=PCPR, moodCode=INT]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.id",
+ "path": "CarePlan.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "CarePlan.meta",
+ "path": "CarePlan.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.id",
+ "path": "CarePlan.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.extension",
+ "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": "CarePlan.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.versionId",
+ "path": "CarePlan.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.lastUpdated",
+ "path": "CarePlan.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.source",
+ "path": "CarePlan.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.profile",
+ "path": "CarePlan.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.profile:fiphrProfile",
+ "path": "CarePlan.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.meta.security",
+ "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": "CarePlan.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "CarePlan.meta.tag",
+ "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": "CarePlan.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "CarePlan.implicitRules",
+ "path": "CarePlan.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.language",
+ "path": "CarePlan.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.text",
+ "path": "CarePlan.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "Narrative contains clinically relevant information of the resource in a human-readable format. The following fields are used: CarePlan.title, CarePlan.status, CarePlan.period, CarePlan.category, CarePlan.goal, CarePlan.description. If available, a text representation of SelfCareGoal resource is included in the narrative.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.contained",
+ "path": "CarePlan.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-r4"
+ ]
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.extension",
+ "path": "CarePlan.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.extension:creatingApplication",
+ "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": "CarePlan.extension",
+ "sliceName": "creatingApplication",
+ "short": "Additional Content defined by implementations",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.modifierExtension",
+ "path": "CarePlan.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier",
+ "path": "CarePlan.identifier",
+ "short": "External Ids for this plan",
+ "definition": "Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.",
+ "comment": "This is a business identifier, not a resource identifier (see [discussion](resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.",
+ "requirements": "Allows identification of the care plan as it is known by various participating systems and in a way that remains consistent across servers.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "PTH-3"
+ },
+ {
+ "identity": "rim",
+ "map": ".id"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.id",
+ "path": "CarePlan.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.extension",
+ "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": "CarePlan.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.use",
+ "path": "CarePlan.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.type",
+ "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": "CarePlan.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.system",
+ "path": "CarePlan.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.value",
+ "path": "CarePlan.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.period",
+ "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": "CarePlan.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier.assigner",
+ "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": "CarePlan.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.instantiatesCanonical",
+ "path": "CarePlan.instantiatesCanonical",
+ "short": "Instantiates FHIR protocol or definition",
+ "definition": "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
+ "comment": "see [Canonical References](references.html#canonical)",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.instantiatesCanonical",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
+ "http://hl7.org/fhir/StructureDefinition/Questionnaire",
+ "http://hl7.org/fhir/StructureDefinition/Measure",
+ "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
+ "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.instantiatesCanonical"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.instantiatesUri",
+ "path": "CarePlan.instantiatesUri",
+ "short": "Instantiates external protocol or definition",
+ "definition": "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.",
+ "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.instantiatesUri",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.instantiatesUri"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.basedOn",
+ "path": "CarePlan.basedOn",
+ "short": "Fulfills CarePlan",
+ "definition": "A care plan that is fulfilled in whole or in part by this care plan.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of the care plan and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
+ "valueBoolean": true
+ }
+ ],
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.basedOn"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.replaces",
+ "path": "CarePlan.replaces",
+ "short": "CarePlan replaced by this CarePlan",
+ "definition": "Completed or terminated care plan whose function is taken by this new care plan.",
+ "comment": "The replacement could be because the initial care plan was immediately rejected (due to an issue) or because the previous care plan was completed, but the need for the action described by the care plan remains ongoing.",
+ "requirements": "Allows tracing the continuation of a therapy or administrative process instantiated through multiple care plans.",
+ "alias": [
+ "supersedes"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.replaces",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
+ "valueBoolean": true
+ }
+ ],
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.replaces"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.partOf",
+ "path": "CarePlan.partOf",
+ "short": "Part of referenced CarePlan",
+ "definition": "A larger care plan of which this particular care plan is a component or step.",
+ "comment": "Each care plan is an independent request, such that having a care plan be part of another care plan can cause issues with cascading statuses. As such, this element is still being discussed.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
+ "valueBoolean": true
+ }
+ ],
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.status",
+ "path": "CarePlan.status",
+ "short": "In Finnish PHR completed is the only accepted value.",
+ "definition": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
+ "comment": "The unknown code is not to be used to convey other statuses. The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the care plan.\n\nThis element is labeled as a modifier because the status contains the code entered-in-error that marks the plan as not currently valid.",
+ "requirements": "Allows clinicians to determine whether the plan is actionable or not.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "completed",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.status {uses different ValueSet}"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "v2",
+ "map": "PTH-5"
+ },
+ {
+ "identity": "rim",
+ "map": ".statusCode planned = new active = active completed = completed"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.intent",
+ "path": "CarePlan.intent",
+ "short": "proposal | plan | order | option",
+ "definition": "Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.",
+ "comment": "This element is labeled as a modifier because the intent alters when and how the resource is actually applicable.",
+ "requirements": "Proposals/recommendations, plans and orders all use the same structure and can exist in the same fulfillment chain.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.intent",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "plan",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request\"",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanIntent"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes indicating the degree of authority/intentionality associated with a care plan.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-intent|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.intent"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category",
+ "path": "CarePlan.category",
+ "short": "Type of plan",
+ "definition": "Identifies what \"kind\" of plan this is to support differentiation between multiple co-existing plans; e.g. \"Home health\", \"psychiatric\", \"asthma\", \"disease management\", \"wellness plan\", etc.",
+ "comment": "There may be multiple axes of categorization and one plan may serve multiple purposes. In some cases, this may be redundant with references to CarePlan.concern.",
+ "requirements": "Used for filtering what plan(s) are retrieved and displayed to different types of users.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Identifies what \"kind\" of self-care plan this is to support differentiation between multiple co-existing plans.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-careplancategory"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.id",
+ "path": "CarePlan.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.extension",
+ "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": "CarePlan.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding",
+ "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": "CarePlan.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding",
+ "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": "CarePlan.category.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.id",
+ "path": "CarePlan.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.extension",
+ "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": "CarePlan.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.system",
+ "path": "CarePlan.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.version",
+ "path": "CarePlan.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.code",
+ "path": "CarePlan.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.userSelected",
+ "path": "CarePlan.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.title",
+ "path": "CarePlan.title",
+ "short": "Human-friendly name for the care plan",
+ "definition": "Human-friendly name for the care plan.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.title",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.description",
+ "path": "CarePlan.description",
+ "short": "Summary of nature of plan",
+ "definition": "A description of the scope and nature of the plan.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Provides more detail than conveyed by category.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.description",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject",
+ "path": "CarePlan.subject",
+ "short": "Who the care plan is for",
+ "definition": "Identifies the patient or group whose intended care is described by the plan.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "alias": [
+ "patient"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.subject",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=PAT].role[classCode=PAT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.id",
+ "path": "CarePlan.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.extension",
+ "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": "CarePlan.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.reference",
+ "path": "CarePlan.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.type",
+ "path": "CarePlan.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier",
+ "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": "CarePlan.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.id",
+ "path": "CarePlan.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.extension",
+ "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": "CarePlan.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.use",
+ "path": "CarePlan.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.type",
+ "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": "CarePlan.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.system",
+ "path": "CarePlan.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.value",
+ "path": "CarePlan.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.period",
+ "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": "CarePlan.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.identifier.assigner",
+ "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": "CarePlan.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.encounter",
+ "path": "CarePlan.encounter",
+ "short": "Encounter created as part of",
+ "definition": "The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.",
+ "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. CarePlan activities conducted as a result of the care plan may well occur as part of other encounters.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "Associated PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "."
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.period",
+ "path": "CarePlan.period",
+ "short": "Time period plan covers",
+ "definition": "Indicates when the plan did (or is intended to) come into effect and end.",
+ "comment": "Any activities scheduled as part of the plan should be constrained to the specified period regardless of whether the activities are planned within a single encounter/episode or across multiple encounters/episodes (e.g. the longitudinal management of a chronic condition).",
+ "requirements": "Allows tracking what plan(s) are in effect at a particular time.",
+ "alias": [
+ "timing"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.planned"
+ },
+ {
+ "identity": "v2",
+ "map": "GOL-7 / GOL-8"
+ },
+ {
+ "identity": "rim",
+ "map": ".effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.created",
+ "path": "CarePlan.created",
+ "short": "Date record was first recorded",
+ "definition": "Represents when this particular CarePlan record was created in the system, which is often a system-generated date.",
+ "alias": [
+ "authoredOn"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.created",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.authoredOn"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author",
+ "path": "CarePlan.author",
+ "short": "Who is the designated responsible party",
+ "definition": "When populated, the author is responsible for the care plan. The care plan is attributed to the author.",
+ "comment": "The author may also be a contributor. For example, an organization can be an author, but not listed as a contributor.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.author",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.requester"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.author"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.id",
+ "path": "CarePlan.author.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.extension",
+ "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": "CarePlan.author.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.reference",
+ "path": "CarePlan.author.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.type",
+ "path": "CarePlan.author.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier",
+ "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": "CarePlan.author.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.id",
+ "path": "CarePlan.author.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.extension",
+ "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": "CarePlan.author.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.use",
+ "path": "CarePlan.author.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.type",
+ "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": "CarePlan.author.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.system",
+ "path": "CarePlan.author.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.value",
+ "path": "CarePlan.author.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.period",
+ "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": "CarePlan.author.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.identifier.assigner",
+ "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": "CarePlan.author.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.author.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.contributor",
+ "path": "CarePlan.contributor",
+ "short": "Who provided the content of the care plan",
+ "definition": "Identifies the individual(s) or organization who provided the contents of the care plan.",
+ "comment": "Collaborative care plans may have multiple contributors.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.contributor",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/PractitionerRole",
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization",
+ "http://hl7.org/fhir/StructureDefinition/CareTeam"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.careTeam",
+ "path": "CarePlan.careTeam",
+ "short": "Who's involved in plan?",
+ "definition": "Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows representation of care teams, helps scope care plan. In some cases may be a determiner of access permissions.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.careTeam",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CareTeam"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.performer {similar but does not entail CareTeam}"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.addresses",
+ "path": "CarePlan.addresses",
+ "short": "Health issues this plan addresses",
+ "definition": "Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.",
+ "comment": "When the diagnosis is related to an allergy or intolerance, the Condition and AllergyIntolerance resources can both be used. However, to be actionable for decision support, using Condition alone is not sufficient as the allergy or intolerance condition needs to be represented as an AllergyIntolerance.",
+ "requirements": "Links plan to the conditions it manages. The element can identify risks addressed by the plan as well as active conditions. (The Condition resource can include things like \"at risk for hypertension\" or \"fall risk\".) Also scopes plans - multiple plans may exist addressing different concerns.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.addresses",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Condition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.reasonReference"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.why[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PRB-4"
+ },
+ {
+ "identity": "rim",
+ "map": ".actRelationship[typeCode=SUBJ].target[classCode=CONC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo",
+ "path": "CarePlan.supportingInfo",
+ "short": "Information considered as part of plan",
+ "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include co-morbidities, recent procedures, limitations, recent assessments, etc. Links also symptom check questionnaire responses to the careplan",
+ "comment": "Use \"concern\" to identify specific conditions addressed by the care plan.",
+ "requirements": "Identifies barriers and other considerations associated with the care plan.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.supportingInfo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.supportingInfo"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.id",
+ "path": "CarePlan.supportingInfo.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.extension",
+ "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": "CarePlan.supportingInfo.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.reference",
+ "path": "CarePlan.supportingInfo.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.type",
+ "path": "CarePlan.supportingInfo.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier",
+ "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": "CarePlan.supportingInfo.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.id",
+ "path": "CarePlan.supportingInfo.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.extension",
+ "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": "CarePlan.supportingInfo.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.use",
+ "path": "CarePlan.supportingInfo.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.type",
+ "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": "CarePlan.supportingInfo.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.system",
+ "path": "CarePlan.supportingInfo.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.value",
+ "path": "CarePlan.supportingInfo.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.period",
+ "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": "CarePlan.supportingInfo.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.assigner",
+ "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": "CarePlan.supportingInfo.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.supportingInfo.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal",
+ "path": "CarePlan.goal",
+ "short": "Desired outcome of plan",
+ "definition": "Describes the intended objective(s) of carrying out the care plan.",
+ "comment": "Goal can be achieving a particular change or merely maintaining a current state or even slowing a decline.",
+ "requirements": "Provides context for plan. Allows plan effectiveness to be evaluated by clinicians.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.goal",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-r4"
+ ],
+ "aggregation": [
+ "contained"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "GOL.1"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode<=OBJ]."
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.id",
+ "path": "CarePlan.goal.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.extension",
+ "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": "CarePlan.goal.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.reference",
+ "path": "CarePlan.goal.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.type",
+ "path": "CarePlan.goal.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.identifier",
+ "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": "CarePlan.goal.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.goal.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity",
+ "path": "CarePlan.activity",
+ "short": "Action to occur as part of plan",
+ "definition": "Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.",
+ "requirements": "Allows systems to prompt for performance of planned activities, and validate plans against best practice.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "cpl-3",
+ "severity": "error",
+ "human": "Provide a reference or detail, not both",
+ "expression": "detail.empty() or reference.empty()",
+ "xpath": "not(exists(f:detail)) or not(exists(f:reference))",
+ "source": "http://hl7.org/fhir/StructureDefinition/CarePlan"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "{no mapping\nNOTE: This is a list of contained Request-Event tuples!}"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.id",
+ "path": "CarePlan.activity.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.extension",
+ "path": "CarePlan.activity.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.modifierExtension",
+ "path": "CarePlan.activity.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.outcomeCodeableConcept",
+ "path": "CarePlan.activity.outcomeCodeableConcept",
+ "short": "Results of the activity",
+ "definition": "Identifies the outcome at the point when the status of the activity is assessed. For example, the outcome of an education activity could be patient understands (or not).",
+ "comment": "Note that this should not duplicate the activity status (e.g. completed or in progress).",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.outcomeCodeableConcept",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanActivityOutcome"
+ }
+ ],
+ "strength": "example",
+ "description": "Identifies the results of the activity.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-outcome"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.outcomeReference",
+ "path": "CarePlan.activity.outcomeReference",
+ "short": "Appointment, Encounter, Procedure, etc.",
+ "definition": "Details of the outcome or action resulting from the activity. The reference to an \"event\" resource, such as Procedure or Encounter or Observation, is the result/outcome of the activity itself. The activity can be conveyed using CarePlan.activity.detail OR using the CarePlan.activity.reference (a reference to a “request” resource).",
+ "comment": "The activity outcome is independent of the outcome of the related goal(s). For example, if the goal is to achieve a target body weight of 150 lbs and an activity is defined to diet, then the activity outcome could be calories consumed whereas the goal outcome is an observation for the actual body weight measured.",
+ "requirements": "Links plan to resulting actions.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.outcomeReference",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "{Event that is outcome of Request in activity.reference}"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=FLFS].source"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.progress",
+ "path": "CarePlan.activity.progress",
+ "short": "Comments about the activity status/progress",
+ "definition": "Notes about the adherence/status/progress of the activity.",
+ "comment": "This element should NOT be used to describe the activity to be performed - that occurs either within the resource pointed to by activity.detail.reference or in activity.detail.description.",
+ "requirements": "Can be used to capture information about adherence, progress, concerns, etc.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.progress",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE?"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.reference",
+ "path": "CarePlan.activity.reference",
+ "short": "Activity details defined in specific resource",
+ "definition": "The details of the proposed activity represented in a specific resource.",
+ "comment": "Standard extension exists ([resource-pertainsToGoal](extension-resource-pertainstogoal.html)) that allows goals to be referenced from any of the referenced resources in CarePlan.activity.reference. \rThe goal should be visible when the resource referenced by CarePlan.activity.reference is viewed independently from the CarePlan. Requests that are pointed to by a CarePlan using this element should *not* point to this CarePlan using the \"basedOn\" element. i.e. Requests that are part of a CarePlan are not \"based on\" the CarePlan.",
+ "requirements": "Details in a form consistent with other applications and contexts of use.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Appointment",
+ "http://hl7.org/fhir/StructureDefinition/CommunicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/Task",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest",
+ "http://hl7.org/fhir/StructureDefinition/VisionPrescription",
+ "http://hl7.org/fhir/StructureDefinition/RequestGroup"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "cpl-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "{Request that resulted in Event in activity.actionResulting}"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail",
+ "path": "CarePlan.activity.detail",
+ "short": "In-line definition of activity",
+ "definition": "A simple summary of a planned activity suitable for a general care plan system (e.g. form driven) that doesn't know about specific resources such as procedure etc.",
+ "requirements": "Details in a simple form for generic care plan systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "cpl-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP, subsetCode=SUMM].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.id",
+ "path": "CarePlan.activity.detail.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.extension",
+ "path": "CarePlan.activity.detail.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.modifierExtension",
+ "path": "CarePlan.activity.detail.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.kind",
+ "path": "CarePlan.activity.detail.kind",
+ "short": "Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription",
+ "definition": "High-level categorization of the type of activity in a self-care plan.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "May determine what types of extensions are permitted.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.kind",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanActivityKind"
+ }
+ ],
+ "strength": "required",
+ "description": "Resource types defined as part of FHIR that can be represented as in-line definitions of a care plan activity.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-kind|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[classCode=LIST].code"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.instantiatesCanonical",
+ "path": "CarePlan.activity.detail.instantiatesCanonical",
+ "short": "Instantiates FHIR protocol or definition",
+ "definition": "The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
+ "comment": "see [Canonical References](references.html#canonical)",
+ "requirements": "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.detail.instantiatesCanonical",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/PlanDefinition",
+ "http://hl7.org/fhir/StructureDefinition/ActivityDefinition",
+ "http://hl7.org/fhir/StructureDefinition/Questionnaire",
+ "http://hl7.org/fhir/StructureDefinition/Measure",
+ "http://hl7.org/fhir/StructureDefinition/OperationDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.instantiatesCanonical"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.instantiatesUri",
+ "path": "CarePlan.activity.detail.instantiatesUri",
+ "short": "Instantiates external protocol or definition",
+ "definition": "The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan activity.",
+ "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
+ "requirements": "Allows Questionnaires that the patient (or practitioner) should fill in to fulfill the care plan activity.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.detail.instantiatesUri",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.instantiatesUri"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code",
+ "path": "CarePlan.activity.detail.code",
+ "short": "Detail type of activity",
+ "definition": "Detailed description of the type of planned activity; e.g. what lab test, what procedure, what kind of encounter.",
+ "comment": "Tends to be less relevant for activities involving particular products. Codes should not convey negation - use \"prohibited\" instead.",
+ "requirements": "Allows matching performed to planned as well as validation against protocols.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Detailed description of the type of activity; e.g. What lab test, what procedure, what kind of encounter.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-activitycode"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.code"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR-4 / RXE-2 / RXO-1 / RXD-2"
+ },
+ {
+ "identity": "rim",
+ "map": ".code"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.id",
+ "path": "CarePlan.activity.detail.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.extension",
+ "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": "CarePlan.activity.detail.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding",
+ "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": "CarePlan.activity.detail.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.id",
+ "path": "CarePlan.activity.detail.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.extension",
+ "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": "CarePlan.activity.detail.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.system",
+ "path": "CarePlan.activity.detail.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.version",
+ "path": "CarePlan.activity.detail.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.code",
+ "path": "CarePlan.activity.detail.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.userSelected",
+ "path": "CarePlan.activity.detail.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode",
+ "path": "CarePlan.activity.detail.reasonCode",
+ "short": "Why activity should be done or why activity was prohibited",
+ "definition": "Provides the rationale that drove the inclusion of this particular activity as part of the plan or the reason why the activity was prohibited.",
+ "comment": "This could be a diagnosis code. If a full condition record exists or additional detail is needed, use reasonCondition instead.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.detail.reasonCode",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Identifies why a care plan activity is needed. Can include any health condition codes as well as such concepts as \"general wellness\", prophylaxis, surgical preparation, etc.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-reminderid"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.reasonCode"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.id",
+ "path": "CarePlan.activity.detail.reasonCode.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.extension",
+ "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": "CarePlan.activity.detail.reasonCode.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding",
+ "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": "CarePlan.activity.detail.reasonCode.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.id",
+ "path": "CarePlan.activity.detail.reasonCode.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.extension",
+ "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": "CarePlan.activity.detail.reasonCode.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.system",
+ "path": "CarePlan.activity.detail.reasonCode.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.version",
+ "path": "CarePlan.activity.detail.reasonCode.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.code",
+ "path": "CarePlan.activity.detail.reasonCode.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.reasonCode.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.userSelected",
+ "path": "CarePlan.activity.detail.reasonCode.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.reasonCode.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonReference",
+ "path": "CarePlan.activity.detail.reasonReference",
+ "short": "Why activity is needed",
+ "definition": "Indicates another resource, such as the health condition(s), whose existence justifies this request and drove the inclusion of this particular activity as part of the plan.",
+ "comment": "Conditions can be identified at the activity level that are not identified as reasons for the overall plan.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.reasonReference",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Condition",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/DiagnosticReport",
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.reasonReference"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.goal",
+ "path": "CarePlan.activity.detail.goal",
+ "short": "Goals this activity relates to",
+ "definition": "Internal reference that identifies the goals that this activity is intended to contribute towards meeting.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "So that participants know the link explicitly.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.goal",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Goal"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode<=OBJ]."
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.status",
+ "path": "CarePlan.activity.detail.status",
+ "short": "not-started | in-progress | completed | cancelled",
+ "definition": "Identifies what progress is being made for the specific activity.",
+ "comment": "Some aspects of status can be inferred based on the resources linked in actionTaken. Note that \"status\" is only as current as the plan was most recently updated. \nThe unknown code is not to be used to convey other statuses. The unknown code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the activity.",
+ "requirements": "Indicates progress against the plan, whether the activity is still relevant for the plan.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the activity should not be treated as valid",
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanActivityStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes that reflect the current state of a care plan activity within its overall life cycle.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/care-plan-activity-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.status"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC-5?"
+ },
+ {
+ "identity": "rim",
+ "map": ".statusCode not-started = new scheduled = not-started (and fulfillment relationship to appointent) in-progress = active on-hold = suspended completed = completed cancelled = aborted"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.statusReason",
+ "path": "CarePlan.activity.detail.statusReason",
+ "short": "Reason for current status",
+ "definition": "Provides reason why the activity isn't yet started, is on hold, was cancelled, etc.",
+ "comment": "Will generally not be present if status is \"complete\". Be sure to prompt to update this (or at least remove the existing value) if the status is changed.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.statusReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.statusReason"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.doNotPerform",
+ "path": "CarePlan.activity.detail.doNotPerform",
+ "short": "If true, activity is prohibiting action",
+ "definition": "If true, indicates that the described activity is one that must NOT be engaged in when following the plan. If false, or missing, indicates that the described activity is one that should be engaged in when following the plan.",
+ "comment": "This element is labeled as a modifier because it marks an activity as an activity that is not to be performed.",
+ "requirements": "Captures intention to not do something that may have been previously typical.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.doNotPerform",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "meaningWhenMissing": "If missing indicates that the described activity is one that should be engaged in when following the plan.",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "If true this element negates the specified action. For example, instead of a request for a procedure, it is a request for the procedure to not occur.",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.doNotPerform"
+ },
+ {
+ "identity": "rim",
+ "map": "actionNegationInd"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.scheduled[x]",
+ "path": "CarePlan.activity.detail.scheduled[x]",
+ "short": "When activity is to occur",
+ "definition": "The period, timing or frequency upon which the described activity is to occur.",
+ "comment": "Describes the occurrence of an event that may occur multiple times. Timing schedules are used for specifying when events are expected or requested to occur, and may also be used to represent the summary of a past or ongoing event. For simplicity, the definitions of Timing components are expressed as 'future' events, but such components can also be used to describe historic or ongoing events.\n\nA Timing schedule can be a list of events and/or criteria for when the event happens, which can be expressed in a structured form and/or as a code. When both event and a repeating specification are provided, the list of events should be understood as an interpretation of the information in the repeat structure.",
+ "requirements": "Allows prompting for activities and detection of missed planned activities.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.scheduled[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Timing"
+ },
+ {
+ "code": "Period"
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "QSET (GTS)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.occurrence[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "TQ1"
+ },
+ {
+ "identity": "rim",
+ "map": ".effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.location",
+ "path": "CarePlan.activity.detail.location",
+ "short": "Where it should happen",
+ "definition": "Identifies the facility where the activity will occur; e.g. home, hospital, specific clinic, etc.",
+ "comment": "May reference a specific clinical location or may identify a type of location.",
+ "requirements": "Helps in planning of activity.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.location",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Location"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR-24(???!!)"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=LOC].role"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer",
+ "path": "CarePlan.activity.detail.performer",
+ "short": "Who will be responsible?",
+ "definition": "Identifies who's expected to be involved in the activity.",
+ "comment": "A performer MAY also be a participant in the care plan.",
+ "requirements": "Helps in planning of activity.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CarePlan.activity.detail.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.performer"
+ },
+ {
+ "identity": "v2",
+ "map": "PRT-5 : ( PRV-4 = (provider participations)); PRT-5 : ( PRV-4 = (non-provider person participations )) ; PRT-5 : ( PRV-4 = (patient non-subject of care) ) ; PRT-8"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=PFM]"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.id",
+ "path": "CarePlan.activity.detail.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.extension",
+ "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": "CarePlan.activity.detail.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.reference",
+ "path": "CarePlan.activity.detail.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.type",
+ "path": "CarePlan.activity.detail.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.identifier",
+ "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": "CarePlan.activity.detail.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.product[x]",
+ "path": "CarePlan.activity.detail.product[x]",
+ "short": "What is to be administered/supplied",
+ "definition": "Identifies the food, drug or other product to be consumed or supplied in the activity.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.product[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Medication",
+ "http://hl7.org/fhir/StructureDefinition/Substance"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "CarePlanProduct"
+ }
+ ],
+ "strength": "example",
+ "description": "A product supplied or administered as part of a care plan activity.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "RXE-2 / RXO-1 / RXD-2"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=PRD].role"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.dailyAmount",
+ "path": "CarePlan.activity.detail.dailyAmount",
+ "short": "How to consume/day?",
+ "definition": "Identifies the quantity expected to be consumed in a given day.",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "requirements": "Allows rough dose checking.",
+ "alias": [
+ "daily dose"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.dailyAmount",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "RXO-23 / RXE-19 / RXD-12"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP][classCode=SBADM].doseQuantity"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.quantity",
+ "path": "CarePlan.activity.detail.quantity",
+ "short": "How much to administer/supply/consume",
+ "definition": "Identifies the quantity expected to be supplied, administered or consumed by the subject.",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.activity.detail.quantity",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "RXO-11 / RXE-10 / RXD-4 / RXG-5 / RXA-6 / TQ1-2.1 *and* RXO-12 / RXE-11 / RXD-5 / RXG-7 / RXA-7 / TQ1-2.2"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP][classCode=SPLY].quantity"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.description",
+ "path": "CarePlan.activity.detail.description",
+ "short": "Extra info describing activity to perform",
+ "definition": "This provides a textual description of constraints on the intended activity occurrence, including relation to other activities. It may also include objectives, pre-conditions and end-conditions. Finally, it may convey specifics about the activity such as body site, method, route, etc.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CarePlan.activity.detail.description",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE?"
+ },
+ {
+ "identity": "rim",
+ "map": ".text"
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.note",
+ "path": "CarePlan.note",
+ "short": "Comments about the plan",
+ "definition": "General notes about the care plan not covered elsewhere.",
+ "comment": "For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. *Annotations SHOULD NOT* be used to communicate \"modifying\" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).",
+ "requirements": "Used to capture information that applies to the plan as a whole that doesn't fit into discrete elements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "CarePlan.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Request.note"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE?"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "CarePlan",
+ "path": "CarePlan",
+ "short": "Self-care plan for patient"
+ },
+ {
+ "id": "CarePlan.meta.profile",
+ "path": "CarePlan.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.meta.profile:fiphrProfile",
+ "path": "CarePlan.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4"
+ },
+ {
+ "id": "CarePlan.language",
+ "path": "CarePlan.language",
+ "min": 1,
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language."
+ }
+ },
+ {
+ "id": "CarePlan.text",
+ "path": "CarePlan.text",
+ "definition": "Narrative contains clinically relevant information of the resource in a human-readable format. The following fields are used: CarePlan.title, CarePlan.status, CarePlan.period, CarePlan.category, CarePlan.goal, CarePlan.description. If available, a text representation of SelfCareGoal resource is included in the narrative.",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.contained",
+ "path": "CarePlan.contained",
+ "max": "0",
+ "type": [
+ {
+ "code": "Resource",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-r4"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.extension",
+ "path": "CarePlan.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "CarePlan.extension:creatingApplication",
+ "path": "CarePlan.extension",
+ "sliceName": "creatingApplication",
+ "short": "Additional Content defined by implementations",
+ "max": "1",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.identifier",
+ "path": "CarePlan.identifier",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.identifier.use",
+ "path": "CarePlan.identifier.use",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."
+ },
+ {
+ "id": "CarePlan.identifier.system",
+ "path": "CarePlan.identifier.system",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.identifier.value",
+ "path": "CarePlan.identifier.value",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.identifier.assigner",
+ "path": "CarePlan.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.instantiatesCanonical",
+ "path": "CarePlan.instantiatesCanonical",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.instantiatesUri",
+ "path": "CarePlan.instantiatesUri",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.basedOn",
+ "path": "CarePlan.basedOn",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.replaces",
+ "path": "CarePlan.replaces",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.partOf",
+ "path": "CarePlan.partOf",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.status",
+ "path": "CarePlan.status",
+ "short": "In Finnish PHR completed is the only accepted value.",
+ "fixedCode": "completed"
+ },
+ {
+ "id": "CarePlan.intent",
+ "path": "CarePlan.intent",
+ "fixedCode": "plan"
+ },
+ {
+ "id": "CarePlan.category",
+ "path": "CarePlan.category",
+ "min": 1,
+ "max": "1",
+ "binding": {
+ "strength": "extensible",
+ "description": "Identifies what \"kind\" of self-care plan this is to support differentiation between multiple co-existing plans.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-careplancategory"
+ }
+ },
+ {
+ "id": "CarePlan.category.coding",
+ "path": "CarePlan.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding",
+ "path": "CarePlan.category.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.system",
+ "path": "CarePlan.category.coding.system",
+ "min": 1,
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory"
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.code",
+ "path": "CarePlan.category.coding.code",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.category.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.category.coding.display",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.title",
+ "path": "CarePlan.title",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.description",
+ "path": "CarePlan.description",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.subject",
+ "path": "CarePlan.subject",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.subject.reference",
+ "path": "CarePlan.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.subject.identifier.assigner",
+ "path": "CarePlan.subject.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.encounter",
+ "path": "CarePlan.encounter",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.author",
+ "path": "CarePlan.author",
+ "min": 1,
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.author.reference",
+ "path": "CarePlan.author.reference",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.author.identifier.assigner",
+ "path": "CarePlan.author.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.contributor",
+ "path": "CarePlan.contributor",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.careTeam",
+ "path": "CarePlan.careTeam",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.addresses",
+ "path": "CarePlan.addresses",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.supportingInfo",
+ "path": "CarePlan.supportingInfo",
+ "definition": "Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include co-morbidities, recent procedures, limitations, recent assessments, etc. Links also symptom check questionnaire responses to the careplan",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.supportingInfo.reference",
+ "path": "CarePlan.supportingInfo.reference",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.supportingInfo.identifier.assigner",
+ "path": "CarePlan.supportingInfo.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.goal",
+ "path": "CarePlan.goal",
+ "max": "0",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcaregoal-r4"
+ ],
+ "aggregation": [
+ "contained"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.goal.reference",
+ "path": "CarePlan.goal.reference",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity",
+ "path": "CarePlan.activity",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail",
+ "path": "CarePlan.activity.detail",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.kind",
+ "path": "CarePlan.activity.detail.kind",
+ "definition": "High-level categorization of the type of activity in a self-care plan."
+ },
+ {
+ "id": "CarePlan.activity.detail.code",
+ "path": "CarePlan.activity.detail.code",
+ "binding": {
+ "strength": "required",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-activitycode"
+ }
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding",
+ "path": "CarePlan.activity.detail.code.coding",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.system",
+ "path": "CarePlan.activity.detail.code.coding.system",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.version",
+ "path": "CarePlan.activity.detail.code.coding.version",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.code",
+ "path": "CarePlan.activity.detail.code.coding.code",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.code.coding.userSelected",
+ "path": "CarePlan.activity.detail.code.coding.userSelected",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.code.text",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode",
+ "path": "CarePlan.activity.detail.reasonCode",
+ "binding": {
+ "strength": "required",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-reminderid"
+ }
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding",
+ "path": "CarePlan.activity.detail.reasonCode.coding",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.system",
+ "path": "CarePlan.activity.detail.reasonCode.coding.system",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.version",
+ "path": "CarePlan.activity.detail.reasonCode.coding.version",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.code",
+ "path": "CarePlan.activity.detail.reasonCode.coding.code",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.reasonCode.coding.display",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.coding.userSelected",
+ "path": "CarePlan.activity.detail.reasonCode.coding.userSelected",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonCode.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.reasonCode.text",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.reasonReference",
+ "path": "CarePlan.activity.detail.reasonReference",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.goal",
+ "path": "CarePlan.activity.detail.goal",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.status",
+ "path": "CarePlan.activity.detail.status",
+ "short": "not-started | in-progress | completed | cancelled"
+ },
+ {
+ "id": "CarePlan.activity.detail.statusReason",
+ "path": "CarePlan.activity.detail.statusReason",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.performer",
+ "path": "CarePlan.activity.detail.performer",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.reference",
+ "path": "CarePlan.activity.detail.performer.reference",
+ "min": 1
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.type",
+ "path": "CarePlan.activity.detail.performer.type",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.identifier",
+ "path": "CarePlan.activity.detail.performer.identifier",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "CarePlan.activity.detail.performer.display",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.product[x]",
+ "path": "CarePlan.activity.detail.product[x]",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.dailyAmount",
+ "path": "CarePlan.activity.detail.dailyAmount",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.activity.detail.quantity",
+ "path": "CarePlan.activity.detail.quantity",
+ "max": "0"
+ },
+ {
+ "id": "CarePlan.note",
+ "path": "CarePlan.note",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDExerciseTracking.json b/input/examples/FIPHRSDExerciseTracking.json
new file mode 100644
index 0000000..c0a8d62
--- /dev/null
+++ b/input/examples/FIPHRSDExerciseTracking.json
@@ -0,0 +1,23367 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-exercisetracking",
+ "meta": {
+ "versionId": "3",
+ "lastUpdated": "2021-02-22T09:29:47.777+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-exercisetracking",
+ "version": "0.1.0",
+ "name": "FIPHRSDExerciseTracking",
+ "title": "Finnish PHR Exercise Tracking profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:29:45.7868867+00:00",
+ "publisher": "DigitalWells",
+ "purpose": "Finnish PHR profile for exercise tracking in terms of exercise activity, exercise duration, exercise intensity and calories burned. The profile is based on the Finnish PHR Fitness profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Measurements and simple assertions",
+ "definition": "Measurements and simple assertions made about a patient, device or other subject.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-exercisetracking",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "fitness",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "55409-7",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 1,
+ "max": "4",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity",
+ "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": "Observation.component",
+ "sliceName": "exercise-activity",
+ "short": "FinnishPHR: Exercise activity",
+ "definition": "FinnishPHR: Exercise activity from the UKK Institute's Liikuntalajinimikkeistö.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-activity",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "73985-4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseactivity"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding",
+ "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": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity",
+ "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": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-exercise-activity",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.id",
+ "path": "Observation.component.value[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.extension",
+ "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": "Observation.component.value[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.system",
+ "path": "Observation.component.value[x].coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "urn:oid:1.2.246.537.6.301",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.version",
+ "path": "Observation.component.value[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.code",
+ "path": "Observation.component.value[x].coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.userSelected",
+ "path": "Observation.component.value[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-activity.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration",
+ "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": "Observation.component",
+ "sliceName": "exercise-duration",
+ "short": "FinnishPHR: Exercise duration",
+ "definition": "FinnishPHR: Exercise duration in minutes.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-duration",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "55411-3",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity",
+ "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": "Observation.component",
+ "sliceName": "exercise-intensity",
+ "short": "FinnishPHR: Exercise intensity",
+ "definition": "FinnishPHR: Exercise intensity as light (1.1-2.9 MET), moderate (3.0-5.9 MET) or vigorous (6.0- MET).",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-intensity",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "74008-4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying exercise intensities.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseintensity"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding",
+ "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": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity",
+ "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": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-exercise-intensity",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.id",
+ "path": "Observation.component.value[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.extension",
+ "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": "Observation.component.value[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.system",
+ "path": "Observation.component.value[x].coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.version",
+ "path": "Observation.component.value[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.code",
+ "path": "Observation.component.value[x].coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.userSelected",
+ "path": "Observation.component.value[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-intensity.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned",
+ "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": "Observation.component",
+ "sliceName": "calories-burned",
+ "short": "FinnishPHR: Calories burned",
+ "definition": "FinnishPHR: Calories burned in kilocalories.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding",
+ "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": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned",
+ "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": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-calories-burned",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "55421-2",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].id",
+ "path": "Observation.component.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].extension",
+ "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": "Observation.component.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].comparator",
+ "path": "Observation.component.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "kcal",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "kcal",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-exercisetracking"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "path": "Observation.category.coding",
+ "sliceName": "fiphrCategory"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "path": "Observation.category.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ }
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "55409-7"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "max": "0"
+ },
+ {
+ "id": "Observation.interpretation",
+ "path": "Observation.interpretation",
+ "max": "0"
+ },
+ {
+ "id": "Observation.referenceRange",
+ "path": "Observation.referenceRange",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code.coding.code"
+ }
+ ],
+ "rules": "closed"
+ },
+ "min": 1,
+ "max": "4"
+ },
+ {
+ "id": "Observation.component:exercise-activity",
+ "path": "Observation.component",
+ "sliceName": "exercise-activity",
+ "short": "FinnishPHR: Exercise activity",
+ "definition": "FinnishPHR: Exercise activity from the UKK Institute's Liikuntalajinimikkeistö.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-activity.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-activity",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-activity.code.coding:fiphrCode-exercise-activity.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "73985-4"
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseactivity"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding",
+ "path": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity",
+ "path": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-exercise-activity",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.system",
+ "path": "Observation.component.value[x].coding.system",
+ "min": 1,
+ "fixedUri": "urn:oid:1.2.246.537.6.301"
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.code",
+ "path": "Observation.component.value[x].coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-activity.value[x].coding:fiphrValue-exercise-activity.display",
+ "path": "Observation.component.value[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-activity.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-activity.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-duration",
+ "path": "Observation.component",
+ "sliceName": "exercise-duration",
+ "short": "FinnishPHR: Exercise duration",
+ "definition": "FinnishPHR: Exercise duration in minutes.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-duration.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-duration",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:exercise-duration.code.coding:fiphrCode-exercise-duration.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "55411-3"
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "min"
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:exercise-duration.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "min"
+ },
+ {
+ "id": "Observation.component:exercise-duration.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-duration.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-intensity",
+ "path": "Observation.component",
+ "sliceName": "exercise-intensity",
+ "short": "FinnishPHR: Exercise intensity",
+ "definition": "FinnishPHR: Exercise intensity as light (1.1-2.9 MET), moderate (3.0-5.9 MET) or vigorous (6.0- MET).",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-exercise-intensity",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.code.coding:fiphrCode-exercise-intensity.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "74008-4"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying exercise intensities.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseintensity"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding",
+ "path": "Observation.component.value[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity",
+ "path": "Observation.component.value[x].coding",
+ "sliceName": "fiphrValue-exercise-intensity",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.system",
+ "path": "Observation.component.value[x].coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.code",
+ "path": "Observation.component.value[x].coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-intensity.value[x].coding:fiphrValue-exercise-intensity.display",
+ "path": "Observation.component.value[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:exercise-intensity.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:exercise-intensity.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:calories-burned",
+ "path": "Observation.component",
+ "sliceName": "calories-burned",
+ "short": "FinnishPHR: Calories burned",
+ "definition": "FinnishPHR: Calories burned in kilocalories.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:calories-burned.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking"
+ }
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding",
+ "path": "Observation.component.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned",
+ "path": "Observation.component.code.coding",
+ "sliceName": "fiphrCode-calories-burned",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.system",
+ "path": "Observation.component.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.component:calories-burned.code.coding:fiphrCode-calories-burned.code",
+ "path": "Observation.component.code.coding.code",
+ "fixedCode": "55421-2"
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x]",
+ "path": "Observation.component.value[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].value",
+ "path": "Observation.component.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].unit",
+ "path": "Observation.component.value[x].unit",
+ "min": 1,
+ "fixedString": "kcal"
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].system",
+ "path": "Observation.component.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.component:calories-burned.value[x].code",
+ "path": "Observation.component.value[x].code",
+ "min": 1,
+ "fixedCode": "kcal"
+ },
+ {
+ "id": "Observation.component:calories-burned.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.component:calories-burned.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "max": "1"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDFitness.json b/input/examples/FIPHRSDFitness.json
new file mode 100644
index 0000000..1b67a07
--- /dev/null
+++ b/input/examples/FIPHRSDFitness.json
@@ -0,0 +1,11276 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-fitness",
+ "meta": {
+ "versionId": "12",
+ "lastUpdated": "2021-02-22T09:32:21.32+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
+ "version": "0.1.0",
+ "name": "FIPHRSDFitness",
+ "title": "Finnish PHR Fitness profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:32:20.1863408+00:00",
+ "description": "Finnish PHR base profile for Fitness Observation resource",
+ "purpose": "Finnish PHR abstract base profile for Observation used in various fitness or wellness measurements provided about a patient. In many cases these measures are complementary or parallel to automatic vital sign measurements related to patient's wellness or fitness. Base profile defines profiled elements used in all fitness observation resources.",
+ "copyright": "W2E",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": true,
+ "type": "Observation",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Measurements and simple assertions",
+ "definition": "Measurements and simple assertions made about a patient, device or other subject.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "fitness",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "comment": "."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "min": 1,
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language."
+ }
+ },
+ {
+ "id": "Observation.text",
+ "path": "Observation.text",
+ "min": 1
+ },
+ {
+ "id": "Observation.extension",
+ "path": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "path": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "path": "Observation.identifier",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "path": "Observation.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.basedOn",
+ "path": "Observation.basedOn",
+ "max": "0"
+ },
+ {
+ "id": "Observation.partOf",
+ "path": "Observation.partOf",
+ "max": "0"
+ },
+ {
+ "id": "Observation.status",
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "fixedCode": "final"
+ },
+ {
+ "id": "Observation.category",
+ "path": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ }
+ },
+ {
+ "id": "Observation.category.coding",
+ "path": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "min": 1
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "path": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "min": 1,
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "min": 1,
+ "fixedCode": "fitness"
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "comment": "Describes type of observation.",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ }
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "definition": "A symbol in syntax defined by the system.",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.subject",
+ "path": "Observation.subject",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "path": "Observation.subject.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.focus",
+ "path": "Observation.focus",
+ "max": "0"
+ },
+ {
+ "id": "Observation.encounter",
+ "path": "Observation.encounter",
+ "max": "0"
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer",
+ "path": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "min": 1,
+ "max": "1",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "path": "Observation.performer.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "path": "Observation.dataAbsentReason",
+ "max": "0"
+ },
+ {
+ "id": "Observation.interpretation",
+ "path": "Observation.interpretation",
+ "max": "1"
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "path": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "path": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "path": "Observation.interpretation.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "path": "Observation.note.author[x]",
+ "max": "0",
+ "type": [
+ {
+ "code": "Reference",
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "path": "Observation.bodySite",
+ "max": "0"
+ },
+ {
+ "id": "Observation.method",
+ "path": "Observation.method",
+ "max": "0"
+ },
+ {
+ "id": "Observation.specimen",
+ "path": "Observation.specimen",
+ "max": "0"
+ },
+ {
+ "id": "Observation.device",
+ "path": "Observation.device",
+ "max": "0"
+ },
+ {
+ "id": "Observation.hasMember",
+ "path": "Observation.hasMember",
+ "max": "1",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "path": "Observation.hasMember.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "path": "Observation.derivedFrom",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "comment": "Profiled further in derived profiles that use components."
+ },
+ {
+ "id": "Observation.component.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ }
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "path": "Observation.component.code.coding",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "path": "Observation.component.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "path": "Observation.component.interpretation",
+ "max": "1"
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system."
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "path": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "path": "Observation.component.interpretation.coding.display",
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDInsulinDosageR4.json b/input/examples/FIPHRSDInsulinDosageR4.json
new file mode 100644
index 0000000..fd0184f
--- /dev/null
+++ b/input/examples/FIPHRSDInsulinDosageR4.json
@@ -0,0 +1,7135 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-insulindosing-r4",
+ "meta": {
+ "versionId": "10",
+ "lastUpdated": "2020-10-16T05:07:12.801+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-insulindosing-r4",
+ "version": "0.1.0",
+ "name": "FIPHRSDInsulinDosageR4",
+ "title": "Finnish PHR Insulin Dosing Profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2020-10-16T05:07:11.0526852+00:00",
+ "description": "Finnish PHR profile for Insulin Dosing",
+ "purpose": "Finnish PHR profile for the administered insulin doses of a patient.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "MedicationAdministration",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "MedicationAdministration",
+ "path": "MedicationAdministration",
+ "short": "Administration of medication to a patient",
+ "definition": "Finnish PHR profile describing the event of a patient consuming or otherwise being administered a medication.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "MedicationAdministration",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "rim",
+ "map": "SubstanceAdministration"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.id",
+ "path": "MedicationAdministration.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "MedicationAdministration.meta",
+ "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": "MedicationAdministration.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.id",
+ "path": "MedicationAdministration.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.extension",
+ "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": "MedicationAdministration.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.versionId",
+ "path": "MedicationAdministration.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.lastUpdated",
+ "path": "MedicationAdministration.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.source",
+ "path": "MedicationAdministration.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.profile",
+ "path": "MedicationAdministration.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.profile:fiphrProfile",
+ "path": "MedicationAdministration.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-insulindosing-r4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.meta.security",
+ "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": "MedicationAdministration.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "MedicationAdministration.meta.tag",
+ "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": "MedicationAdministration.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "MedicationAdministration.implicitRules",
+ "path": "MedicationAdministration.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.language",
+ "path": "MedicationAdministration.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "FinnishPHR: codes from the code system urn:ietf:bcp:47",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
+ "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Language"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.text",
+ "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": "MedicationAdministration.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.contained",
+ "path": "MedicationAdministration.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.extension",
+ "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": "MedicationAdministration.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.extension:creatingApplication",
+ "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": "MedicationAdministration.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.modifierExtension",
+ "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": "MedicationAdministration.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier",
+ "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": "MedicationAdministration.identifier",
+ "short": "Business Identifier for the resource",
+ "definition": "A unique identifier assigned to the resource. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is a business identifier, not a resource identifier.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "MedicationAdministration.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".id"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.id",
+ "path": "MedicationAdministration.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.extension",
+ "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": "MedicationAdministration.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.use",
+ "path": "MedicationAdministration.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.type",
+ "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": "MedicationAdministration.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.system",
+ "path": "MedicationAdministration.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.value",
+ "path": "MedicationAdministration.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.period",
+ "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": "MedicationAdministration.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier.assigner",
+ "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": "MedicationAdministration.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.instantiates",
+ "path": "MedicationAdministration.instantiates",
+ "short": "Instantiates protocol or definition",
+ "definition": "A protocol, guideline, orderset, or other definition that was adhered to in whole or in part by this event.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.instantiates",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.instantiates"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target[classCode=unspecified]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.partOf",
+ "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": "MedicationAdministration.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular event is a component or step.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/Procedure"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP]/target[classCode=SBADM or PROC,moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.status",
+ "path": "MedicationAdministration.status",
+ "short": "To show that the administration has been completed.",
+ "definition": "Will be set to show that the administration has been completed.",
+ "comment": "FInnishPHR: Fixed value 'completed'. Only administrations that have been completed are supported in this profile.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "completed",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "A set of codes indicating the current status of a MedicationAdministration.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-20-Completion Status"
+ },
+ {
+ "identity": "rim",
+ "map": ".statusCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.statusReason",
+ "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": "MedicationAdministration.statusReason",
+ "short": "Reason administration not performed",
+ "definition": "A code indicating why the administration was not performed.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.statusReason",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationNegationReason"
+ }
+ ],
+ "strength": "example",
+ "description": "A set of codes indicating the reason why the MedicationAdministration is negated.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-not-given-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.statusReason"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-9-Administration Notes / RXA-18 Substance/Treatment Refusal Reason"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason not given\"].value"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.category",
+ "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": "MedicationAdministration.category",
+ "short": "Type of medication usage",
+ "definition": "Indicates where the medication is expected to be consumed or administered.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.category",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationCategory"
+ }
+ ],
+ "strength": "preferred",
+ "description": "A coded concept describing where the medication administered is expected to occur.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/medication-admin-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[classCode=OBS, moodCode=EVN, code=\"type of medication usage\"].value"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]",
+ "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": "MedicationAdministration.medication[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "What was administered",
+ "definition": "Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.",
+ "comment": "If only a code is specified, then it needs to be a code for a specific product. If more information is required, then the use of the medication resource is recommended. For example, if you require form or lot number, then you must reference the Medication resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.medication[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Medication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationCode"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying substance or product that can be administered.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/medication-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-5-Administered Code"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=CSM].role[classCode=ADMM]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept",
+ "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": "MedicationAdministration.medication[x]",
+ "sliceName": "medicationCodeableConcept",
+ "short": "Finnish PHR: Identifies the medication that was administered",
+ "definition": "FinnishPHR: Identifies the medication that was administered (code and/or name). The coding of the medication SHALL be either (or both) the VNR code of the medication or a specific code indicating whether the administered insulin was intermediate or fast acting.",
+ "comment": "Finnish PHR: When the medication can be uniquely identified, the VNR code of the medication SHALL be given, and the brand name of the medication SHALL be given which SHALL match the name in the pharmaceutical database. A code indicating whether the administrated insulin was intermediate or fast acting may be given as well, and SHALL be given if a VNR code is unavailable.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.medication[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationCode"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying substance or product administered.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-insulincode"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-5-Administered Code"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=CSM].role[classCode=ADMM]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.id",
+ "path": "MedicationAdministration.medication[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.extension",
+ "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": "MedicationAdministration.medication[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding",
+ "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": "MedicationAdministration.medication[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "In Finnish PHR either VNRCode or insulinCode SHALL be used. Other codes are optional.",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode",
+ "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": "MedicationAdministration.medication[x].coding",
+ "sliceName": "VNRCode",
+ "short": "Finnish PHR: VNR code of the medication",
+ "definition": "Finnish PHR: VNR code of the medication",
+ "comment": "Finnish PHR: When the medication can be uniquely identified, the VNR code of the medication SHALL be given as well as the brand name of the medication which SHALL match the name in the pharmaceutical database.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.id",
+ "path": "MedicationAdministration.medication[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.extension",
+ "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": "MedicationAdministration.medication[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.system",
+ "path": "MedicationAdministration.medication[x].coding.system",
+ "short": "Finnish PHR: VNR code system",
+ "definition": "Finnish PHR: VNR code system",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "urn:oid:1.2.246.537.6.55",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.version",
+ "path": "MedicationAdministration.medication[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.code",
+ "path": "MedicationAdministration.medication[x].coding.code",
+ "short": "Finnish PHR: VNR code defined by VNR code system",
+ "definition": "Finnish PHR: VNR code defined by VNR code system",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.medication[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.userSelected",
+ "path": "MedicationAdministration.medication[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode",
+ "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": "MedicationAdministration.medication[x].coding",
+ "sliceName": "insulinCode",
+ "short": "Finnish PHR: A code indicating the type of insulin",
+ "definition": "Finnish PHR: A code indicating whether the administered insulin was intermediate/long or fast acting.",
+ "comment": "Finnish PHR: A code indicating whether the administered insulin was intermediate or fast acting may be given in addition to a VNR code, and SHALL be given if a VNR code is unavailable.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.id",
+ "path": "MedicationAdministration.medication[x].coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.extension",
+ "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": "MedicationAdministration.medication[x].coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.system",
+ "path": "MedicationAdministration.medication[x].coding.system",
+ "short": "Finnish PHR: Code system for insulin codes",
+ "definition": "Finnish PHR: Code system for insulin codes",
+ "comment": ".",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.version",
+ "path": "MedicationAdministration.medication[x].coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.code",
+ "path": "MedicationAdministration.medication[x].coding.code",
+ "short": "Finnish PHR: A code of the medication",
+ "definition": "Finnish PHR: A code of the medication, indicating whether the administered insulin was intermediate/long or fast acting.",
+ "comment": ".",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.medication[x].coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.userSelected",
+ "path": "MedicationAdministration.medication[x].coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.medication[x].text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject",
+ "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": "MedicationAdministration.subject",
+ "short": "Who received medication",
+ "definition": "The person or animal or group receiving the medication.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.subject",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3-Patient ID List"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=SBJ].role[classCode=PAT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.id",
+ "path": "MedicationAdministration.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.extension",
+ "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": "MedicationAdministration.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.reference",
+ "path": "MedicationAdministration.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.type",
+ "path": "MedicationAdministration.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.identifier",
+ "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": "MedicationAdministration.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.context",
+ "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": "MedicationAdministration.context",
+ "short": "Encounter or Episode of Care administered as part of",
+ "definition": "The visit, admission, or other contact between patient and health care provider during which the medication administration was performed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.context",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter",
+ "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1-19-Visit Number"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN, code=\"type of encounter or episode\"]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.supportingInformation",
+ "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": "MedicationAdministration.supportingInformation",
+ "short": "Additional information to support administration",
+ "definition": "Additional information (for example, patient height and weight) that supports the administration of the medication.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.supportingInformation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=PERT].target[A_SupportingClinicalStatement CMET minimal with many different choices of classCodes(ORG, ENC, PROC, SPLY, SBADM, OBS) and each of the act class codes draws from one or more of the following moodCodes (EVN, DEF, INT PRMS, RQO, PRP, APT, ARQ, GOL)]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.effective[x]",
+ "path": "MedicationAdministration.effective[x]",
+ "short": "Finnish PHR: Time of administration",
+ "definition": "Finnish PHR: A specific time during which the administration took place. \r\nBoluses: use effectiveDateTime (and dosage.dose.value with no rate)\r\nExtended boluses: use effectivePeriod (and dosage.dose.value with no rate)\r\nBasal insulin records: use effectivePeriod (and dosage.rate to describe the amount of iU/hour being dosed as basal insulin)",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.effective[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-3-Date/Time Start of Administration / RXA-4-Date/Time End of Administration"
+ },
+ {
+ "identity": "rim",
+ "map": ".effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer",
+ "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": "MedicationAdministration.performer",
+ "short": "Who performed the medication administration and what they did",
+ "definition": "Indicates who or what performed the medication administration and how they were involved.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "MedicationAdministration.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-10-Administering Provider / PRT-5-Participation Person: PRT-4-Participation='AP' (RXA-10 is deprecated)"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.id",
+ "path": "MedicationAdministration.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.extension",
+ "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": "MedicationAdministration.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.modifierExtension",
+ "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": "MedicationAdministration.performer.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.function",
+ "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": "MedicationAdministration.performer.function",
+ "short": "Type of performance",
+ "definition": "Distinguishes the type of involvement of the performer in the medication administration.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.performer.function",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationPerformerFunction"
+ }
+ ],
+ "strength": "example",
+ "description": "A code describing the role an individual played in administering the medication.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/med-admin-perform-function"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.function"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF].functionCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor",
+ "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": "MedicationAdministration.performer.actor",
+ "short": "Who performed the medication administration",
+ "definition": "Indicates who or what performed the medication administration.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.performer.actor",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "rim",
+ "map": ".role"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.id",
+ "path": "MedicationAdministration.performer.actor.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.extension",
+ "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": "MedicationAdministration.performer.actor.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.reference",
+ "path": "MedicationAdministration.performer.actor.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.type",
+ "path": "MedicationAdministration.performer.actor.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.identifier",
+ "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": "MedicationAdministration.performer.actor.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.performer.actor.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.reasonCode",
+ "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": "MedicationAdministration.reasonCode",
+ "short": "Reason administration performed",
+ "definition": "A code indicating why the medication was given.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.reasonCode",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationReason"
+ }
+ ],
+ "strength": "example",
+ "description": "A set of codes indicating the reason why the MedicationAdministration was made.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/reason-medication-given-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.reasonCode"
+ },
+ {
+ "identity": "v2",
+ "map": "RXE-27 Give Indication"
+ },
+ {
+ "identity": "rim",
+ "map": ".reasonCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.reasonReference",
+ "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": "MedicationAdministration.reasonReference",
+ "short": "Condition or observation that supports why the medication was administered",
+ "definition": "Condition or observation that supports why the medication was administered.",
+ "comment": "This is a reference to a condition that is the reason for the medication request. If only a code exists, use reasonCode.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.reasonReference",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Condition",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.reasonReference"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.why[x]"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=RSON]/target[classCode=OBS,moodCode=EVN, code=\"reason for use ASSERTION\"].value"
+ },
+ {
+ "identity": "w3c.prov",
+ "map": "no mapping"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.request",
+ "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": "MedicationAdministration.request",
+ "short": "Request administration performed against",
+ "definition": "The original request, instruction or authority to perform the administration.",
+ "comment": "This is a reference to the MedicationRequest where the intent is either order or instance-order. It should not reference MedicationRequests where the intent is any other value.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.request",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC-2-Placer Order Number / ORC-3-Filler Order Number"
+ },
+ {
+ "identity": "rim",
+ "map": "InFullfillmentOf->SubstanceAdministration"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.device",
+ "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": "MedicationAdministration.device",
+ "short": "Device used to administer",
+ "definition": "The device used in administering the medication to the patient. For example, a particular infusion pump.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.device",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "PRT-10 Participation Device / RXR-3 Administrative Device"
+ },
+ {
+ "identity": "rim",
+ "map": "device->Access OR device->AssignedDevice"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note",
+ "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": "MedicationAdministration.note",
+ "short": "Information about the administration",
+ "definition": "Extra information about the medication administration that is not conveyed by the other attributes.",
+ "comment": "For systems that do not have structured annotations, they can simply communicate a single annotation with no author or time. This element may need to be included in narrative because of the potential for modifying information. *Annotations SHOULD NOT* be used to communicate \"modifying\" information that could be computable. (This is a SHOULD because enforcing user behavior is nearly impossible).",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "MedicationAdministration.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.note"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=SUBJ]/source[classCode=OBS,moodCode=EVN,code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note.id",
+ "path": "MedicationAdministration.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note.extension",
+ "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": "MedicationAdministration.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note.author[x]",
+ "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": "MedicationAdministration.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note.time",
+ "path": "MedicationAdministration.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.note.text",
+ "path": "MedicationAdministration.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage",
+ "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": "MedicationAdministration.dosage",
+ "short": "Details of how medication was taken",
+ "definition": "Describes the medication dosage information details e.g. dose, rate, site, route, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "mad-1",
+ "severity": "error",
+ "human": "SHALL have at least one of dosage.dose or dosage.rate[x]",
+ "expression": "dose.exists() or rate.exists()",
+ "xpath": "exists(f:dose) or exists(f:*[starts-with(local-name(.), 'rate')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "component->SubstanceAdministrationEvent"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.id",
+ "path": "MedicationAdministration.dosage.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.extension",
+ "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": "MedicationAdministration.dosage.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.modifierExtension",
+ "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": "MedicationAdministration.dosage.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.text",
+ "path": "MedicationAdministration.dosage.text",
+ "short": "Free text dosage instructions e.g. SIG",
+ "definition": "Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.\r\rThe dosage instructions should reflect the dosage of the medication that was administered.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".text"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site",
+ "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": "MedicationAdministration.dosage.site",
+ "short": "Body site administered to",
+ "definition": "A coded specification of the anatomic site where the medication first entered the body. For example, \"left arm\".",
+ "comment": "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [bodySite](extension-bodysite.html). May be a summary code, or a reference to a very precise definition of the location, or both.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.site",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationSite"
+ }
+ ],
+ "strength": "example",
+ "description": "A coded concept describing the site location the medicine enters into or onto the body.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/approach-site-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "RXR-2 Administration Site / RXR-6 Administration Site Modifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".approachSiteCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.id",
+ "path": "MedicationAdministration.dosage.site.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.extension",
+ "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": "MedicationAdministration.dosage.site.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding",
+ "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": "MedicationAdministration.dosage.site.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding",
+ "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": "MedicationAdministration.dosage.site.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "required",
+ "description": "A value set for the site location the medicine enters into or onto the body (Reference to the national AR/Lääkitys - Lääkkeenantopaikka code system.)",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-dosagesite"
+ },
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.id",
+ "path": "MedicationAdministration.dosage.site.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.extension",
+ "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": "MedicationAdministration.dosage.site.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.system",
+ "path": "MedicationAdministration.dosage.site.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "urn:oid:1.2.246.537.5.163",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.version",
+ "path": "MedicationAdministration.dosage.site.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.code",
+ "path": "MedicationAdministration.dosage.site.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.dosage.site.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.userSelected",
+ "path": "MedicationAdministration.dosage.site.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "MedicationAdministration.dosage.site.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.route",
+ "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": "MedicationAdministration.dosage.route",
+ "short": "Path of substance into body",
+ "definition": "A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. For example, topical, intravenous, etc.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.route",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "RouteOfAdministration"
+ }
+ ],
+ "strength": "example",
+ "description": "A coded concept describing the route or physiological path of administration of a therapeutic agent into or onto the body of a subject.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/route-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "RXR-1-Route"
+ },
+ {
+ "identity": "rim",
+ "map": ".routeCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.method",
+ "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": "MedicationAdministration.dosage.method",
+ "short": "How drug was administered",
+ "definition": "A coded value indicating the method by which the medication is intended to be or was introduced into or on the body. This attribute will most often NOT be populated. It is most commonly used for injections. For example, Slow Push, Deep IV.",
+ "comment": "One of the reasons this attribute is not used often, is that the method is often pre-coordinated with the route and/or form of administration. This means the codes used in route or form may pre-coordinate the method in the route code or the form code. The implementation decision about what coding system to use for route or form code will determine how frequently the method code will be populated e.g. if route or form code pre-coordinate method code, then this attribute will not be populated often; if there is no pre-coordination then method code may be used frequently.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MedicationAdministrationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "A coded concept describing the technique by which the medicine is administered.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/administration-method-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "RXR-4-Administration Method"
+ },
+ {
+ "identity": "rim",
+ "map": ".methodCode"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.dose",
+ "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": "MedicationAdministration.dosage.dose",
+ "short": "Amount of medication per dose",
+ "definition": "The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.",
+ "comment": "If the administration is not instantaneous (rate is present), this can be specified to convey the total amount administered over period of time of a single administration.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.dose",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-6 Administered Amount / RXA-7 Administered Units"
+ },
+ {
+ "identity": "rim",
+ "map": ".doseQuantity"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.rate[x]",
+ "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": "MedicationAdministration.dosage.rate[x]",
+ "short": "Dose quantity per unit of time",
+ "definition": "Identifies the speed with which the medication was or will be introduced into the patient. Typically, the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time, e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.",
+ "comment": "If the rate changes over time, and you want to capture this in MedicationAdministration, then each change should be captured as a distinct MedicationAdministration, with a specific MedicationAdministration.dosage.rate, and the date time when the rate change occurred. Typically, the MedicationAdministration.dosage.rate element is not used to convey an average rate.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "MedicationAdministration.dosage.rate[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "RTO"
+ },
+ {
+ "identity": "v2",
+ "map": "RXA-12-Administered Per (Time Unit)"
+ },
+ {
+ "identity": "rim",
+ "map": ".rateQuantity"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.eventHistory",
+ "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": "MedicationAdministration.eventHistory",
+ "short": "A list of events of interest in the lifecycle",
+ "definition": "A summary of the events of interest that have occurred, such as when the administration was verified.",
+ "comment": "This might not include provenances for all versions of the request – only those deemed “relevant” or important. This SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a “relevant” change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude All Provenances should have some historical version of this Request as their subject.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "MedicationAdministration.eventHistory",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Provenance"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "MedicationAdministration",
+ "path": "MedicationAdministration",
+ "definition": "Finnish PHR profile describing the event of a patient consuming or otherwise being administered a medication."
+ },
+ {
+ "id": "MedicationAdministration.meta",
+ "path": "MedicationAdministration.meta",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.meta.profile",
+ "path": "MedicationAdministration.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.meta.profile:fiphrProfile",
+ "path": "MedicationAdministration.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-insulindosing-r4"
+ },
+ {
+ "id": "MedicationAdministration.language",
+ "path": "MedicationAdministration.language",
+ "definition": "The base language in which the resource is written.",
+ "comment": "FinnishPHR: codes from the code system urn:ietf:bcp:47",
+ "min": 1,
+ "binding": {
+ "strength": "required",
+ "description": "A code of human language."
+ }
+ },
+ {
+ "id": "MedicationAdministration.text",
+ "path": "MedicationAdministration.text",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.extension",
+ "path": "MedicationAdministration.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 0
+ },
+ {
+ "id": "MedicationAdministration.extension:creatingApplication",
+ "path": "MedicationAdministration.extension",
+ "sliceName": "creatingApplication",
+ "min": 0,
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.identifier",
+ "path": "MedicationAdministration.identifier",
+ "short": "Business Identifier for the resource",
+ "definition": "A unique identifier assigned to the resource. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.identifier.use",
+ "path": "MedicationAdministration.identifier.use",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system)."
+ },
+ {
+ "id": "MedicationAdministration.identifier.system",
+ "path": "MedicationAdministration.identifier.system",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.identifier.value",
+ "path": "MedicationAdministration.identifier.value",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.identifier.assigner",
+ "path": "MedicationAdministration.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.instantiates",
+ "path": "MedicationAdministration.instantiates",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.partOf",
+ "path": "MedicationAdministration.partOf",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.status",
+ "path": "MedicationAdministration.status",
+ "short": "To show that the administration has been completed.",
+ "definition": "Will be set to show that the administration has been completed.",
+ "comment": "FInnishPHR: Fixed value 'completed'. Only administrations that have been completed are supported in this profile.",
+ "fixedCode": "completed"
+ },
+ {
+ "id": "MedicationAdministration.statusReason",
+ "path": "MedicationAdministration.statusReason",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.category",
+ "path": "MedicationAdministration.category",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.medication[x]",
+ "path": "MedicationAdministration.medication[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept",
+ "path": "MedicationAdministration.medication[x]",
+ "sliceName": "medicationCodeableConcept",
+ "short": "Finnish PHR: Identifies the medication that was administered",
+ "definition": "FinnishPHR: Identifies the medication that was administered (code and/or name). The coding of the medication SHALL be either (or both) the VNR code of the medication or a specific code indicating whether the administered insulin was intermediate or fast acting.",
+ "comment": "Finnish PHR: When the medication can be uniquely identified, the VNR code of the medication SHALL be given, and the brand name of the medication SHALL be given which SHALL match the name in the pharmaceutical database. A code indicating whether the administrated insulin was intermediate or fast acting may be given as well, and SHALL be given if a VNR code is unavailable.",
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying substance or product administered.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-insulincode"
+ }
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding",
+ "path": "MedicationAdministration.medication[x].coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "In Finnish PHR either VNRCode or insulinCode SHALL be used. Other codes are optional.",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode",
+ "path": "MedicationAdministration.medication[x].coding",
+ "sliceName": "VNRCode",
+ "short": "Finnish PHR: VNR code of the medication",
+ "definition": "Finnish PHR: VNR code of the medication",
+ "comment": "Finnish PHR: When the medication can be uniquely identified, the VNR code of the medication SHALL be given as well as the brand name of the medication which SHALL match the name in the pharmaceutical database.",
+ "max": "1"
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.system",
+ "path": "MedicationAdministration.medication[x].coding.system",
+ "short": "Finnish PHR: VNR code system",
+ "definition": "Finnish PHR: VNR code system",
+ "min": 1,
+ "fixedUri": "urn:oid:1.2.246.537.6.55"
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.code",
+ "path": "MedicationAdministration.medication[x].coding.code",
+ "short": "Finnish PHR: VNR code defined by VNR code system",
+ "definition": "Finnish PHR: VNR code defined by VNR code system",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:VNRCode.display",
+ "path": "MedicationAdministration.medication[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode",
+ "path": "MedicationAdministration.medication[x].coding",
+ "sliceName": "insulinCode",
+ "short": "Finnish PHR: A code indicating the type of insulin",
+ "definition": "Finnish PHR: A code indicating whether the administered insulin was intermediate/long or fast acting.",
+ "comment": "Finnish PHR: A code indicating whether the administered insulin was intermediate or fast acting may be given in addition to a VNR code, and SHALL be given if a VNR code is unavailable.",
+ "max": "1"
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.system",
+ "path": "MedicationAdministration.medication[x].coding.system",
+ "short": "Finnish PHR: Code system for insulin codes",
+ "definition": "Finnish PHR: Code system for insulin codes",
+ "comment": ".",
+ "min": 1,
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode"
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.code",
+ "path": "MedicationAdministration.medication[x].coding.code",
+ "short": "Finnish PHR: A code of the medication",
+ "definition": "Finnish PHR: A code of the medication, indicating whether the administered insulin was intermediate/long or fast acting.",
+ "comment": ".",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.coding:insulinCode.display",
+ "path": "MedicationAdministration.medication[x].coding.display",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.medication[x]:medicationCodeableConcept.text",
+ "path": "MedicationAdministration.medication[x].text",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.subject",
+ "path": "MedicationAdministration.subject",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.subject.reference",
+ "path": "MedicationAdministration.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.context",
+ "path": "MedicationAdministration.context",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.supportingInformation",
+ "path": "MedicationAdministration.supportingInformation",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.effective[x]",
+ "path": "MedicationAdministration.effective[x]",
+ "short": "Finnish PHR: Time of administration",
+ "definition": "Finnish PHR: A specific time during which the administration took place. \r\nBoluses: use effectiveDateTime (and dosage.dose.value with no rate)\r\nExtended boluses: use effectivePeriod (and dosage.dose.value with no rate)\r\nBasal insulin records: use effectivePeriod (and dosage.rate to describe the amount of iU/hour being dosed as basal insulin)"
+ },
+ {
+ "id": "MedicationAdministration.performer.actor",
+ "path": "MedicationAdministration.performer.actor",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.performer.actor.reference",
+ "path": "MedicationAdministration.performer.actor.reference",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.reasonCode",
+ "path": "MedicationAdministration.reasonCode",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.reasonReference",
+ "path": "MedicationAdministration.reasonReference",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.request",
+ "path": "MedicationAdministration.request",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.device",
+ "path": "MedicationAdministration.device",
+ "max": "0"
+ },
+ {
+ "id": "MedicationAdministration.note.author[x]",
+ "path": "MedicationAdministration.note.author[x]",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ]
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding",
+ "path": "MedicationAdministration.dosage.site.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding",
+ "path": "MedicationAdministration.dosage.site.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1,
+ "max": "1",
+ "binding": {
+ "strength": "required",
+ "description": "A value set for the site location the medicine enters into or onto the body (Reference to the national AR/Lääkitys - Lääkkeenantopaikka code system.)",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-dosagesite"
+ }
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.system",
+ "path": "MedicationAdministration.dosage.site.coding.system",
+ "min": 1,
+ "fixedUri": "urn:oid:1.2.246.537.5.163"
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.code",
+ "path": "MedicationAdministration.dosage.site.coding.code",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.dosage.site.coding:fiphrCoding.display",
+ "path": "MedicationAdministration.dosage.site.coding.display",
+ "min": 1
+ },
+ {
+ "id": "MedicationAdministration.eventHistory",
+ "path": "MedicationAdministration.eventHistory",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDMacronutrientIntake.json b/input/examples/FIPHRSDMacronutrientIntake.json
new file mode 100644
index 0000000..a03d97d
--- /dev/null
+++ b/input/examples/FIPHRSDMacronutrientIntake.json
@@ -0,0 +1,9403 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-macronutrientintake",
+ "meta": {
+ "versionId": "3",
+ "lastUpdated": "2021-02-22T10:03:51.071+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake",
+ "version": "0.1.0",
+ "name": "FIPHRSDMacronutrientIntake",
+ "title": "Finnish PHR Macronutrient Intake profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T10:03:49.8131992+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR profile for Macronutrient Intake observation resource",
+ "purpose": "Finnish PHR profile for Observation used for measuring Macronutrient intake. The profile is based on the Finnish PHR Nutrition profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-nutrition",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR profile for Macronutrient Intake observation resource",
+ "definition": "Finnish PHR profile for Observation used for measuring Macronutrient intake. The profile is based on the Finnish PHR Nutrition profile.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "PHR",
+ "severity": "error",
+ "human": "Resource SHALL contain code '9059-7' or '9060-5' or '9066-2' or '9067-0' or '9079-5' or '9080-3'",
+ "expression": "(code.coding.where(code='9059-7').exists()) or (code.coding.where(code='9060-5').exists()) or (code.coding.where(code='9066-2').exists()) or (code.coding.where(code='9067-0').exists()) or (code.coding.where(code='9079-5').exists()) or (code.coding.where(code='9080-3').exists())",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation.\r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA code that classifies the general type of observation being made.",
+ "comment": "FinnishPHR: Only value nutrition valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "Finnish PHR: All resources are related to nutrition.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-observationcategory"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Finnish PHR: Codes for high level observation categories.",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "nutrition",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (code / type)",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nDescribes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.\r\nFinnish PHR: The valueset binding strength in the base profile is set to 'example', because some of the derived profiles use another valueset. In all profiles derived from the base profile, the valueset binding strength SHALL be set to 'required'.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-macronutrients"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "closed"
+ },
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "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": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "g",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "g",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used. The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCode"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR profile for Macronutrient Intake observation resource",
+ "definition": "Finnish PHR profile for Observation used for measuring Macronutrient intake. The profile is based on the Finnish PHR Nutrition profile.",
+ "constraint": [
+ {
+ "key": "PHR",
+ "severity": "error",
+ "human": "Resource SHALL contain code '9059-7' or '9060-5' or '9066-2' or '9067-0' or '9079-5' or '9080-3'",
+ "expression": "(code.coding.where(code='9059-7').exists()) or (code.coding.where(code='9060-5').exists()) or (code.coding.where(code='9066-2').exists()) or (code.coding.where(code='9067-0').exists()) or (code.coding.where(code='9079-5').exists()) or (code.coding.where(code='9080-3').exists())",
+ "source": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake"
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-macronutrients"
+ }
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "closed"
+ }
+ },
+ {
+ "id": "Observation.effective[x]:effectiveDateTime",
+ "path": "Observation.effective[x]",
+ "sliceName": "effectiveDateTime",
+ "min": 1,
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity",
+ "path": "Observation.value[x]",
+ "sliceName": "valueQuantity",
+ "min": 1,
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.value",
+ "path": "Observation.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.unit",
+ "path": "Observation.value[x].unit",
+ "min": 1,
+ "fixedString": "g"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x]:valueQuantity.code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "g"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDModerateToVigorousPATime.json b/input/examples/FIPHRSDModerateToVigorousPATime.json
new file mode 100644
index 0000000..3c337cd
--- /dev/null
+++ b/input/examples/FIPHRSDModerateToVigorousPATime.json
@@ -0,0 +1,12165 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-moderatetovigorouspatime",
+ "meta": {
+ "versionId": "6",
+ "lastUpdated": "2021-02-22T09:30:12.45+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime",
+ "version": "0.1.0",
+ "name": "FIPHRSDModerateToVigorousPATime",
+ "title": "Finnish PHR Moderate to Vigorous PA time profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:30:10.5086509+00:00",
+ "publisher": "W2E",
+ "description": "Finnish PHR profile for measured or patient-reported time spent on moderate to vigorous physical activity over a period. At this time weekly (period) and 24h period (dateTime) is coded. The profile is based on the Finnish PHR Fitness profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Moderate to Vigorous Physical Activity Time profile",
+ "definition": "The PHR Fitness profile for collecting patient's time spent in moderate to vigorous physical activity (MET over 2.9) over the measured period.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "fitness",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes",
+ "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": "Observation.code.coding",
+ "sliceName": "moderateToVigorousWeeklyMinutes",
+ "short": "Observation of minutes with moderate to vigorous PA during a week",
+ "definition": "Measurement of physically active time in minutes, MET >= 3 during a week.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82290-8",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h",
+ "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": "Observation.code.coding",
+ "sliceName": "moderateToVigorousPA24h",
+ "short": "Observation of minutes with moderate to vigorous PA during a 24h period",
+ "definition": "Measurement of physically active time in minutes, MET >= 3 during a 24 hour period.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "82290-8-24h",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "min",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Moderate to Vigorous Physical Activity Time profile",
+ "definition": "The PHR Fitness profile for collecting patient's time spent in moderate to vigorous physical activity (MET over 2.9) over the measured period."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime"
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes",
+ "path": "Observation.code.coding",
+ "sliceName": "moderateToVigorousWeeklyMinutes",
+ "short": "Observation of minutes with moderate to vigorous PA during a week",
+ "definition": "Measurement of physically active time in minutes, MET >= 3 during a week.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousWeeklyMinutes.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "82290-8"
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h",
+ "path": "Observation.code.coding",
+ "sliceName": "moderateToVigorousPA24h",
+ "short": "Observation of minutes with moderate to vigorous PA during a 24h period",
+ "definition": "Measurement of physically active time in minutes, MET >= 3 during a 24 hour period.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa"
+ },
+ {
+ "id": "Observation.code.coding:moderateToVigorousPA24h.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "82290-8-24h"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "path": "Observation.value[x].unit",
+ "min": 1,
+ "fixedString": "min"
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "min"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDNutrition-duplicate-2.json b/input/examples/FIPHRSDNutrition-duplicate-2.json
new file mode 100644
index 0000000..223da31
--- /dev/null
+++ b/input/examples/FIPHRSDNutrition-duplicate-2.json
@@ -0,0 +1,9157 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-nutrition",
+ "meta": {
+ "versionId": "4",
+ "lastUpdated": "2021-02-22T10:03:29.014+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-nutrition",
+ "version": "0.1.0",
+ "name": "FIPHRSDNutrition",
+ "title": "Finnish PHR Nutrition profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T10:03:27.4845343+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR base profile for nutrition Observation resource",
+ "purpose": "Finnish PHR abstract base profile for Observation used in Nutrition measurements made about a patient. Base profile defines profiled elements used in all nutrition observation resources.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": true,
+ "type": "Observation",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR base profile for nutrition Observation resource",
+ "definition": "Finnish PHR abstract base profile for Observation used in nutrition measurements made about a patient. Base profile defines profiled elements used in all nutrition observation resources.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation.\r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA code that classifies the general type of observation being made.",
+ "comment": "FinnishPHR: Only value nutrition valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "Finnish PHR: All resources are related to nutrition.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-observationcategory"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Finnish PHR: Codes for high level observation categories.",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "nutrition",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (code / type)",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nDescribes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.\r\nFinnish PHR: The valueset binding strength in the base profile is set to 'example', because some of the derived profiles use another valueset. In all profiles derived from the base profile, the valueset binding strength SHALL be set to 'required'.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-nutrition"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "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": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used. The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationCode"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-codes"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR base profile for nutrition Observation resource",
+ "definition": "Finnish PHR abstract base profile for Observation used in nutrition measurements made about a patient. Base profile defines profiled elements used in all nutrition observation resources.",
+ "comment": "."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "min": 1,
+ "binding": {
+ "strength": "required"
+ }
+ },
+ {
+ "id": "Observation.text",
+ "path": "Observation.text",
+ "min": 1
+ },
+ {
+ "id": "Observation.extension",
+ "path": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "path": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "path": "Observation.identifier",
+ "definition": "A unique identifier assigned to this observation.\r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "min": 1,
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "path": "Observation.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.basedOn",
+ "path": "Observation.basedOn",
+ "max": "0"
+ },
+ {
+ "id": "Observation.partOf",
+ "path": "Observation.partOf",
+ "max": "0"
+ },
+ {
+ "id": "Observation.status",
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "fixedCode": "final"
+ },
+ {
+ "id": "Observation.category",
+ "path": "Observation.category",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA code that classifies the general type of observation being made.",
+ "comment": "FinnishPHR: Only value nutrition valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "Finnish PHR: All resources are related to nutrition.",
+ "min": 1,
+ "max": "1",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-observationcategory"
+ }
+ },
+ {
+ "id": "Observation.category.coding",
+ "path": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "path": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Finnish PHR: Codes for high level observation categories.",
+ "min": 1,
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory"
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "min": 1,
+ "fixedCode": "nutrition"
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "definition": "FinnishPHR: fiphrCode SHALL be used. Other codes MAY be used.\r\nDescribes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.\r\nFinnish PHR: The valueset binding strength in the base profile is set to 'example', because some of the derived profiles use another valueset. In all profiles derived from the base profile, the valueset binding strength SHALL be set to 'required'.",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-nutrition"
+ }
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode",
+ "path": "Observation.code.coding",
+ "sliceName": "fiphrCode",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.system",
+ "path": "Observation.code.coding.system",
+ "min": 1,
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.code",
+ "path": "Observation.code.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.code.coding:fiphrCode.display",
+ "path": "Observation.code.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.subject",
+ "path": "Observation.subject",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "path": "Observation.subject.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.focus",
+ "path": "Observation.focus",
+ "max": "0"
+ },
+ {
+ "id": "Observation.encounter",
+ "path": "Observation.encounter",
+ "max": "0"
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "min": 1,
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer",
+ "path": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "min": 1,
+ "max": "1",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "path": "Observation.performer.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "path": "Observation.dataAbsentReason",
+ "max": "0"
+ },
+ {
+ "id": "Observation.interpretation",
+ "path": "Observation.interpretation",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used. The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations."
+ }
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "path": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "path": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "path": "Observation.interpretation.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "path": "Observation.note.author[x]",
+ "max": "0"
+ },
+ {
+ "id": "Observation.bodySite",
+ "path": "Observation.bodySite",
+ "max": "0"
+ },
+ {
+ "id": "Observation.method",
+ "path": "Observation.method",
+ "max": "0"
+ },
+ {
+ "id": "Observation.specimen",
+ "path": "Observation.specimen",
+ "max": "0"
+ },
+ {
+ "id": "Observation.device",
+ "path": "Observation.device",
+ "max": "0"
+ },
+ {
+ "id": "Observation.referenceRange",
+ "path": "Observation.referenceRange",
+ "max": "0"
+ },
+ {
+ "id": "Observation.hasMember",
+ "path": "Observation.hasMember",
+ "max": "0"
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "path": "Observation.derivedFrom",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDPatient.json b/input/examples/FIPHRSDPatient.json
new file mode 100644
index 0000000..5ba6797
--- /dev/null
+++ b/input/examples/FIPHRSDPatient.json
@@ -0,0 +1,4126 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-patient",
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient",
+ "version": "0.1",
+ "name": "FIPHRSDPatient",
+ "title": "Finnish PHR Patient profile",
+ "status": "draft",
+ "publisher": "Kela",
+ "description": "The profile for representing a Finnish person",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Patient",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Patient",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Patient",
+ "path": "Patient",
+ "short": "Information about an individual or animal receiving health care services",
+ "definition": "Demographics and other administrative information about an individual or animal receiving care or other health-related services.",
+ "alias": [
+ "SubjectOfCare Client Resident"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Patient",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "Patient[classCode=PAT]"
+ },
+ {
+ "identity": "cda",
+ "map": "ClinicalDocument.recordTarget.patientRole"
+ }
+ ]
+ },
+ {
+ "id": "Patient.id",
+ "path": "Patient.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Patient.meta",
+ "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": "Patient.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.id",
+ "path": "Patient.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.extension",
+ "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": "Patient.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.versionId",
+ "path": "Patient.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.lastUpdated",
+ "path": "Patient.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.source",
+ "path": "Patient.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.profile",
+ "path": "Patient.meta.profile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.meta.security",
+ "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": "Patient.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Patient.meta.tag",
+ "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": "Patient.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Patient.implicitRules",
+ "path": "Patient.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.language",
+ "path": "Patient.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
+ "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Language"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.text",
+ "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": "Patient.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contained",
+ "path": "Patient.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.extension",
+ "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": "Patient.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.extension:creatingApplication",
+ "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": "Patient.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.modifierExtension",
+ "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": "Patient.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier",
+ "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": "Patient.identifier",
+ "short": "An identifier for this patient",
+ "definition": "An identifier for this patient. Pseudonym generated by PHR is used.",
+ "requirements": ".",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Patient.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ },
+ {
+ "identity": "cda",
+ "map": ".id"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.id",
+ "path": "Patient.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.extension",
+ "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": "Patient.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.use",
+ "path": "Patient.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.type",
+ "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": "Patient.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.system",
+ "path": "Patient.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "urn:ietf:rfc:3986",
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.value",
+ "path": "Patient.identifier.value",
+ "short": "UUID",
+ "definition": "UUID pseudonym generated by PHR",
+ "comment": "UUID pseudonym generated by PHR when user PHR account is created.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.period",
+ "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": "Patient.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier.assigner",
+ "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": "Patient.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Patient.active",
+ "path": "Patient.active",
+ "short": "Whether this patient's record is in active use",
+ "definition": "Whether this patient record is in active use. \nMany systems use this property to mark as non-current patients, such as those that have not been seen for a period of time based on an organization's business rules.\n\nIt is often used to filter patient lists to exclude inactive patients\n\nDeceased patients may also be marked as inactive for the same reasons, but may be active for some time after death.",
+ "comment": "If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient.",
+ "requirements": "Need to be able to mark a patient record as not to be used because it was created in error.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.active",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "meaningWhenMissing": "This resource is generally assumed to be active if no value is provided for the active element",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labelled as a modifier because it is a status element that can indicate that a record should not be treated as valid",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "rim",
+ "map": "statusCode"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.name",
+ "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": "Patient.name",
+ "short": "A name associated with the patient",
+ "definition": "A name associated with the individual.",
+ "comment": "A patient may have multiple names with different uses or applicable periods. For animals, the name is a \"HumanName\" in the sense that is assigned and used by humans and has the same patterns.",
+ "requirements": "Need to be able to track the patient by multiple names. Examples are your official name and a partner name.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.name",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "HumanName"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XPN"
+ },
+ {
+ "identity": "rim",
+ "map": "EN (actually, PN)"
+ },
+ {
+ "identity": "servd",
+ "map": "ProviderName"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-5, PID-9"
+ },
+ {
+ "identity": "rim",
+ "map": "name"
+ },
+ {
+ "identity": "cda",
+ "map": ".patient.name"
+ }
+ ]
+ },
+ {
+ "id": "Patient.telecom",
+ "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": "Patient.telecom",
+ "short": "A contact detail for the individual",
+ "definition": "A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted.",
+ "comment": "A Patient may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently and also to help with identification. The address might not go directly to the individual, but may reach another party that is able to proxy for the patient (i.e. home phone, or pet owner's phone).",
+ "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.telecom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "ContactPoint"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "cpt-2",
+ "severity": "error",
+ "human": "A system is required if a value is provided.",
+ "expression": "value.empty() or system.exists()",
+ "xpath": "not(exists(f:value)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XTN"
+ },
+ {
+ "identity": "rim",
+ "map": "TEL"
+ },
+ {
+ "identity": "servd",
+ "map": "ContactPoint"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-13, PID-14, PID-40"
+ },
+ {
+ "identity": "rim",
+ "map": "telecom"
+ },
+ {
+ "identity": "cda",
+ "map": ".telecom"
+ }
+ ]
+ },
+ {
+ "id": "Patient.gender",
+ "path": "Patient.gender",
+ "short": "male | female | other | unknown",
+ "definition": "Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes.",
+ "comment": "The gender might not match the biological sex as determined by genetics or the individual's preferred identification. Note that for both humans and particularly animals, there are other legitimate possibilities than male and female, though the vast majority of systems and contexts only support male and female. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific sex or gender aspect of interest (anatomical, chromosomal, social, etc.) However, because these observations are infrequently recorded, defaulting to the administrative gender is common practice. Where such defaulting occurs, rule enforcement should allow for the variation between administrative and biological, chromosomal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overridable error, not a \"hard\" error. See the Patient Gender and Sex section for additional information about communicating patient gender and sex.",
+ "requirements": "Needed for identification of the individual, in combination with (at least) name and birth date.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.gender",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "AdministrativeGender"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "The gender of a person used for administrative purposes.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-8"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
+ },
+ {
+ "identity": "cda",
+ "map": ".patient.administrativeGenderCode"
+ }
+ ]
+ },
+ {
+ "id": "Patient.birthDate",
+ "path": "Patient.birthDate",
+ "short": "The date of birth for the individual",
+ "definition": "The date of birth for the individual.",
+ "comment": "At least an estimated year should be provided as a guess if the real DOB is unknown There is a standard extension \"patient-birthTime\" available that should be used where Time is required (such as in maternity/infant care systems).",
+ "requirements": "Age of the individual drives many clinical processes.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.birthDate",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "date"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-7"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"
+ },
+ {
+ "identity": "cda",
+ "map": ".patient.birthTime"
+ },
+ {
+ "identity": "loinc",
+ "map": "21112-8"
+ }
+ ]
+ },
+ {
+ "id": "Patient.deceased[x]",
+ "path": "Patient.deceased[x]",
+ "short": "Indicates if the individual is deceased or not",
+ "definition": "Indicates if the individual is deceased or not.",
+ "comment": "If there's no value in the instance, it means there is no statement on whether or not the individual is deceased. Most systems will interpret the absence of a value as a sign of the person being alive.",
+ "requirements": "The fact that a patient is deceased influences the clinical process. Also, in human communication and relation management it is necessary to know whether the person is alive.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.deceased[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because once a patient is marked as deceased, the actions that are appropriate to perform on the patient may be significantly different.",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-30 (bool) and PID-29 (datetime)"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.address",
+ "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": "Patient.address",
+ "short": "An address for the individual",
+ "definition": "An address for the individual.",
+ "comment": "Patient may have multiple addresses with different uses or applicable periods.",
+ "requirements": "May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.address",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Address"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XAD"
+ },
+ {
+ "identity": "rim",
+ "map": "AD"
+ },
+ {
+ "identity": "servd",
+ "map": "Address"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-11"
+ },
+ {
+ "identity": "rim",
+ "map": "addr"
+ },
+ {
+ "identity": "cda",
+ "map": ".addr"
+ }
+ ]
+ },
+ {
+ "id": "Patient.maritalStatus",
+ "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": "Patient.maritalStatus",
+ "short": "Marital (civil) status of a patient",
+ "definition": "This field contains a patient's most recent marital (civil) status.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "Most, if not all systems capture it.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.maritalStatus",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "MaritalStatus"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "The domestic partnership status of a person.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/marital-status"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-16"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN]/maritalStatusCode"
+ },
+ {
+ "identity": "cda",
+ "map": ".patient.maritalStatusCode"
+ }
+ ]
+ },
+ {
+ "id": "Patient.multipleBirth[x]",
+ "path": "Patient.multipleBirth[x]",
+ "short": "Whether patient is part of a multiple birth",
+ "definition": "Indicates whether the patient is part of a multiple (boolean) or indicates the actual birth order (integer).",
+ "comment": "Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in triplets would be valueInteger=2 and the third born would have valueInteger=3 If a boolean value was provided for this triplets example, then all 3 patient records would have valueBoolean=true (the ordering is not indicated).",
+ "requirements": "For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.multipleBirth[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-24 (bool), PID-25 (integer)"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.photo",
+ "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": "Patient.photo",
+ "short": "Image of the patient",
+ "definition": "Image of the patient.",
+ "comment": "Guidelines:\n* Use id photos, not clinical photos.\n* Limit dimensions to thumbnail.\n* Keep byte count low to ease resource updates.",
+ "requirements": "Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.photo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Attachment"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "att-1",
+ "severity": "error",
+ "human": "If the Attachment has data, it SHALL have a contentType",
+ "expression": "data.empty() or contentType.exists()",
+ "xpath": "not(exists(f:data)) or exists(f:contentType)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "ED/RP"
+ },
+ {
+ "identity": "rim",
+ "map": "ED"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-5 - needs a profile"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact",
+ "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"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name",
+ "valueString": "Contact"
+ }
+ ],
+ "path": "Patient.contact",
+ "short": "A contact party (e.g. guardian, partner, friend) for the patient",
+ "definition": "A contact party (e.g. guardian, partner, friend) for the patient.",
+ "comment": "Contact covers all kinds of contact parties: family members, business contacts, guardians, caregivers. Not applicable to register pedigree and family ties beyond use of having contact.",
+ "requirements": "Need to track people you can contact about the patient.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.contact",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "pat-1",
+ "severity": "error",
+ "human": "SHALL at least contain a contact's details or a reference to an organization",
+ "expression": "name.exists() or telecom.exists() or address.exists() or organization.exists()",
+ "xpath": "exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.id",
+ "path": "Patient.contact.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.extension",
+ "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": "Patient.contact.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.modifierExtension",
+ "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": "Patient.contact.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.relationship",
+ "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": "Patient.contact.relationship",
+ "short": "The kind of relationship",
+ "definition": "The nature of the relationship between the patient and the contact person.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "Used to determine which contact person is the most relevant to approach, depending on circumstances.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Patient.contact.relationship",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ContactRelationship"
+ }
+ ],
+ "strength": "extensible",
+ "description": "The nature of the relationship between a patient and a contact person for that patient.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/patient-contactrelationship"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-7, NK1-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.name",
+ "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": "Patient.contact.name",
+ "short": "A name associated with the contact person",
+ "definition": "A name associated with the contact person.",
+ "comment": "Names may be changed, or repudiated, or people may have different names in different contexts. Names may be divided into parts of different type that have variable significance depending on context, though the division into parts does not always matter. With personal names, the different parts might or might not be imbued with some implicit meaning; various cultures associate different importance with the name parts and the degree to which systems must care about name parts around the world varies widely.",
+ "requirements": "Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.contact.name",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "HumanName"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XPN"
+ },
+ {
+ "identity": "rim",
+ "map": "EN (actually, PN)"
+ },
+ {
+ "identity": "servd",
+ "map": "ProviderName"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-2"
+ },
+ {
+ "identity": "rim",
+ "map": "name"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.telecom",
+ "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": "Patient.contact.telecom",
+ "short": "A contact detail for the person",
+ "definition": "A contact detail for the person, e.g. a telephone number or an email address.",
+ "comment": "Contact may have multiple ways to be contacted with different uses or applicable periods. May need to have options for contacting the person urgently, and also to help with identification.",
+ "requirements": "People have (primary) ways to contact them in some way such as phone, email.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Patient.contact.telecom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "ContactPoint"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "cpt-2",
+ "severity": "error",
+ "human": "A system is required if a value is provided.",
+ "expression": "value.empty() or system.exists()",
+ "xpath": "not(exists(f:value)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XTN"
+ },
+ {
+ "identity": "rim",
+ "map": "TEL"
+ },
+ {
+ "identity": "servd",
+ "map": "ContactPoint"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-5, NK1-6, NK1-40"
+ },
+ {
+ "identity": "rim",
+ "map": "telecom"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.address",
+ "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": "Patient.contact.address",
+ "short": "Address for the contact person",
+ "definition": "Address for the contact person.",
+ "comment": "Note: address is intended to describe postal addresses for administrative purposes, not to describe absolute geographical coordinates. Postal addresses are often used as proxies for physical locations (also see the [Location](location.html#) resource).",
+ "requirements": "Need to keep track where the contact person can be contacted per postal mail or visited.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.contact.address",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Address"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "XAD"
+ },
+ {
+ "identity": "rim",
+ "map": "AD"
+ },
+ {
+ "identity": "servd",
+ "map": "Address"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-4"
+ },
+ {
+ "identity": "rim",
+ "map": "addr"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.gender",
+ "path": "Patient.contact.gender",
+ "short": "male | female | other | unknown",
+ "definition": "Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Needed to address the person correctly.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.contact.gender",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "AdministrativeGender"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "The gender of a person used for administrative purposes.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/administrative-gender|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-15"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.organization",
+ "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": "Patient.contact.organization",
+ "short": "Organization that is associated with the contact",
+ "definition": "Organization on behalf of which the contact is acting or for which the contact is working.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "For guardians or business related contacts, the organization is relevant.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.contact.organization",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "pat-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"
+ },
+ {
+ "identity": "rim",
+ "map": "scoper"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.contact.period",
+ "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": "Patient.contact.period",
+ "short": "The period during which this contact person or organization is valid to be contacted relating to this patient",
+ "definition": "The period during which this contact person or organization is valid to be contacted relating to this patient.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.contact.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication",
+ "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": "Patient.communication",
+ "short": "A language which may be used to communicate with the patient about his or her health",
+ "definition": "A language which may be used to communicate with the patient about his or her health.",
+ "comment": "If no language is specified, this *implies* that the default local language is spoken. If you need to convey proficiency for multiple modes, then you need multiple Patient.Communication associations. For animals, language is not a relevant field, and should be absent from the instance. If the Patient does not speak the default local language, then the Interpreter Required Standard can be used to explicitly declare that an interpreter is required.",
+ "requirements": "If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency are important things to keep track of both for patient and other persons of interest.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Patient.communication",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "LanguageCommunication"
+ },
+ {
+ "identity": "cda",
+ "map": "patient.languageCommunication"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication.id",
+ "path": "Patient.communication.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication.extension",
+ "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": "Patient.communication.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication.modifierExtension",
+ "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": "Patient.communication.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication.language",
+ "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": "Patient.communication.language",
+ "short": "The language which can be used to communicate with the patient about his or her health",
+ "definition": "The ISO-639-1 alpha 2 code in lower case for the language, optionally followed by a hyphen and the ISO-3166-1 alpha 2 code for the region in upper case; e.g. \"en\" for English, or \"en-US\" for American English versus \"en-EN\" for England English.",
+ "comment": "The structure aa-BB with this exact casing is one the most widely used notations for locale. However not all systems actually code this but instead have it as free text. Hence CodeableConcept instead of code as the data type.",
+ "requirements": "Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Patient.communication.language",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet",
+ "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Language"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "preferred",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-15, LAN-2"
+ },
+ {
+ "identity": "rim",
+ "map": "player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"
+ },
+ {
+ "identity": "cda",
+ "map": ".languageCode"
+ }
+ ]
+ },
+ {
+ "id": "Patient.communication.preferred",
+ "path": "Patient.communication.preferred",
+ "short": "Language preference indicator",
+ "definition": "Indicates whether or not the patient prefers this language (over other languages he masters up a certain level).",
+ "comment": "This language is specifically identified for communicating healthcare information.",
+ "requirements": "People that master multiple languages up to certain level may prefer one or more, i.e. feel more confident in communicating in a particular language making other languages sort of a fall back method.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Patient.communication.preferred",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-15"
+ },
+ {
+ "identity": "rim",
+ "map": "preferenceInd"
+ },
+ {
+ "identity": "cda",
+ "map": ".preferenceInd"
+ }
+ ]
+ },
+ {
+ "id": "Patient.generalPractitioner",
+ "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": "Patient.generalPractitioner",
+ "short": "Patient's nominated primary care provider",
+ "definition": "Patient's nominated care provider.",
+ "comment": "This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disability setting, or even organization that will provide people to perform the care provider roles. It is not to be used to record Care Teams, these should be in a CareTeam resource that may be linked to the CarePlan or EpisodeOfCare resources.\nMultiple GPs may be recorded against the patient for various reasons, such as a student that has his home GP listed along with the GP at university during the school semesters, or a \"fly-in/fly-out\" worker that has the onsite GP also included with his home GP to remain aware of medical issues.\n\nJurisdictions may decide that they can profile this down to 1 if desired, or 1 per type.",
+ "alias": [
+ "careProvider"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.generalPractitioner",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization",
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "PD1-4"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.CareEvent.performer.AssignedEntity"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.managingOrganization",
+ "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": "Patient.managingOrganization",
+ "short": "Organization that is the custodian of the patient record",
+ "definition": "Organization that is the custodian of the patient record.",
+ "comment": "There is only one managing organization for a specific patient record. Other organizations will have their own Patient record, and may use the Link property to join the records together (or a Person resource which can include confidence ratings for the association).",
+ "requirements": "Need to know who recognizes this patient record, manages and updates it.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.managingOrganization",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "rim",
+ "map": "scoper"
+ },
+ {
+ "identity": "cda",
+ "map": ".providerOrganization"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link",
+ "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": "Patient.link",
+ "short": "Link to another patient resource that concerns the same actual person",
+ "definition": "Link to another patient resource that concerns the same actual patient.",
+ "comment": "There is no assumption that linked patient records have mutual links.",
+ "requirements": "There are multiple use cases: \n\n* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and \n* Distribution of patient information across multiple servers.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Patient.link",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it might not be the main Patient resource, and the referenced patient should be used instead of this Patient record. This is when the link.type value is 'replaced-by'",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundLink"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link.id",
+ "path": "Patient.link.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link.extension",
+ "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": "Patient.link.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link.modifierExtension",
+ "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": "Patient.link.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link.other",
+ "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": "Patient.link.other",
+ "short": "The other patient or related person resource that the link refers to",
+ "definition": "The other patient resource that the link refers to.",
+ "comment": "Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Patient.link.other",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-hierarchy",
+ "valueBoolean": false
+ }
+ ],
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Patient"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3, MRG-1"
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Patient.link.type",
+ "path": "Patient.link.type",
+ "short": "replaced-by | replaces | refer | seealso",
+ "definition": "The type of link between this patient resource and another patient resource.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Patient.link.type",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "LinkType"
+ }
+ ],
+ "strength": "required",
+ "description": "The type of link between this patient resource and another patient resource.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/link-type|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "typeCode"
+ },
+ {
+ "identity": "cda",
+ "map": "n/a"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Patient.meta",
+ "path": "Patient.meta"
+ },
+ {
+ "id": "Patient.meta.profile",
+ "path": "Patient.meta.profile",
+ "min": 1,
+ "max": "1",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ },
+ {
+ "id": "Patient.language",
+ "path": "Patient.language",
+ "definition": "The base language in which the resource is written.",
+ "binding": {
+ "strength": "required",
+ "description": "A code of human language."
+ }
+ },
+ {
+ "id": "Patient.extension",
+ "path": "Patient.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Patient.extension:creatingApplication",
+ "path": "Patient.extension",
+ "sliceName": "creatingApplication",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Patient.identifier",
+ "path": "Patient.identifier",
+ "definition": "An identifier for this patient. Pseudonym generated by PHR is used.",
+ "requirements": ".",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Patient.identifier.use",
+ "path": "Patient.identifier.use",
+ "max": "0"
+ },
+ {
+ "id": "Patient.identifier.type",
+ "path": "Patient.identifier.type",
+ "max": "0"
+ },
+ {
+ "id": "Patient.identifier.system",
+ "path": "Patient.identifier.system",
+ "min": 1,
+ "fixedUri": "urn:ietf:rfc:3986"
+ },
+ {
+ "id": "Patient.identifier.value",
+ "path": "Patient.identifier.value",
+ "short": "UUID",
+ "definition": "UUID pseudonym generated by PHR",
+ "comment": "UUID pseudonym generated by PHR when user PHR account is created.",
+ "min": 1
+ },
+ {
+ "id": "Patient.identifier.period",
+ "path": "Patient.identifier.period",
+ "max": "0"
+ },
+ {
+ "id": "Patient.identifier.assigner",
+ "path": "Patient.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Patient.name",
+ "path": "Patient.name",
+ "max": "0"
+ },
+ {
+ "id": "Patient.telecom",
+ "path": "Patient.telecom",
+ "max": "0"
+ },
+ {
+ "id": "Patient.gender",
+ "path": "Patient.gender",
+ "max": "0"
+ },
+ {
+ "id": "Patient.birthDate",
+ "path": "Patient.birthDate",
+ "max": "0"
+ },
+ {
+ "id": "Patient.deceased[x]",
+ "path": "Patient.deceased[x]",
+ "max": "0"
+ },
+ {
+ "id": "Patient.address",
+ "path": "Patient.address",
+ "max": "0"
+ },
+ {
+ "id": "Patient.maritalStatus",
+ "path": "Patient.maritalStatus",
+ "max": "0"
+ },
+ {
+ "id": "Patient.multipleBirth[x]",
+ "path": "Patient.multipleBirth[x]",
+ "max": "0"
+ },
+ {
+ "id": "Patient.photo",
+ "path": "Patient.photo",
+ "max": "0"
+ },
+ {
+ "id": "Patient.contact",
+ "path": "Patient.contact",
+ "max": "0"
+ },
+ {
+ "id": "Patient.generalPractitioner",
+ "path": "Patient.generalPractitioner",
+ "max": "0"
+ },
+ {
+ "id": "Patient.managingOrganization",
+ "path": "Patient.managingOrganization",
+ "max": "0"
+ },
+ {
+ "id": "Patient.link",
+ "path": "Patient.link",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDQuestionnairesResponsesR4.json b/input/examples/FIPHRSDQuestionnairesResponsesR4.json
new file mode 100644
index 0000000..4c9def9
--- /dev/null
+++ b/input/examples/FIPHRSDQuestionnairesResponsesR4.json
@@ -0,0 +1,4869 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-questionnaireresponse-r4",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2021-02-22T10:10:50.867+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4",
+ "version": "0.1.1",
+ "name": "FIPHRSDQuestionnairesResponsesR4",
+ "title": "Finnish PHR QuestionnaireResponse profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T10:10:49.9359829+00:00",
+ "description": "Finnish PHR StructureDefinition for QuestionnaireResponse Resource.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "QuestionnaireResponse",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "QuestionnaireResponse",
+ "path": "QuestionnaireResponse",
+ "short": "Finnish PHR QuestionnaireResponse profile",
+ "definition": "Profile to be used for all Finnish PHR QuestionnaireResponses.",
+ "comment": "The QuestionnaireResponse contains enough information about the questions asked and their organization that it can be interpreted somewhat independently from the Questionnaire it is based on. I.e. You don't need access to the Questionnaire in order to extract basic information from a QuestionnaireResponse.",
+ "alias": [
+ "Form",
+ "QuestionnaireAnswers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.id",
+ "path": "QuestionnaireResponse.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "QuestionnaireResponse.meta",
+ "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": "QuestionnaireResponse.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.id",
+ "path": "QuestionnaireResponse.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.extension",
+ "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": "QuestionnaireResponse.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.versionId",
+ "path": "QuestionnaireResponse.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.lastUpdated",
+ "path": "QuestionnaireResponse.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.source",
+ "path": "QuestionnaireResponse.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.profile",
+ "path": "QuestionnaireResponse.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.profile:fiphrProfile",
+ "path": "QuestionnaireResponse.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.meta.security",
+ "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": "QuestionnaireResponse.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "QuestionnaireResponse.meta.tag",
+ "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": "QuestionnaireResponse.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "QuestionnaireResponse.implicitRules",
+ "path": "QuestionnaireResponse.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.language",
+ "path": "QuestionnaireResponse.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.text",
+ "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": "QuestionnaireResponse.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.contained",
+ "path": "QuestionnaireResponse.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.extension",
+ "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": "QuestionnaireResponse.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.extension:creatingApplication",
+ "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": "QuestionnaireResponse.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.modifierExtension",
+ "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": "QuestionnaireResponse.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier",
+ "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": "QuestionnaireResponse.identifier",
+ "short": "Unique id for this set of answers",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Used for tracking, registration and other business purposes.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".id"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.id",
+ "path": "QuestionnaireResponse.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.extension",
+ "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": "QuestionnaireResponse.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.use",
+ "path": "QuestionnaireResponse.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.type",
+ "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": "QuestionnaireResponse.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.system",
+ "path": "QuestionnaireResponse.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "urn:ietf:rfc:3986",
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.value",
+ "path": "QuestionnaireResponse.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.period",
+ "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": "QuestionnaireResponse.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.assigner",
+ "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": "QuestionnaireResponse.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn",
+ "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": "QuestionnaireResponse.basedOn",
+ "short": "Request fulfilled by this QuestionnaireResponse",
+ "definition": "The order, proposal or plan that is fulfilled in whole or in part by this QuestionnaireResponse. For example, a ServiceRequest seeking an intake assessment or a decision support recommendation to assess for post-partum depression.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Supports traceability of responsibility for the action and allows linkage of an action to the recommendations acted upon.",
+ "alias": [
+ "order"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.id",
+ "path": "QuestionnaireResponse.basedOn.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.extension",
+ "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": "QuestionnaireResponse.basedOn.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.reference",
+ "path": "QuestionnaireResponse.basedOn.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.type",
+ "path": "QuestionnaireResponse.basedOn.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.identifier",
+ "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": "QuestionnaireResponse.basedOn.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "QuestionnaireResponse.basedOn.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf",
+ "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": "QuestionnaireResponse.partOf",
+ "short": "Part of this action",
+ "definition": "Finnish PHR: An observation that this questionnaire was performed as part of the execution of.",
+ "comment": "Composition of questionnaire responses will be handled by the parent questionnaire having answers that reference the child questionnaire. For relationships to referrals, and other types of requests, use basedOn.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.id",
+ "path": "QuestionnaireResponse.partOf.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.extension",
+ "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": "QuestionnaireResponse.partOf.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.reference",
+ "path": "QuestionnaireResponse.partOf.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.type",
+ "path": "QuestionnaireResponse.partOf.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.identifier",
+ "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": "QuestionnaireResponse.partOf.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "QuestionnaireResponse.partOf.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.questionnaire",
+ "path": "QuestionnaireResponse.questionnaire",
+ "short": "Questionnaire being answered",
+ "definition": "The Questionnaire that defines and organizes the questions for which answers are being provided.",
+ "comment": "If a QuestionnaireResponse references a Questionnaire, then the QuestionnaireResponse structure must be consistent with the Questionnaire (i.e. questions must be organized into the same groups, nested questions must still be nested, etc.).",
+ "requirements": "Needed to allow editing of the questionnaire response in a manner that enforces the constraints of the original form.",
+ "alias": [
+ "Form"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.questionnaire",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.instantiates"
+ },
+ {
+ "identity": "rim",
+ "map": "./outboundRelationship[typeCode=INST]/target[classCode=OBS, moodCode=DEFN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.status",
+ "path": "QuestionnaireResponse.status",
+ "short": "Finnish PHR: in-progress | completed | amended | stopped",
+ "definition": "The position of the questionnaire response within its overall lifecycle.",
+ "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
+ "requirements": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.\r\nFinnish PHR: 'entered-in-error' not allowed in Finnish PHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labelled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireResponseStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Lifecycle status of the questionnaire response.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "rim",
+ "map": ".statusCode (also whether there's a revisionControlAct - and possibly mood to distinguish \"in-progress\" from \"published)"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject",
+ "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": "QuestionnaireResponse.subject",
+ "short": "The subject of the questions",
+ "definition": "Finnish PHR: The subject of the questionnaire response. This is the patient the answers apply to, but is not necessarily the source of information.",
+ "comment": "If the Questionnaire declared a subjectType, the resource pointed to by this element must be an instance of one of the listed types.",
+ "requirements": "Allows linking the answers to the individual the answers describe. May also affect access control.",
+ "alias": [
+ "Patient",
+ "Focus"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=SBJ].role"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.id",
+ "path": "QuestionnaireResponse.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.extension",
+ "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": "QuestionnaireResponse.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.reference",
+ "path": "QuestionnaireResponse.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.type",
+ "path": "QuestionnaireResponse.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.identifier",
+ "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": "QuestionnaireResponse.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "QuestionnaireResponse.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.encounter",
+ "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": "QuestionnaireResponse.encounter",
+ "short": "Encounter created as part of",
+ "definition": "The Encounter during which this questionnaire response was created or to which the creation of this record is tightly associated.",
+ "comment": "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter. A questionnaire that was initiated during an encounter but not fully completed during the encounter would still generally be associated with the encounter.",
+ "requirements": "Provides context for the information that was captured. May also affect access control.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "QuestionnaireResponse.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.encounter"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.authored",
+ "path": "QuestionnaireResponse.authored",
+ "short": "Date the answers were gathered",
+ "definition": "The date and/or time that this set of answers were last changed.",
+ "comment": "May be different from the lastUpdateTime of the resource itself, because that reflects when the data was known to the server, not when the data was captured.\n\nThis element is optional to allow for systems that might not know the value, however it SHOULD be populated if possible.",
+ "requirements": "Clinicians need to be able to check the date that the information in the questionnaire was collected, to derive the context of the answers.",
+ "alias": [
+ "Date Created",
+ "Date published",
+ "Date Issued",
+ "Date updated"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.authored",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author",
+ "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": "QuestionnaireResponse.author",
+ "short": "Person who received and recorded the answers",
+ "definition": "Person who received the answers to the questions in the QuestionnaireResponse and recorded them in the system.",
+ "comment": "Mapping a subject's answers to multiple choice options and determining what to put in the textual answer is a matter of interpretation. Authoring by device would indicate that some portion of the questionnaire had been auto-populated.",
+ "requirements": "Need to know who interpreted the subject's answers to the questions in the questionnaire, and selected the appropriate options for answers.",
+ "alias": [
+ "Laboratory",
+ "Service",
+ "Practitioner",
+ "Department",
+ "Company",
+ "Performer"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.author",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.author"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.id",
+ "path": "QuestionnaireResponse.author.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.extension",
+ "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": "QuestionnaireResponse.author.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.reference",
+ "path": "QuestionnaireResponse.author.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.type",
+ "path": "QuestionnaireResponse.author.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.identifier",
+ "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": "QuestionnaireResponse.author.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "QuestionnaireResponse.author.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source",
+ "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": "QuestionnaireResponse.source",
+ "short": "Finnish PHR: The application user who answered the questions",
+ "definition": "Finnish PHR: The application user who answered the questions about the subject.",
+ "comment": "If not specified, no inference can be made about who provided the data.",
+ "requirements": "When answering questions about a subject that is minor, incapable of answering or an animal, another human source may answer the questions.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.source"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=INF].role"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.id",
+ "path": "QuestionnaireResponse.source.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.extension",
+ "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": "QuestionnaireResponse.source.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.reference",
+ "path": "QuestionnaireResponse.source.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.type",
+ "path": "QuestionnaireResponse.source.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.identifier",
+ "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": "QuestionnaireResponse.source.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "QuestionnaireResponse.source.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item",
+ "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": "QuestionnaireResponse.item",
+ "short": "Groups and questions",
+ "definition": "A group or question item from the original questionnaire for which answers are provided.",
+ "comment": "Groups cannot have answers and therefore must nest directly within item. When dealing with questions, nesting must occur within each answer because some questions may have multiple answers (and the nesting occurs for each answer).",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.item",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qrs-1",
+ "severity": "error",
+ "human": "Nested item can't be beneath both item and answer",
+ "expression": "(answer.exists() and item.exists()).not()",
+ "xpath": "not(exists(f:answer) and exists(f:item))",
+ "source": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.id",
+ "path": "QuestionnaireResponse.item.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.extension",
+ "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": "QuestionnaireResponse.item.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.modifierExtension",
+ "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": "QuestionnaireResponse.item.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.linkId",
+ "path": "QuestionnaireResponse.item.linkId",
+ "short": "Pointer to specific item from Questionnaire",
+ "definition": "The item from the Questionnaire that corresponds to this item in the QuestionnaireResponse resource.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Items can repeat in the answers, so a direct 1..1 correspondence by position might not exist - requiring correspondence by identifier.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.item.linkId",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].id"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.definition",
+ "path": "QuestionnaireResponse.item.definition",
+ "short": "ElementDefinition - details for the item",
+ "definition": "A reference to an [ElementDefinition](elementdefinition.html) that provides the details for the item.",
+ "comment": "The ElementDefinition must be in a [StructureDefinition](structuredefinition.html#), and must have a fragment identifier that identifies the specific data element by its id (Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x].\n\nThere is no need for this element if the item pointed to by the linkId has a definition listed.",
+ "requirements": "A common pattern is to define a set of data elements, and then build multiple different questionnaires for different circumstances to gather the data. This element provides traceability to the common definition.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.item.definition",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DEFN].target[classCode=OBS, moodCode=DEFN].code"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.text",
+ "path": "QuestionnaireResponse.item.text",
+ "short": "Name for group or question text",
+ "definition": "Text that is displayed above the contents of the group or as the text of the question being answered.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Allows the questionnaire response to be read without access to the questionnaire.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.item.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".text"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer",
+ "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": "QuestionnaireResponse.item.answer",
+ "short": "The response(s) to the question",
+ "definition": "The respondent's answer(s) to the question.",
+ "comment": "The value is nested because we cannot have a repeating structure that has variable type.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.item.answer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".value[type=LIST_ANY]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer.id",
+ "path": "QuestionnaireResponse.item.answer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer.extension",
+ "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": "QuestionnaireResponse.item.answer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer.modifierExtension",
+ "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": "QuestionnaireResponse.item.answer.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer.value[x]",
+ "path": "QuestionnaireResponse.item.answer.value[x]",
+ "short": "Single-valued answer to the question",
+ "definition": "The answer (or one of the answers) provided by the respondent to the question.",
+ "comment": "More complex structures (Attachment, Resource and Quantity) will typically be limited to electronic forms that can expose an appropriate user interface to capture the components and enforce the constraints of a complex data type. Additional complex types can be introduced through extensions. Must match the datatype specified by Questionnaire.item.type in the corresponding Questionnaire.",
+ "requirements": "Ability to retain a single-valued answer to a question.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "QuestionnaireResponse.item.answer.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "uri"
+ },
+ {
+ "code": "Attachment"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireAnswer"
+ }
+ ],
+ "strength": "example",
+ "description": "Code indicating the response provided for a question.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".item"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.answer.item",
+ "path": "QuestionnaireResponse.item.answer.item",
+ "short": "Nested groups and questions",
+ "definition": "Nested groups and/or questions found within this particular answer.",
+ "requirements": "It is useful to have \"sub-questions\", questions which normally appear when certain answers are given and which collect additional details.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.item.answer.item",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#QuestionnaireResponse.item",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.item.item",
+ "path": "QuestionnaireResponse.item.item",
+ "short": "Nested questionnaire response items",
+ "definition": "Questions or sub-groups nested beneath a question or group.",
+ "requirements": "Reports can consist of complex nested groups.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "QuestionnaireResponse.item.item",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#QuestionnaireResponse.item",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "QuestionnaireResponse",
+ "path": "QuestionnaireResponse",
+ "short": "Finnish PHR QuestionnaireResponse profile",
+ "definition": "Profile to be used for all Finnish PHR QuestionnaireResponses."
+ },
+ {
+ "id": "QuestionnaireResponse.meta",
+ "path": "QuestionnaireResponse.meta",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.meta.profile",
+ "path": "QuestionnaireResponse.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nA list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.meta.profile:fiphrProfile",
+ "path": "QuestionnaireResponse.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-r4"
+ },
+ {
+ "id": "QuestionnaireResponse.language",
+ "path": "QuestionnaireResponse.language",
+ "min": 1,
+ "binding": {
+ "strength": "required"
+ }
+ },
+ {
+ "id": "QuestionnaireResponse.text",
+ "path": "QuestionnaireResponse.text",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.extension",
+ "path": "QuestionnaireResponse.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "QuestionnaireResponse.extension:creatingApplication",
+ "path": "QuestionnaireResponse.extension",
+ "sliceName": "creatingApplication",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.identifier",
+ "path": "QuestionnaireResponse.identifier",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.system",
+ "path": "QuestionnaireResponse.identifier.system",
+ "min": 1,
+ "fixedUri": "urn:ietf:rfc:3986"
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.value",
+ "path": "QuestionnaireResponse.identifier.value",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.identifier.assigner",
+ "path": "QuestionnaireResponse.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn",
+ "path": "QuestionnaireResponse.basedOn",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.basedOn.reference",
+ "path": "QuestionnaireResponse.basedOn.reference",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.partOf",
+ "path": "QuestionnaireResponse.partOf",
+ "definition": "Finnish PHR: An observation that this questionnaire was performed as part of the execution of.",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.partOf.reference",
+ "path": "QuestionnaireResponse.partOf.reference",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.questionnaire",
+ "path": "QuestionnaireResponse.questionnaire",
+ "short": "Questionnaire being answered",
+ "min": 1,
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.status",
+ "path": "QuestionnaireResponse.status",
+ "short": "Finnish PHR: in-progress | completed | amended | stopped",
+ "requirements": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.\r\nFinnish PHR: 'entered-in-error' not allowed in Finnish PHR."
+ },
+ {
+ "id": "QuestionnaireResponse.subject",
+ "path": "QuestionnaireResponse.subject",
+ "definition": "Finnish PHR: The subject of the questionnaire response. This is the patient the answers apply to, but is not necessarily the source of information.",
+ "min": 1,
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.subject.reference",
+ "path": "QuestionnaireResponse.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.encounter",
+ "path": "QuestionnaireResponse.encounter",
+ "max": "0"
+ },
+ {
+ "id": "QuestionnaireResponse.authored",
+ "path": "QuestionnaireResponse.authored",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.author",
+ "path": "QuestionnaireResponse.author",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.author.reference",
+ "path": "QuestionnaireResponse.author.reference",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.source",
+ "path": "QuestionnaireResponse.source",
+ "short": "Finnish PHR: The application user who answered the questions",
+ "definition": "Finnish PHR: The application user who answered the questions about the subject.",
+ "min": 1,
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "QuestionnaireResponse.source.reference",
+ "path": "QuestionnaireResponse.source.reference",
+ "min": 1
+ },
+ {
+ "id": "QuestionnaireResponse.item",
+ "path": "QuestionnaireResponse.item",
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDQuestionnarieR4.json b/input/examples/FIPHRSDQuestionnarieR4.json
new file mode 100644
index 0000000..fc44e3b
--- /dev/null
+++ b/input/examples/FIPHRSDQuestionnarieR4.json
@@ -0,0 +1,5485 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-questionnaire",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2021-02-22T10:11:08.208+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4",
+ "version": "0.1.0",
+ "name": "FIPHRSDQuestionnaire",
+ "title": "Finnish PHR Questionnaire profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T10:11:07.416771+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR StructureDefinition for Questionnaire Resource",
+ "fhirVersion": "4.0.1",
+ "mapping": [
+ {
+ "identity": "workflow",
+ "uri": "http://hl7.org/fhir/workflow",
+ "name": "Workflow Pattern"
+ },
+ {
+ "identity": "rim",
+ "uri": "http://hl7.org/v3",
+ "name": "RIM Mapping"
+ },
+ {
+ "identity": "w5",
+ "uri": "http://hl7.org/fhir/fivews",
+ "name": "FiveWs Pattern Mapping"
+ },
+ {
+ "identity": "objimpl",
+ "uri": "http://hl7.org/fhir/object-implementation",
+ "name": "Object Implementation Information"
+ },
+ {
+ "identity": "v2",
+ "uri": "http://hl7.org/v2",
+ "name": "HL7 v2 Mapping"
+ }
+ ],
+ "kind": "resource",
+ "abstract": false,
+ "type": "Questionnaire",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Questionnaire",
+ "path": "Questionnaire",
+ "short": "Finnish PHR Questionnaire profile",
+ "definition": "A structured set of questions intended to guide the collection of answers from end-users. Questionnaires provide detailed control over order, presentation, phraseology and grouping to allow coherent, consistent data collection.",
+ "alias": [
+ "Form",
+ "CRF",
+ "Survey"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "que-2",
+ "severity": "error",
+ "human": "The link ids for groups and questions must be unique within the questionnaire",
+ "expression": "descendants().linkId.isDistinct()",
+ "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-0",
+ "severity": "warning",
+ "human": "Name should be usable as an identifier for the module by machine processing applications such as code generation",
+ "expression": "name.matches('[A-Z]([A-Za-z0-9_]){0,254}')",
+ "xpath": "not(exists(f:name/@value)) or matches(f:name/@value, '[A-Z]([A-Za-z0-9_]){0,254}')",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[moodCode=DEF]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.id",
+ "path": "Questionnaire.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Questionnaire.meta",
+ "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": "Questionnaire.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.id",
+ "path": "Questionnaire.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.extension",
+ "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": "Questionnaire.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.versionId",
+ "path": "Questionnaire.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.lastUpdated",
+ "path": "Questionnaire.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.source",
+ "path": "Questionnaire.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.profile",
+ "path": "Questionnaire.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.profile:fiphrProfile",
+ "path": "Questionnaire.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.meta.security",
+ "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": "Questionnaire.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Questionnaire.meta.tag",
+ "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": "Questionnaire.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Questionnaire.implicitRules",
+ "path": "Questionnaire.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.language",
+ "path": "Questionnaire.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "A human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.text",
+ "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": "Questionnaire.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.contained",
+ "path": "Questionnaire.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.extension",
+ "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": "Questionnaire.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.extension:myExtension",
+ "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": "Questionnaire.extension",
+ "sliceName": "myExtension",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.modifierExtension",
+ "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": "Questionnaire.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.url",
+ "path": "Questionnaire.url",
+ "short": "Canonical identifier for this questionnaire, represented as a URI (globally unique)",
+ "definition": "An absolute URI that is used to identify this questionnaire when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this questionnaire is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the questionnaire is stored on different servers.",
+ "comment": "The name of the referenced questionnaire can be conveyed using the http://hl7.org/fhir/StructureDefinition/display extension.",
+ "requirements": "… This is the id that will be used to link a QuestionnaireResponse to the Questionnaire the response is for.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.url",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.url"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier[scope=BUSN;reliability=ISS]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier",
+ "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": "Questionnaire.identifier",
+ "short": "Additional identifier for the questionnaire",
+ "definition": "A formal identifier that is used to identify this questionnaire when it is represented in other formats, or referenced in a specification, model, design or an instance.",
+ "comment": "Typically, this is used for identifiers that can go in an HL7 V3 II (instance identifier) data type, and can then identify this questionnaire outside of FHIR, where it is not possible to use the logical URI.",
+ "requirements": "Allows externally provided and/or usable business identifiers to be easily associated with the module.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.id",
+ "path": "Questionnaire.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.extension",
+ "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": "Questionnaire.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.use",
+ "path": "Questionnaire.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. Finnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.type",
+ "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": "Questionnaire.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.system",
+ "path": "Questionnaire.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.value",
+ "path": "Questionnaire.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.period",
+ "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": "Questionnaire.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.identifier.assigner",
+ "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": "Questionnaire.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.version",
+ "path": "Questionnaire.version",
+ "short": "Business version of the questionnaire",
+ "definition": "The identifier that is used to identify this version of the questionnaire when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the questionnaire author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.",
+ "comment": "There may be different questionnaire instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a reference to a particular business version of the questionnaire with the format [url]|[version].",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.version"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.version"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A (to add?)"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.name",
+ "path": "Questionnaire.name",
+ "short": "Name for this questionnaire (computer friendly)",
+ "definition": "A natural language name identifying the questionnaire. This name should be usable as an identifier for the module by machine processing applications such as code generation.",
+ "comment": "The name is not expected to be globally unique. The name should be a simple alphanumeric type name to ensure that it is machine-processing friendly.",
+ "requirements": "Support human navigation and code generation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.name",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "inv-0"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.title",
+ "path": "Questionnaire.title",
+ "short": "Name for this questionnaire (human friendly)",
+ "definition": "A short, descriptive, user-friendly title for the questionnaire.",
+ "comment": "This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.title",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.title"
+ },
+ {
+ "identity": "rim",
+ "map": ".title"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.derivedFrom",
+ "path": "Questionnaire.derivedFrom",
+ "short": "Instantiates protocol or definition",
+ "definition": "The URL of a Questionnaire that this Questionnaire is based on.",
+ "comment": "see [Canonical References](references.html#canonical)",
+ "requirements": "Allows a Questionnaire to be created based on another Questionnaire.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.derivedFrom"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=DRIV].target[classCode=OBS, moodCode=DEFN]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.status",
+ "path": "Questionnaire.status",
+ "short": "draft | active | retired | unknown",
+ "definition": "The status of this questionnaire. Enables tracking the life-cycle of the content.",
+ "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not use a retired {{title}} without due consideration",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "PublicationStatus"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "The lifecycle status of an artifact.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/publication-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "rim",
+ "map": ".status"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.experimental",
+ "path": "Questionnaire.experimental",
+ "short": "For testing purposes, not real usage",
+ "definition": "A Boolean value to indicate that this questionnaire is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.",
+ "comment": "Allows filtering of questionnaires that are appropriate for use versus not.",
+ "requirements": "Enables experimental content to be developed following the same lifecycle that would be used for a production-level questionnaire.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.experimental",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.experimental"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.subjectType",
+ "path": "Questionnaire.subjectType",
+ "short": "Resource that can be subject of QuestionnaireResponse",
+ "definition": "The types of subjects that can be the subject of responses created for the questionnaire.",
+ "comment": "If none are specified, then the subject is unlimited.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.subjectType",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "Patient",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ResourceType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "required",
+ "description": "One of the resource types defined as part of this version of FHIR.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.subject[x]"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=META].target[classCode=OBS, moodCode=DEFN, isCriterion=true].participation.role.classCode"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.date",
+ "path": "Questionnaire.date",
+ "short": "Date last changed",
+ "definition": "The date (and optionally time) when the questionnaire was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the questionnaire changes.",
+ "comment": "Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the questionnaire. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource.",
+ "alias": [
+ "Revision Date"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.date",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.date"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.publisher",
+ "path": "Questionnaire.publisher",
+ "short": "Name of the publisher (organization or individual)",
+ "definition": "The name of the organization or individual that published the questionnaire.",
+ "comment": "Usually an organization but may be an individual. The publisher (or steward) of the questionnaire is the organization or individual primarily responsible for the maintenance and upkeep of the questionnaire. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the questionnaire. This item SHOULD be populated unless the information is available from context.",
+ "requirements": "Helps establish the \"authority/credibility\" of the questionnaire. May also allow for contact.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.publisher",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.publisher"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.witness"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.contact",
+ "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": "Questionnaire.contact",
+ "short": "Contact details for the publisher",
+ "definition": "Contact details to assist a user in finding and communicating with the publisher.",
+ "comment": "May be a web site, an email address, a telephone number, etc.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.contact",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "ContactDetail"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.contact"
+ },
+ {
+ "identity": "rim",
+ "map": ".participation[typeCode=CALLBCK].role"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.description",
+ "path": "Questionnaire.description",
+ "short": "Natural language description of the questionnaire",
+ "definition": "A free text natural language description of the questionnaire from a consumer's perspective.",
+ "comment": "This description can be used to capture details such as why the questionnaire was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the questionnaire as conveyed in the 'text' field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the questionnaire is presumed to be the predominant language in the place the questionnaire was created).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.description",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.description"
+ },
+ {
+ "identity": "rim",
+ "map": ".text"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.useContext",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ }
+ ],
+ "path": "Questionnaire.useContext",
+ "short": "The context that the content is intended to support",
+ "definition": "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate questionnaire instances.",
+ "comment": "When multiple useContexts are specified, there is no expectation that all or any of the contexts apply.",
+ "requirements": "Assist in searching for appropriate content.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Questionnaire.useContext",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "UsageContext"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.useContext"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A (to add?)"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.jurisdiction",
+ "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": "Questionnaire.jurisdiction",
+ "short": "Intended jurisdiction for questionnaire (if applicable)",
+ "definition": "A legal or geographic region in which the questionnaire is intended to be used.",
+ "comment": "It may be possible for the questionnaire to be used in jurisdictions other than those for which it was originally designed or intended.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Questionnaire.jurisdiction",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Jurisdiction"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Countries and regions within which this artifact is targeted for use.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/jurisdiction"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.jurisdiction"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A (to add?)"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.purpose",
+ "path": "Questionnaire.purpose",
+ "short": "Why this questionnaire is defined",
+ "definition": "Explanation of why this questionnaire is needed and why it has been designed as it has.",
+ "comment": "This element does not describe the usage of the questionnaire. Instead, it provides traceability of ''why'' the resource is either needed or ''why'' it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this questionnaire.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.purpose",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.purpose"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.why[x]"
+ },
+ {
+ "identity": "rim",
+ "map": ".reasonCode.text"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.copyright",
+ "path": "Questionnaire.copyright",
+ "short": "Use and/or publishing restrictions",
+ "definition": "A copyright statement relating to the questionnaire and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the questionnaire.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "requirements": "Consumers must be able to determine any legal restrictions on the use of the questionnaire and/or its content.",
+ "alias": [
+ "License",
+ "Restrictions"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.copyright",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.copyright"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A (to add?)"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.approvalDate",
+ "path": "Questionnaire.approvalDate",
+ "short": "When the questionnaire was approved by publisher",
+ "definition": "The date on which the resource content was approved by the publisher. Approval happens once when the content is officially approved for usage.",
+ "comment": "The 'date' element may be more recent than the approval date because of minor changes or editorial corrections.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.approvalDate",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "date"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.approvalDate"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"SUBJ\"].act[classCode=CACT;moodCode=EVN;code=\"approval\"].effectiveTime"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.lastReviewDate",
+ "path": "Questionnaire.lastReviewDate",
+ "short": "When the questionnaire was last reviewed",
+ "definition": "The date on which the resource content was last reviewed. Review happens periodically after approval but does not change the original approval date.",
+ "comment": "If specified, this date follows the original approval date.",
+ "requirements": "Gives a sense of how \"current\" the content is. Resources that have not been reviewed in a long time may have a risk of being less appropriate/relevant.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.lastReviewDate",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "date"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.lastReviewDate"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"SUBJ\"; subsetCode=\"RECENT\"].act[classCode=CACT;moodCode=EVN;code=\"review\"].effectiveTime"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.effectivePeriod",
+ "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": "Questionnaire.effectivePeriod",
+ "short": "When the questionnaire is expected to be used",
+ "definition": "The period during which the questionnaire content was or is planned to be in active use.",
+ "comment": "The effective period for a questionnaire determines when the content is applicable for usage and is independent of publication and review dates. For example, a measure intended to be used for the year 2016 might be published in 2015.",
+ "requirements": "Allows establishing a transition before a resource comes into effect and also allows for a sunsetting process when new versions of the questionnaire are or are expected to be used instead.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.effectivePeriod",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "workflow",
+ "map": "Definition.effectivePeriod"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A (to add?)"
+ },
+ {
+ "identity": "objimpl",
+ "map": "no-gen-base"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code",
+ "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": "Questionnaire.code",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Concept that represents the overall questionnaire",
+ "definition": "An identifier for this question or group of questions in a particular terminology such as LOINC.",
+ "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.",
+ "requirements": "Allows linking of the complete Questionnaire resources to formal terminologies. It's common for \"panels\" of questions to be identified by a code.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.code",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes for questionnaires, groups and individual questions.",
+ "valueSet": "https://simplifier.net/finnishphr/fiphr-vs-questionnairecode"
+ },
+ "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"
+ },
+ {
+ "identity": "rim",
+ "map": ".code"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode",
+ "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": "Questionnaire.code",
+ "sliceName": "fiphrCode",
+ "short": "Concept that represents the overall questionnaire",
+ "definition": "An identifier for this question or group of questions in a particular terminology such as LOINC.",
+ "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.",
+ "requirements": "Allows linking of the complete Questionnaire resources to formal terminologies. It's common for \"panels\" of questions to be identified by a code.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.code",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireConcept"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes for questionnaires, groups and individual questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
+ },
+ "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"
+ },
+ {
+ "identity": "rim",
+ "map": ".code"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.id",
+ "path": "Questionnaire.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.extension",
+ "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": "Questionnaire.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.system",
+ "path": "Questionnaire.code.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-questionnairecode",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.version",
+ "path": "Questionnaire.code.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.code",
+ "path": "Questionnaire.code.code",
+ "short": "Finnish PHR: Code for questionnaire",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Questionnaire.code.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.userSelected",
+ "path": "Questionnaire.code.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item",
+ "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": "Questionnaire.item",
+ "short": "Questions and sections within the Questionnaire",
+ "definition": "A particular question, question grouping or display text that is part of the questionnaire.",
+ "comment": "The content of the questionnaire is constructed from an ordered, hierarchical collection of items.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "que-9",
+ "severity": "error",
+ "human": "Read-only can't be specified for \"display\" items",
+ "expression": "type!='display' or readOnly.empty()",
+ "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-8",
+ "severity": "error",
+ "human": "Initial values can't be specified for groups or display items",
+ "expression": "(type!='group' and type!='display') or initial.empty()",
+ "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-6",
+ "severity": "error",
+ "human": "Required and repeat aren't permitted for display items",
+ "expression": "type!='display' or (required.empty() and repeats.empty())",
+ "xpath": "not(f:type/@value='display' and (f:required or f:repeats))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-5",
+ "severity": "error",
+ "human": "Only 'choice' and 'open-choice' items can have answerValueSet",
+ "expression": "(type ='choice' or type = 'open-choice' or type = 'decimal' or type = 'integer' or type = 'date' or type = 'dateTime' or type = 'time' or type = 'string' or type = 'quantity') or (answerValueSet.empty() and answerOption.empty())",
+ "xpath": "f:type/@value=('choice','open-choice','decimal','integer','date','dateTime','time','string','quantity',') or not(f:answerOption or f:answerValueSet)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-4",
+ "severity": "error",
+ "human": "A question cannot have both answerOption and answerValueSet",
+ "expression": "answerOption.empty() or answerValueSet.empty()",
+ "xpath": "not(f:answerValueSet and f:answerOption)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-3",
+ "severity": "error",
+ "human": "Display items cannot have a \"code\" asserted",
+ "expression": "type!='display' or code.empty()",
+ "xpath": "not(f:type/@value='display' and f:code)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-10",
+ "severity": "error",
+ "human": "Maximum length can only be declared for simple question types",
+ "expression": "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url' | 'open-choice')) or maxLength.empty()",
+ "xpath": "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-1",
+ "severity": "error",
+ "human": "Group items must have nested items, display items cannot have nested items",
+ "expression": "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())",
+ "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-13",
+ "severity": "error",
+ "human": "Can only have multiple initial values for repeating items",
+ "expression": "repeats=true or initial.count() <= 1",
+ "xpath": "f:repeats/@value='true' or count(f:initial)<=1",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-11",
+ "severity": "error",
+ "human": "If one or more answerOption is present, initial[x] must be missing",
+ "expression": "answerOption.empty() or initial.empty()",
+ "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ },
+ {
+ "key": "que-12",
+ "severity": "error",
+ "human": "If there are more than one enableWhen, enableBehavior must be specified",
+ "expression": "enableWhen.count() > 2 implies enableBehavior.exists()",
+ "xpath": "not(f:answerOption) or not(count(f:*[starts-with(local-name(.), 'initial')]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target[classCode=OBS, moodCode=DEF]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.id",
+ "path": "Questionnaire.item.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.extension",
+ "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": "Questionnaire.item.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.modifierExtension",
+ "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": "Questionnaire.item.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.linkId",
+ "path": "Questionnaire.item.linkId",
+ "short": "Unique id for item in questionnaire",
+ "definition": "An identifier that is unique within the Questionnaire allowing linkage to the equivalent item in a QuestionnaireResponse resource.",
+ "comment": "This ''can'' be a meaningful identifier (e.g. a LOINC code) but is not intended to have any meaning. GUIDs or sequential numbers are appropriate here.",
+ "requirements": "[QuestionnaireResponse](questionnaireresponse.html#) does not require omitted items to be included and may have some items that repeat, so linkage based on position alone is not sufficient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.linkId",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".id"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.definition",
+ "path": "Questionnaire.item.definition",
+ "short": "ElementDefinition - details for the item",
+ "definition": "This element is a URI that refers to an [ElementDefinition](elementdefinition.html) that provides information about this item, including information that might otherwise be included in the instance of the Questionnaire resource. A detailed description of the construction of the URI is shown in Comments, below. If this element is present then the following element values MAY be derived from the Element Definition if the corresponding elements of this Questionnaire resource instance have no value:\n\n* code (ElementDefinition.code) \n* type (ElementDefinition.type) \n* required (ElementDefinition.min) \n* repeats (ElementDefinition.max) \n* maxLength (ElementDefinition.maxLength) \n* answerValueSet (ElementDefinition.binding)\n* options (ElementDefinition.binding).",
+ "comment": "The uri refers to an ElementDefinition in a [StructureDefinition](structuredefinition.html#) and always starts with the [canonical URL](references.html#canonical) for the target resource. When referring to a StructureDefinition, a fragment identifier is used to specify the element definition by its id [Element.id](element-definitions.html#Element.id). E.g. http://hl7.org/fhir/StructureDefinition/Observation#Observation.value[x]. In the absence of a fragment identifier, the first/root element definition in the target is the matching element definition.",
+ "requirements": "A common pattern is to define a set of data elements and then build multiple questionnaires for different circumstances to gather the data. This element provides traceability to the common definition and allows the content for the question to come from the underlying definition.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.definition",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=INST].target[classCode=OBS, moodCode=DEF]"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.code",
+ "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": "Questionnaire.item.code",
+ "short": "Corresponding concept for this item in a terminology",
+ "definition": "A terminology code that corresponds to this group or question (e.g. a code from LOINC, which defines many questions and answers).",
+ "comment": "The value may come from the ElementDefinition referred to by .definition.",
+ "requirements": "Allows linking of groups of questions to formal terminologies.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item.code",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireConcept"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes for questionnaires, groups and individual questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-questions"
+ },
+ "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"
+ },
+ {
+ "identity": "rim",
+ "map": ".code"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.prefix",
+ "path": "Questionnaire.item.prefix",
+ "short": "E.g. \"1(a)\", \"2.5.3\"",
+ "definition": "A short label for a particular group, question or set of display text within the questionnaire used for reference by the individual completing the questionnaire.",
+ "comment": "These are generally unique within a questionnaire, though this is not guaranteed. Some questionnaires may have multiple questions with the same label with logic to control which gets exposed. Typically, these won't be used for \"display\" items, though such use is not prohibited. Systems SHOULD NOT generate their own prefixes if prefixes are defined for any items within a Questionnaire.",
+ "requirements": "Separating the label from the question text allows improved rendering. Also, instructions will often refer to specific prefixes, so there's a need for the questionnaire design to have control over what labels are used.",
+ "alias": [
+ "label"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.prefix",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "Not supported"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.text",
+ "path": "Questionnaire.item.text",
+ "short": "Primary text for the item",
+ "definition": "The name of a section, the text of a question or text content for a display item.",
+ "comment": "When using this element to represent the name of a section, use group type item and also make sure to limit the text element to a short string suitable for display as a section heading. Group item instructions should be included as a display type item within the group.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": ".text"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.type",
+ "path": "Questionnaire.item.type",
+ "short": "group | display | boolean | decimal | integer | date | dateTime +",
+ "definition": "The type of questionnaire item this is - whether text for display, a grouping of other items or a particular type of data to be captured (string, integer, coded choice, etc.).",
+ "comment": "Additional constraints on the type of answer can be conveyed by extensions. The value may come from the ElementDefinition referred to by .definition.",
+ "requirements": "Defines the format in which the user is to be prompted for the answer.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.type",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireItemType"
+ }
+ ],
+ "strength": "required",
+ "description": "Distinguishes groups from questions and display text and indicates data type for questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/item-type|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen",
+ "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": "Questionnaire.item.enableWhen",
+ "short": "Only allow data when",
+ "definition": "A constraint indicating that this item should only be enabled (displayed/allow answers to be captured) when the specified condition is true.",
+ "comment": "If multiple repetitions of this extension are present, the item should be enabled when the condition for *any* of the repetitions is true. I.e. treat \"enableWhen\"s as being joined by an \"or\" clause. This element is a modifier because if enableWhen is present for an item, \"required\" is ignored unless one of the enableWhen conditions is met. When an item is disabled, all of its descendants are disabled, regardless of what their own enableWhen logic might evaluate to.",
+ "requirements": "Allows questionnaires to adapt based on answers to other questions. E.g. If physical gender is specified as a male, no need to capture pregnancy history. Also allows conditional display of instructions or groups of questions.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item.enableWhen",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "que-7",
+ "severity": "error",
+ "human": "If the operator is 'exists', the value must be a boolean",
+ "expression": "operator = 'exists' implies (answer is Boolean)",
+ "xpath": "f:operator/@value != 'exists' or exists(f:answerBoolean)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Questionnaire"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "If enableWhen is present and the condition evaluates to false, then the Questionnaire behaves as though the elements weren't actually present",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.id",
+ "path": "Questionnaire.item.enableWhen.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.extension",
+ "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": "Questionnaire.item.enableWhen.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.modifierExtension",
+ "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": "Questionnaire.item.enableWhen.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.question",
+ "path": "Questionnaire.item.enableWhen.question",
+ "short": "Question that determines whether item is enabled",
+ "definition": "The linkId for the question whose answer (or lack of answer) governs whether this item is enabled.",
+ "comment": "If multiple question occurrences are present for the same question (same linkId), then this refers to the nearest question occurrence reachable by tracing first the \"ancestor\" axis and then the \"preceding\" axis and then the \"following\" axis.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.enableWhen.question",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.operator",
+ "path": "Questionnaire.item.enableWhen.operator",
+ "short": "exists | = | != | > | < | >= | <=",
+ "definition": "Specifies the criteria by which the question is enabled.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.enableWhen.operator",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireItemOperator"
+ }
+ ],
+ "strength": "required",
+ "description": "The criteria by which a question is enabled.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-operator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableWhen.answer[x]",
+ "path": "Questionnaire.item.enableWhen.answer[x]",
+ "short": "Value for question comparison based on operator",
+ "definition": "A value that the referenced question is tested using the specified operator in order for the item to be enabled.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.enableWhen.answer[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireQuestionOption3"
+ }
+ ],
+ "strength": "example",
+ "description": "Allowed values to answer questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.enableBehavior",
+ "path": "Questionnaire.item.enableBehavior",
+ "short": "all | any",
+ "definition": "Controls how multiple enableWhen values are interpreted - whether all or any must be true.",
+ "comment": "This element must be specified if more than one enableWhen value is provided.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.enableBehavior",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-12"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "EnableWhenBehavior"
+ }
+ ],
+ "strength": "required",
+ "description": "Controls how multiple enableWhen values are interpreted - whether all or any must be true.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-enable-behavior|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.required",
+ "path": "Questionnaire.item.required",
+ "short": "Whether the item must be included in data results",
+ "definition": "An indication, if true, that the item must be present in a \"completed\" QuestionnaireResponse. If false, the item may be skipped when answering the questionnaire.",
+ "comment": "Questionnaire.item.required only has meaning for elements that are conditionally enabled with enableWhen if the condition evaluates to true. If an item that contains other items is marked as required, that does not automatically make the contained elements required (though required groups must contain at least one child element). The value may come from the ElementDefinition referred to by .definition.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.required",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "meaningWhenMissing": "Items are generally assumed not to be required unless explicitly specified. Systems SHOULD always populate this value",
+ "condition": [
+ "ele-1",
+ "que-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.repeats",
+ "path": "Questionnaire.item.repeats",
+ "short": "Whether the item may repeat",
+ "definition": "An indication, if true, that the item may occur multiple times in the response, collecting multiple answers for questions or multiple sets of answers for groups.",
+ "comment": "If a question is marked as repeats=true, then multiple answers can be provided for the question in the corresponding QuestionnaireResponse. When rendering the questionnaire, it is up to the rendering software whether to render the question text for each answer repetition (i.e. \"repeat the question\") or to simply allow entry/selection of multiple answers for the question (repeat the answers). Which is most appropriate visually may depend on the type of answer as well as whether there are nested items.\n\nThe resulting QuestionnaireResponse will be populated the same way regardless of rendering - one 'question' item with multiple answer values.\n\n The value may come from the ElementDefinition referred to by .definition.",
+ "requirements": "Items may be used to create set of (related) questions that can be repeated to give multiple answers to such a set.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.repeats",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "meaningWhenMissing": "Items are generally assumed not to repeat unless explicitly specified. Systems SHOULD always populate this value",
+ "condition": [
+ "ele-1",
+ "que-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.readOnly",
+ "path": "Questionnaire.item.readOnly",
+ "short": "Don't allow human editing",
+ "definition": "An indication, when true, that the value cannot be changed by a human respondent to the Questionnaire.",
+ "comment": "The value of readOnly elements can be established by asserting extensions for defaultValues, linkages that support pre-population and/or extensions that support calculation based on other answers.",
+ "requirements": "Allows certain information to be phrased (and rendered) as a question and an answer, while keeping users from changing it. May also be useful for preventing changes to pre-populated portions of a questionnaire, for calculated values, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.readOnly",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-9"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.maxLength",
+ "path": "Questionnaire.item.maxLength",
+ "short": "No more than this many characters",
+ "definition": "The maximum number of characters that are permitted in the answer to be considered a \"valid\" QuestionnaireResponse.",
+ "comment": "For base64binary, reflects the number of characters representing the encoded data, not the number of bytes of the binary data. The value may come from the ElementDefinition referred to by .definition.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.maxLength",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "integer"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-10"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerValueSet",
+ "path": "Questionnaire.item.answerValueSet",
+ "short": "Valueset containing permitted answers",
+ "definition": "A reference to a value set containing a list of codes representing permitted answers for a \"choice\" or \"open-choice\" question.",
+ "comment": "LOINC defines many useful value sets for questionnaire responses. See [LOINC Answer Lists](loinc.html#alist). The value may come from the ElementDefinition referred to by .definition.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.answerValueSet",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/ValueSet"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-4",
+ "que-5"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption",
+ "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": "Questionnaire.item.answerOption",
+ "short": "Permitted answer",
+ "definition": "One of the permitted answers for a \"choice\" or \"open-choice\" question.",
+ "comment": "This element can be used when the value set machinery of answerValueSet is deemed too cumbersome or when there's a need to capture possible answers that are not codes.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item.answerOption",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-4",
+ "que-5"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption.id",
+ "path": "Questionnaire.item.answerOption.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption.extension",
+ "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": "Questionnaire.item.answerOption.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption.modifierExtension",
+ "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": "Questionnaire.item.answerOption.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption.value[x]",
+ "path": "Questionnaire.item.answerOption.value[x]",
+ "short": "Answer value",
+ "definition": "A potential answer that's allowed as the answer to this question.",
+ "comment": "The data type of the value must agree with the item.type.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.answerOption.value[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "integer"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireQuestionOption"
+ }
+ ],
+ "strength": "example",
+ "description": "Allowed values to answer questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.answerOption.initialSelected",
+ "path": "Questionnaire.item.answerOption.initialSelected",
+ "short": "Whether option is selected by default",
+ "definition": "Indicates whether the answer value is selected when the list of possible answers is initially shown.",
+ "comment": "Use this instead of initial[v] if answerValueSet is present.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.answerOption.initialSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "meaningWhenMissing": "Only selected items explicitly marked to be selected",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.initial",
+ "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": "Questionnaire.item.initial",
+ "short": "Initial value(s) when item is first rendered",
+ "definition": "One or more values that should be pre-populated in the answer when initially rendering the questionnaire for user input.",
+ "comment": "The user is allowed to change the value and override the default (unless marked as read-only). If the user doesn't change the value, then this initial value will be persisted when the QuestionnaireResponse is initially created. Note that initial values can influence results. The data type of initial[x] must agree with the item.type, and only repeating items can have more then one initial value.",
+ "requirements": "In some workflows, having defaults saves time.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item.initial",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "que-8",
+ "que-13"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.initial.id",
+ "path": "Questionnaire.item.initial.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.initial.extension",
+ "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": "Questionnaire.item.initial.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.initial.modifierExtension",
+ "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": "Questionnaire.item.initial.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.initial.value[x]",
+ "path": "Questionnaire.item.initial.value[x]",
+ "short": "Actual value for initializing the question",
+ "definition": "The actual value to for an initial answer.",
+ "comment": "The type of the initial value must be consistent with the type of the item.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Questionnaire.item.initial.value[x]",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "decimal"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "date"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "uri"
+ },
+ {
+ "code": "Attachment"
+ },
+ {
+ "code": "Coding"
+ },
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuestionnaireQuestionOption2"
+ }
+ ],
+ "strength": "example",
+ "description": "Allowed values to answer questions.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/questionnaire-answers"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A - MIF rather than RIM level"
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.item.item",
+ "path": "Questionnaire.item.item",
+ "short": "Nested questionnaire items",
+ "definition": "Text, questions and other groups to be nested beneath a question or group.",
+ "comment": "There is no specified limit to the depth of nesting. However, Questionnaire authors are encouraged to consider the impact on the user and user interface of overly deep nesting.",
+ "requirements": "Reports can consist of complex nested groups.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Questionnaire.item.item",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Questionnaire.item",
+ "condition": [
+ "que-1"
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=COMP].target"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Questionnaire",
+ "path": "Questionnaire",
+ "short": "Finnish PHR Questionnaire profile"
+ },
+ {
+ "id": "Questionnaire.meta",
+ "path": "Questionnaire.meta",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.meta.profile",
+ "path": "Questionnaire.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "type",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.meta.profile:fiphrProfile",
+ "path": "Questionnaire.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-r4"
+ },
+ {
+ "id": "Questionnaire.language",
+ "path": "Questionnaire.language",
+ "binding": {
+ "strength": "required"
+ }
+ },
+ {
+ "id": "Questionnaire.extension",
+ "path": "Questionnaire.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Questionnaire.extension:myExtension",
+ "path": "Questionnaire.extension",
+ "sliceName": "myExtension",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Questionnaire.url",
+ "path": "Questionnaire.url",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.identifier",
+ "path": "Questionnaire.identifier",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.identifier.use",
+ "path": "Questionnaire.identifier.use",
+ "definition": "The purpose of this identifier. Finnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system)."
+ },
+ {
+ "id": "Questionnaire.identifier.system",
+ "path": "Questionnaire.identifier.system",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.identifier.value",
+ "path": "Questionnaire.identifier.value",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.version",
+ "path": "Questionnaire.version",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.name",
+ "path": "Questionnaire.name",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.title",
+ "path": "Questionnaire.title",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.subjectType",
+ "path": "Questionnaire.subjectType",
+ "max": "1",
+ "fixedCode": "Patient"
+ },
+ {
+ "id": "Questionnaire.date",
+ "path": "Questionnaire.date",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.description",
+ "path": "Questionnaire.description",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.useContext",
+ "path": "Questionnaire.useContext",
+ "max": "0"
+ },
+ {
+ "id": "Questionnaire.jurisdiction",
+ "path": "Questionnaire.jurisdiction",
+ "max": "0"
+ },
+ {
+ "id": "Questionnaire.code",
+ "path": "Questionnaire.code",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1,
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "https://simplifier.net/finnishphr/fiphr-vs-questionnairecode"
+ }
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode",
+ "path": "Questionnaire.code",
+ "sliceName": "fiphrCode",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.system",
+ "path": "Questionnaire.code.system",
+ "min": 1,
+ "fixedUri": "http://phr.kanta.fi/CodeSystem/fiphr-cs-questionnairecode"
+ },
+ {
+ "id": "Questionnaire.code:fiphrCode.code",
+ "path": "Questionnaire.code.code",
+ "short": "Finnish PHR: Code for questionnaire",
+ "min": 1
+ },
+ {
+ "id": "Questionnaire.item",
+ "path": "Questionnaire.item",
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRSDStepsTaken.json b/input/examples/FIPHRSDStepsTaken.json
new file mode 100644
index 0000000..9952a6b
--- /dev/null
+++ b/input/examples/FIPHRSDStepsTaken.json
@@ -0,0 +1,12640 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-stepstaken",
+ "meta": {
+ "versionId": "6",
+ "lastUpdated": "2021-02-22T09:31:27.166+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken",
+ "version": "0.1.0",
+ "name": "FIPHRSDStepsTaken",
+ "title": "Finnish PHR Steps taken profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:31:25.1295752+00:00",
+ "description": "Finnish PHR profile for fitness device measurement or patient-reported steps taken over a time period. The profile is based on the Finnish PHR Fitness profile.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-fitness",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Steps-Taken profile",
+ "definition": "The PHR Steps-Taken profile is used to store step count observations of a patient over various measurement periods.",
+ "comment": ".",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: fiphrProfile SHALL be used. Other profiles MAY be used.\r\nThe URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationStatus"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "short": "Classification of type of observation:",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Only value fitness valid in FinnishPHR (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources are fitness (physical activity) observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes for high level observation categories.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding",
+ "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": "Observation.category.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ },
+ {
+ "type": "value",
+ "path": "code"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrCategory SHALL be used. Other categories MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory",
+ "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": "Observation.category.coding",
+ "sliceName": "fiphrCategory",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.code",
+ "path": "Observation.category.coding.code",
+ "short": "Fitness observation category",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "fitness",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.coding:fiphrCategory.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Type of observation (type / code)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"name\".",
+ "comment": "Describes type of observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.id",
+ "path": "Observation.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.extension",
+ "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": "Observation.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding",
+ "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": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps",
+ "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": "Observation.code.coding",
+ "sliceName": "steps",
+ "short": "Observation of steps taken over an arbitrary period",
+ "definition": "Measured steps during an arbitrary reported period.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "66334-4",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:steps.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps",
+ "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": "Observation.code.coding",
+ "sliceName": "dailySteps",
+ "short": "Observation of steps taken in 24h",
+ "definition": "Measured steps during a 24 hour period; use dateTime with 8 characters to mark the date of observation data.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "41950-7",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps",
+ "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": "Observation.code.coding",
+ "sliceName": "weeklySteps",
+ "short": "Observation of steps taken in a week",
+ "definition": "Measured steps during a week; use period startdate-enddate to mark the observation week.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.id",
+ "path": "Observation.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.extension",
+ "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": "Observation.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.system",
+ "path": "Observation.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://loinc.org",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.version",
+ "path": "Observation.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.code",
+ "path": "Observation.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "41952-3",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.userSelected",
+ "path": "Observation.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known Patient.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Clinically relevant time/time-period for observation",
+ "definition": "The time or time-period the observed value is asserted as being true. For biological subjects - e.g. human patients - this is usually called the \"physiologically relevant time\". This is usually either the time of the procedure or of specimen collection, but very often the source of the date/time is not known, only the date/time itself.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored.",
+ "definition": "Finnish PHR: The date and time this observation is stored.",
+ "comment": "For Observations that don’t require review and verification, it may be the same as the [`lastUpdated` ](resource-definitions.html#Meta.lastUpdated) time of the resource itself. For Observations that do require review and verification for certain updates, it might not be the same as the `lastUpdated` time of the resource itself due to a non-clinically significant update that doesn’t require the new version to be reviewed and verified again.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Actual result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "An observation may have; 1) a single value here, 2) both a value and a set of related or component values, or 3) only a set of related or component values. If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].id",
+ "path": "Observation.value[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].extension",
+ "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": "Observation.value[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "short": "Numerical value (with implicit precision)",
+ "definition": "The value of the measured amount. The value includes an implicit precision in the presentation of the value.",
+ "comment": "The implicit precision in the value should always be honored. Monetary values have their own rules for handling precision (refer to standard accounting text books).",
+ "requirements": "Precision is handled implicitly in almost all cases of measurement.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "decimal"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.2 / CQ - N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].comparator",
+ "path": "Observation.value[x].comparator",
+ "short": "< | <= | >= | > - how to understand the value",
+ "definition": "How the value should be understood and represented - whether the actual value is greater or less than the stated value due to measurement issues; e.g. if the comparator is \"<\" , then the real value is < stated value.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Quantity.comparator",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "meaningWhenMissing": "If there is no comparator, then there is no modification of the value",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because the comparator modifies the interpretation of the value significantly. If there is no comparator, then there is no modification of the value",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "QuantityComparator"
+ }
+ ],
+ "strength": "required",
+ "description": "How the Quantity should be understood and represented.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN.1 / CQ.1"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL properties"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.value[x].unit",
+ "short": "Unit representation",
+ "definition": "A human-readable form of the unit.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.unit",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "fixedString": "1",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.unit"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "short": "System that defines coded unit form",
+ "definition": "The identification of the system that provides the coded form of the unit.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "Need to know the system that defines the coded form of the unit.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://unitsofmeasure.org",
+ "condition": [
+ "ele-1",
+ "qty-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "CO.codeSystem, PQ.translation.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "short": "Coded form of the unit",
+ "definition": "A computer processable form of the unit in some unit representation system.",
+ "comment": "The preferred system is UCUM, but SNOMED CT can also be used (for customary units) or ISO 4217 for currency. The context of use may additionally require a code from a particular system.",
+ "requirements": "Need a computable form of the unit that is fixed across all forms. UCUM provides this for quantities, but SNOMED CT provides many units of interest.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Quantity.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "1",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "(see OBX.6 etc.) / CQ.2"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ.code, MO.currency, PQ.translation.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Practitioner",
+ "http://hl7.org/fhir/StructureDefinition/Patient",
+ "http://hl7.org/fhir/StructureDefinition/RelatedPerson",
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ },
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Related resource that belongs to the Observation group",
+ "definition": "This observation is a group observation (e.g. a battery, a panel of tests, a set of vital sign measurements) that includes the target as a member of the group.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/Observation",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Component results",
+ "definition": "Some observations have multiple component observations. These component observations are expressed as separate code value pairs that share the same attributes. Examples include systolic and diastolic component observations for blood pressure measurement and multiple component observations for genetics observations.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes identifying names of simple observations.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.id",
+ "path": "Observation.component.code.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.extension",
+ "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": "Observation.component.code.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.system",
+ "path": "Observation.component.code.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.version",
+ "path": "Observation.component.code.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.code",
+ "path": "Observation.component.code.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding.userSelected",
+ "path": "Observation.component.code.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Actual component result",
+ "definition": "The information determined as a result of making the observation, if the information has a simple value.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "An observation exists to have a value, though it might not if it is in error, or if it represents a group of observations.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "FinnishPHR: fiphrInterpretation SHALL be used. Other interpretations MAY be used.\r\nA reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR Steps-Taken profile",
+ "definition": "The PHR Steps-Taken profile is used to store step count observations of a patient over various measurement periods."
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta"
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile"
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "fixedCanonical": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken"
+ },
+ {
+ "id": "Observation.code.coding",
+ "path": "Observation.code.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "code"
+ },
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.code.coding:steps",
+ "path": "Observation.code.coding",
+ "sliceName": "steps",
+ "short": "Observation of steps taken over an arbitrary period",
+ "definition": "Measured steps during an arbitrary reported period.",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:steps.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:steps.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "66334-4"
+ },
+ {
+ "id": "Observation.code.coding:dailySteps",
+ "path": "Observation.code.coding",
+ "sliceName": "dailySteps",
+ "short": "Observation of steps taken in 24h",
+ "definition": "Measured steps during a 24 hour period; use dateTime with 8 characters to mark the date of observation data.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:dailySteps.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "41950-7"
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps",
+ "path": "Observation.code.coding",
+ "sliceName": "weeklySteps",
+ "short": "Observation of steps taken in a week",
+ "definition": "Measured steps during a week; use period startdate-enddate to mark the observation week.",
+ "max": "1"
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.system",
+ "path": "Observation.code.coding.system",
+ "fixedUri": "http://loinc.org"
+ },
+ {
+ "id": "Observation.code.coding:weeklySteps.code",
+ "path": "Observation.code.coding.code",
+ "fixedCode": "41952-3"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x].value",
+ "path": "Observation.value[x].value",
+ "min": 1
+ },
+ {
+ "id": "Observation.value[x].unit",
+ "path": "Observation.value[x].unit",
+ "min": 1,
+ "fixedString": "1"
+ },
+ {
+ "id": "Observation.value[x].system",
+ "path": "Observation.value[x].system",
+ "min": 1,
+ "fixedUri": "http://unitsofmeasure.org"
+ },
+ {
+ "id": "Observation.value[x].code",
+ "path": "Observation.value[x].code",
+ "min": 1,
+ "fixedCode": "1"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "max": "0"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/FIPHRsdVitalsigns.json b/input/examples/FIPHRsdVitalsigns.json
new file mode 100644
index 0000000..8c27296
--- /dev/null
+++ b/input/examples/FIPHRsdVitalsigns.json
@@ -0,0 +1,13458 @@
+{
+ "resourceType": "StructureDefinition",
+ "id": "fiphr-sd-vitalsigns",
+ "meta": {
+ "versionId": "13",
+ "lastUpdated": "2021-02-22T09:56:12.319+00:00"
+ },
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-vitalsigns",
+ "version": "0.1.0",
+ "name": "FIPHRsdVitalsigns",
+ "title": "Finnish PHR Vital Signs profile",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-02-22T09:56:10.9020658+00:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR base profile for Observation resource",
+ "purpose": "Finnish PHR abstract base profile for Observation used in Vital signs measurements made about a patient. Base profile defines profiled elements used in all vital signs observation resources.",
+ "fhirVersion": "4.0.1",
+ "kind": "resource",
+ "abstract": false,
+ "type": "Observation",
+ "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns",
+ "derivation": "constraint",
+ "snapshot": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR base profile for Observation resource",
+ "definition": "The FHIR Vitals Signs profile sets minimum expectations for the Observation Resource to record, search and fetch the vital signs associated with a patient.",
+ "comment": "Used for simple observations such as device measurements, laboratory atomic results, vital signs, height, weight, smoking status, comments, etc. Other resources are used to provide context for observations such as laboratory reports, etc.",
+ "alias": [
+ "Vital Signs",
+ "Measurement",
+ "Results",
+ "Tests"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation",
+ "min": 0,
+ "max": "*"
+ },
+ "constraint": [
+ {
+ "key": "dom-2",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
+ "expression": "contained.contained.empty()",
+ "xpath": "not(parent::f:contained and f:contained)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-4",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
+ "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-3",
+ "severity": "error",
+ "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource",
+ "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()",
+ "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice",
+ "valueBoolean": true
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation",
+ "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time."
+ }
+ ],
+ "key": "dom-6",
+ "severity": "warning",
+ "human": "A resource should have narrative for robust management",
+ "expression": "text.`div`.exists()",
+ "xpath": "exists(f:text/h:div)",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "dom-5",
+ "severity": "error",
+ "human": "If a resource is contained in another resource, it SHALL NOT have a security label",
+ "expression": "contained.meta.security.empty()",
+ "xpath": "not(exists(f:contained/*/f:meta/f:security))",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ },
+ {
+ "key": "obs-7",
+ "severity": "error",
+ "human": "If Observation.code is the same as an Observation.component.code then the value element associated with the code SHALL NOT be present",
+ "expression": "value.empty() or component.code.where(coding.intersect(%resource.code.coding).exists()).empty()",
+ "xpath": "not(f:*[starts-with(local-name(.), 'value')] and (for $coding in f:code/f:coding return f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value] [f:system/@value=$coding/f:system/@value]))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "obs-6",
+ "severity": "error",
+ "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present",
+ "expression": "dataAbsentReason.empty() or value.empty()",
+ "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "vs-2",
+ "severity": "error",
+ "human": "If there is no component or hasMember element then either a value[x] or a data absent reason must be present.",
+ "expression": "(component.empty() and hasMember.empty()) implies (dataAbsentReason.exists() or value.exists())",
+ "xpath": "f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX"
+ },
+ {
+ "identity": "rim",
+ "map": "Observation[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.id",
+ "path": "Observation.id",
+ "short": "Logical id of this artifact",
+ "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
+ "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "isSummary": true
+ },
+ {
+ "id": "Observation.meta",
+ "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": "Observation.meta",
+ "short": "Metadata about the resource",
+ "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.meta",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Meta"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.id",
+ "path": "Observation.meta.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.extension",
+ "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": "Observation.meta.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.versionId",
+ "path": "Observation.meta.versionId",
+ "short": "Version specific identifier",
+ "definition": "The version specific identifier, as it appears in the version portion of the URL. This value changes when the resource is created, updated, or deleted.",
+ "comment": "The server assigns this value, and ignores what the client specifies, except in the case that the server is imposing version integrity on updates/deletes.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.versionId",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "id"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.lastUpdated",
+ "path": "Observation.meta.lastUpdated",
+ "short": "When the resource version last changed",
+ "definition": "When the resource last changed - e.g. when the version changed.",
+ "comment": "This value is always populated except when the resource is first being created. The server / resource manager sets this value; what a client provides is irrelevant. This is equivalent to the HTTP Last-Modified and SHOULD have the same value on a [read](http.html#read) interaction.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.lastUpdated",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.source",
+ "path": "Observation.meta.source",
+ "short": "Identifies where the resource comes from",
+ "definition": "A uri that identifies the source system of the resource. This provides a minimal amount of [Provenance](provenance.html#) information that can be used to track or differentiate the source of information in the resource. The source may identify another FHIR server, document, message, database, etc.",
+ "comment": "In the provenance resource, this corresponds to Provenance.entity.what[x]. The exact use of the source (and the implied Provenance.entity.role) is left to implementer discretion. Only one nominated source is allowed; for additional provenance details, a full Provenance resource should be used. \n\nThis element can be used to indicate where the current master source of a resource that has a canonical URL if the resource is no longer hosted at the canonical URL.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Meta.source",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Profiles this resource claims to conform to",
+ "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "short": "Profiles this resource claims to conform to",
+ "definition": "A list of profiles (references to [StructureDefinition](structuredefinition.html#) resources) that this resource claims to conform to. The URL is a reference to [StructureDefinition.url](structuredefinition-definitions.html#StructureDefinition.url).",
+ "comment": "It is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time. The list of profile URLs is a set.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Meta.profile",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "canonical",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/StructureDefinition"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.meta.security",
+ "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": "Observation.meta.security",
+ "short": "Security Labels applied to this resource",
+ "definition": "Security labels applied to this resource. These tags connect specific resources to the overall security policy and infrastructure.",
+ "comment": "The security labels can be updated without changing the stated version of the resource. The list of security labels is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.security",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "SecurityLabels"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "Security Labels from the Healthcare Privacy and Security Classification System.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/security-labels"
+ },
+ "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": "Observation.meta.tag",
+ "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": "Observation.meta.tag",
+ "short": "Tags applied to this resource",
+ "definition": "Tags applied to this resource. Tags are intended to be used to identify and relate resources to process and workflow, and applications are not required to consider the tags when interpreting the meaning of a resource.",
+ "comment": "The tags can be updated without changing the stated version of the resource. The list of tags is a set. Uniqueness is based the system/code, and version and display are ignored.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Meta.tag",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Tags"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes that represent various types of tags, commonly workflow-related; e.g. \"Needs review by Dr. Jones\".",
+ "valueSet": "http://hl7.org/fhir/ValueSet/common-tags"
+ },
+ "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": "Observation.implicitRules",
+ "path": "Observation.implicitRules",
+ "short": "A set of rules under which this content was created",
+ "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.",
+ "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Resource.implicitRules",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "short": "Language of the resource content",
+ "definition": "The base language in which the resource is written.",
+ "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Resource.language",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/languages"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.text",
+ "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": "Observation.text",
+ "short": "Text summary of the resource, for human interpretation",
+ "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.",
+ "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.",
+ "alias": [
+ "narrative",
+ "html",
+ "xhtml",
+ "display"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "DomainResource.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Narrative"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text?"
+ }
+ ]
+ },
+ {
+ "id": "Observation.contained",
+ "path": "Observation.contained",
+ "short": "Contained, inline Resources",
+ "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.",
+ "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.",
+ "alias": [
+ "inline resources",
+ "anonymous resources",
+ "contained resources"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.contained",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Resource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "Entity. Role, or Act"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension",
+ "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": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "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": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "short": "Application identification",
+ "definition": "Application identification information. SHALL have same values that has been registered for application in PHR application catalog.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.modifierExtension",
+ "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": "Observation.modifierExtension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Extensions that cannot be ignored",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "DomainResource.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "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": "Observation.identifier",
+ "short": "Business Identifier for observation",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "requirements": "Allows observations to be distinguished and referenced.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.identifier",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.identifier"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.identifier"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.21 For OBX segments from systems without OBX-21 support a combination of ORC/OBR and OBX must be negotiated between trading partners to uniquely identify the OBX segment. Depending on how V2 has been implemented each of these may be an option: 1) OBR-3 + OBX-3 + OBX-4 or 2) OBR-3 + OBR-4 + OBX-3 + OBX-4 or 2) some other way to uniquely ID the OBR/ORC + OBX-3 + OBX-4."
+ },
+ {
+ "identity": "rim",
+ "map": "id"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.id",
+ "path": "Observation.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.extension",
+ "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": "Observation.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.type",
+ "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": "Observation.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ },
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.period",
+ "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": "Observation.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "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": "Observation.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.basedOn",
+ "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": "Observation.basedOn",
+ "short": "Fulfills plan, proposal or order",
+ "definition": "A plan, proposal or order that is fulfilled in whole or in part by this event. For example, a MedicationRequest may require a patient to have laboratory test performed before it is dispensed.",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc.). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository.",
+ "requirements": "Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon.",
+ "alias": [
+ "Fulfills"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.basedOn",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/CarePlan",
+ "http://hl7.org/fhir/StructureDefinition/DeviceRequest",
+ "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation",
+ "http://hl7.org/fhir/StructureDefinition/MedicationRequest",
+ "http://hl7.org/fhir/StructureDefinition/NutritionOrder",
+ "http://hl7.org/fhir/StructureDefinition/ServiceRequest"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.basedOn"
+ },
+ {
+ "identity": "v2",
+ "map": "ORC"
+ },
+ {
+ "identity": "rim",
+ "map": ".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.partOf",
+ "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": "Observation.partOf",
+ "short": "Part of referenced event",
+ "definition": "A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure.",
+ "comment": "To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation.",
+ "alias": [
+ "Container"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.partOf",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/MedicationAdministration",
+ "http://hl7.org/fhir/StructureDefinition/MedicationDispense",
+ "http://hl7.org/fhir/StructureDefinition/MedicationStatement",
+ "http://hl7.org/fhir/StructureDefinition/Procedure",
+ "http://hl7.org/fhir/StructureDefinition/Immunization",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.partOf"
+ },
+ {
+ "identity": "v2",
+ "map": "Varies by domain"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=FLFS].target"
+ }
+ ]
+ },
+ {
+ "id": "Observation.status",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint",
+ "valueString": "default: final"
+ }
+ ],
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.status",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "final",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isModifier": true,
+ "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "Status"
+ }
+ ],
+ "strength": "required",
+ "description": "Codes providing the status of an observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-status|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.status"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.status"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 445584004 |Report by finality status|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-11"
+ },
+ {
+ "identity": "rim",
+ "map": "status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of \"revise\""
+ }
+ ]
+ },
+ {
+ "id": "Observation.category",
+ "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": "Observation.category",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "coding.code"
+ },
+ {
+ "type": "value",
+ "path": "coding.system"
+ }
+ ],
+ "ordered": false,
+ "rules": "open"
+ },
+ "short": "Classification of type of observation.",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Vital-sign code SHALL be used. Additional codes MAY be used. (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources all vital signs observations.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "preferred",
+ "description": "Classification of type of observation.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat",
+ "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": "Observation.category",
+ "sliceName": "VSCat",
+ "short": "Classification of type of observation",
+ "definition": "A code that classifies the general type of observation being made.",
+ "comment": "In addition to the required category valueset, this element allows various categorization schemes based on the owner’s definition of the category and effectively multiple categories can be used at once. The level of granularity is defined by the category concepts in the value set.",
+ "requirements": "Used for filtering what observations are retrieved and displayed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.category",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "required",
+ "description": "Codes for high level observation categories.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-category"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.class"
+ },
+ {
+ "identity": "rim",
+ "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.id",
+ "path": "Observation.category.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.extension",
+ "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": "Observation.category.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding",
+ "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": "Observation.category.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.id",
+ "path": "Observation.category.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.extension",
+ "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": "Observation.category.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.system",
+ "path": "Observation.category.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.version",
+ "path": "Observation.category.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.code",
+ "path": "Observation.category.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "fixedCode": "vital-signs",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.coding.userSelected",
+ "path": "Observation.category.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.category:VSCat.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.category.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.code",
+ "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": "Observation.code",
+ "short": "Coded Responses from C-CDA Vital Sign Results",
+ "definition": "Coded Responses from C-CDA Vital Sign Results.",
+ "comment": "Describes type of observation.",
+ "requirements": "5. SHALL contain exactly one [1..1] code, where the @code SHOULD be selected from ValueSet HITSP Vital Sign Result Type 2.16.840.1.113883.3.88.12.80.62 DYNAMIC (CONF:7301).",
+ "alias": [
+ "Name"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.code"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "116680003 |Is a|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject",
+ "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": "Observation.subject",
+ "short": "Who and/or what the observation is about",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.subject",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.subject"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "PID-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=RTGT]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.id",
+ "path": "Observation.subject.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.extension",
+ "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": "Observation.subject.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.type",
+ "path": "Observation.subject.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier",
+ "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": "Observation.subject.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.id",
+ "path": "Observation.subject.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.extension",
+ "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": "Observation.subject.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.use",
+ "path": "Observation.subject.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.type",
+ "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": "Observation.subject.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.system",
+ "path": "Observation.subject.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.value",
+ "path": "Observation.subject.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.period",
+ "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": "Observation.subject.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "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": "Observation.subject.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.subject.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.focus",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
+ "valueCode": "trial-use"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
+ "valueCode": "4.0.0"
+ }
+ ],
+ "path": "Observation.focus",
+ "short": "What the observation is about, when it is not about the subject of record",
+ "definition": "The actual focus of an observation when it is not the patient of record representing something or someone associated with the patient such as a spouse, parent, fetus, or donor. For example, fetus observations in a mother's record. The focus of an observation could also be an existing condition, an intervention, the subject's diet, another observation of the subject, or a body structure such as tumor or implanted device. An example use case would be using the Observation resource to capture whether the mother is trained to change her child's tracheostomy tube. In this example, the child is the patient of record and the mother is the focus.",
+ "comment": "Typically, an observation is made about the subject - a patient, or group of patients, location, or device - and the distinction between the subject and what is directly measured for an observation is specified in the observation code itself ( e.g., \"Blood Glucose\") and does not need to be represented separately using this element. Use `specimen` if a reference to a specimen is required. If a code is required instead of a resource use either `bodysite` for bodysites or the standard extension [focusCode](extension-observation-focuscode.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.focus",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Resource"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SBJ]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.subject"
+ }
+ ]
+ },
+ {
+ "id": "Observation.encounter",
+ "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": "Observation.encounter",
+ "short": "Healthcare event during which this observation is made",
+ "definition": "The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made.",
+ "comment": "This will typically be the encounter the event occurred within, but some events may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter (e.g. pre-admission laboratory tests).",
+ "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.",
+ "alias": [
+ "Context"
+ ],
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.encounter",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Encounter"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.context"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.context"
+ },
+ {
+ "identity": "v2",
+ "map": "PV1"
+ },
+ {
+ "identity": "rim",
+ "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "short": "Often just a dateTime for Vital Signs",
+ "definition": "Often just a dateTime for Vital Signs.",
+ "comment": "At least a date should be present unless this observation is a historical report. For recording imprecise or \"fuzzy\" times (For example, a blood glucose measurement taken \"after breakfast\") use the [Timing](datatypes.html#timing) datatype which allow the measurement to be tied to regular life events.",
+ "requirements": "Knowing when an observation was deemed true is important to its relevance as well as determining trends.",
+ "alias": [
+ "Occurrence"
+ ],
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.effective[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-1",
+ "severity": "error",
+ "human": "if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day",
+ "expression": "($this as dateTime).toString().length() >= 8",
+ "xpath": "f:effectiveDateTime[matches(@value, '^\\d{4}-\\d{2}-\\d{2}')]",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.occurrence[x]"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.done[x]"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "Updated when the result is updated.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.issued",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "instant"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.recorded"
+ },
+ {
+ "identity": "v2",
+ "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=AUT].time"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer",
+ "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": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "requirements": "May give a degree of confidence in the observation and also indicates where follow-up questions should be directed.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.performer",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "workflow",
+ "map": "Event.performer.actor"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.actor"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.15 / (Practitioner) OBX-16, PRT-5:PRT-4='RO' / (Device) OBX-18 , PRT-10:PRT-4='EQUIP' / (Organization) OBX-23, PRT-8:PRT-4='PO'"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=PRF]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.id",
+ "path": "Observation.performer.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.extension",
+ "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": "Observation.performer.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.type",
+ "path": "Observation.performer.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier",
+ "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": "Observation.performer.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.id",
+ "path": "Observation.performer.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.extension",
+ "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": "Observation.performer.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.use",
+ "path": "Observation.performer.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.type",
+ "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": "Observation.performer.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.system",
+ "path": "Observation.performer.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.value",
+ "path": "Observation.performer.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.period",
+ "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": "Observation.performer.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "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": "Observation.performer.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.performer.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.value[x]",
+ "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": "Observation.value[x]",
+ "short": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "definition": "Vital Signs value are recorded using the Quantity data type. For supporting observations such as Cuff size could use other datatypes such as CodeableConcept.",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-7",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "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": "Observation.dataAbsentReason",
+ "short": "Why the result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.value[x] is missing.",
+ "comment": "Null or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"specimen unsatisfactory\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Note that an observation may only be reported if there are values to report. For example differential cell counts values may be reported only when > 0. Because of these options, use-case agreements are required to interpret general observations for null or exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-2"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes specifying why the result (Observation.value[x]) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "xml:id (or equivalent in JSON)",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "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": "Observation.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason",
+ "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": "Observation.dataAbsentReason.coding",
+ "sliceName": "fiphrDataAbsentReason",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.extension",
+ "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": "Observation.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.version",
+ "path": "Observation.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.userSelected",
+ "path": "Observation.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation",
+ "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": "Observation.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.id",
+ "path": "Observation.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.extension",
+ "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": "Observation.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "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": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "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": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.id",
+ "path": "Observation.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.extension",
+ "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": "Observation.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.version",
+ "path": "Observation.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.userSelected",
+ "path": "Observation.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note",
+ "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": "Observation.note",
+ "short": "Comments about the observation",
+ "definition": "Comments about the observation or the results.",
+ "comment": "May include general statements about the observation, or statements about significant, unexpected or unreliable results values, or information about its source when relevant to its interpretation.",
+ "requirements": "Need to be able to provide free text additional information.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.note",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Annotation"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act"
+ },
+ {
+ "identity": "v2",
+ "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"
+ },
+ {
+ "identity": "rim",
+ "map": "subjectOf.observationEvent[code=\"annotation\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.id",
+ "path": "Observation.note.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.extension",
+ "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": "Observation.note.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "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": "Observation.note.author[x]",
+ "short": "Individual responsible for the annotation",
+ "definition": "The individual responsible for making the annotation.",
+ "comment": "Organization is used when there's no need for specific attribution as to who made the comment.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Annotation.author[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "fixedReference": {
+ "reference": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ },
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.participant[typeCode=AUT].role"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].id",
+ "path": "Observation.note.author[x].id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].extension",
+ "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": "Observation.note.author[x].extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].reference",
+ "path": "Observation.note.author[x].reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].type",
+ "path": "Observation.note.author[x].type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier",
+ "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": "Observation.note.author[x].identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.id",
+ "path": "Observation.note.author[x].identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.extension",
+ "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": "Observation.note.author[x].identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.use",
+ "path": "Observation.note.author[x].identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.type",
+ "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": "Observation.note.author[x].identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.system",
+ "path": "Observation.note.author[x].identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.value",
+ "path": "Observation.note.author[x].identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.period",
+ "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": "Observation.note.author[x].identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].identifier.assigner",
+ "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": "Observation.note.author[x].identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.author[x].display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.note.author[x].display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.time",
+ "path": "Observation.note.time",
+ "short": "When the annotation was made",
+ "definition": "Indicates when this particular annotation was made.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Annotation.time",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.effectiveTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.note.text",
+ "path": "Observation.note.text",
+ "short": "The annotation - text content (as markdown)",
+ "definition": "The text of the annotation in markdown format.",
+ "comment": "Systems are not required to have markdown support, so the text should be readable without markdown processing. The markdown syntax is GFM - see https://github.github.com/gfm/",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Annotation.text",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "markdown"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Act.text"
+ }
+ ]
+ },
+ {
+ "id": "Observation.bodySite",
+ "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": "Observation.bodySite",
+ "short": "Observed body part",
+ "definition": "Indicates the site on the subject's body where the observation was made (i.e. the target site).",
+ "comment": "Only used if not implicit in code found in Observation.code. In many systems, this may be represented as a related observation instead of an inline component. \n\nIf the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ bodySite](extension-bodysite.html).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.bodySite",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "BodySite"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes describing anatomical locations. May include laterality.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/body-site"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123037004 |Body structure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-20"
+ },
+ {
+ "identity": "rim",
+ "map": "targetSiteCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "718497002 |Inherent location|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.method",
+ "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": "Observation.method",
+ "short": "How it was done",
+ "definition": "Indicates the mechanism used to perform the observation.",
+ "comment": "Only used if not implicit in code for Observation.code.",
+ "requirements": "In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.method",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationMethod"
+ }
+ ],
+ "strength": "example",
+ "description": "Methods for simple observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-methods"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17"
+ },
+ {
+ "identity": "rim",
+ "map": "methodCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.specimen",
+ "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": "Observation.specimen",
+ "short": "Specimen used for this observation",
+ "definition": "The specimen that was used when this observation was made.",
+ "comment": "Should only be used if not implicit in code found in `Observation.code`. Observations are not made on specimens themselves; they are made on a subject, but in many cases by the means of a specimen. Note that although specimens are often involved, they are not always tracked and reported explicitly. Also note that observation resources may be used in contexts that track the specimen explicitly (e.g. Diagnostic Report).",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.specimen",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Specimen"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 123038009 |Specimen|"
+ },
+ {
+ "identity": "v2",
+ "map": "SPM segment"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=SPC].specimen"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "704319004 |Inherent in|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device",
+ "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": "Observation.device",
+ "short": "(Measurement) Device",
+ "definition": "The device used to generate the observation data.",
+ "comment": "Note that this is not meant to represent a device involved in the transmission of the result, e.g., a gateway. Such devices may be documented using the Provenance resource where relevant.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.device",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Device",
+ "http://hl7.org/fhir/StructureDefinition/DeviceMetric"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 49062001 |Device|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-17 / PRT -10"
+ },
+ {
+ "identity": "rim",
+ "map": "participation[typeCode=DEV]"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "424226004 |Using device|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.id",
+ "path": "Observation.device.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.extension",
+ "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": "Observation.device.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.reference",
+ "path": "Observation.device.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.type",
+ "path": "Observation.device.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier",
+ "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": "Observation.device.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.id",
+ "path": "Observation.device.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.extension",
+ "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": "Observation.device.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.use",
+ "path": "Observation.device.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.type",
+ "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": "Observation.device.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.system",
+ "path": "Observation.device.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.value",
+ "path": "Observation.device.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.period",
+ "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": "Observation.device.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.identifier.assigner",
+ "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": "Observation.device.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.device.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.device.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange",
+ "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": "Observation.referenceRange",
+ "short": "Provides guide for interpretation",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range. Multiple reference ranges are interpreted as an \"OR\". In other words, to represent two distinct target populations, two `referenceRange` elements would be used.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "obs-3",
+ "severity": "error",
+ "human": "Must have at least a low or a high or text",
+ "expression": "low.exists() or high.exists() or text.exists()",
+ "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.id",
+ "path": "Observation.referenceRange.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.extension",
+ "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": "Observation.referenceRange.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.modifierExtension",
+ "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": "Observation.referenceRange.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.low",
+ "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": "Observation.referenceRange.low",
+ "short": "Low Range, if relevant",
+ "definition": "The value of the low bound of the reference range. The low bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the low bound is omitted, it is assumed to be meaningless (e.g. reference range is <=2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.low",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.low"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.high",
+ "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": "Observation.referenceRange.high",
+ "short": "High Range, if relevant",
+ "definition": "The value of the high bound of the reference range. The high bound of the reference range endpoint is inclusive of the value (e.g. reference range is >=5 - <=9). If the high bound is omitted, it is assumed to be meaningless (e.g. reference range is >= 2.3).",
+ "comment": "The context of use may frequently define what kind of quantity this is and therefore what kind of units can be used. The context of use may also restrict the values for the comparator.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.high",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity",
+ "profile": [
+ "http://hl7.org/fhir/StructureDefinition/SimpleQuantity"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ },
+ {
+ "key": "sqty-1",
+ "severity": "error",
+ "human": "The comparator is not used on a SimpleQuantity",
+ "expression": "comparator.empty()",
+ "xpath": "not(exists(f:comparator))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isModifier": false,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:IVL_PQ.high"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.type",
+ "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": "Observation.referenceRange.type",
+ "short": "Reference range qualifier",
+ "definition": "Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed.",
+ "requirements": "Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeMeaning"
+ }
+ ],
+ "strength": "preferred",
+ "description": "Code for the meaning of a reference range.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-meaning"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.appliesTo",
+ "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": "Observation.referenceRange.appliesTo",
+ "short": "Reference range population",
+ "definition": "Codes to indicate the target population this reference range applies to. For example, a reference range may be based on the normal population or a particular sex or race. Multiple `appliesTo` are interpreted as an \"AND\" of the target populations. For example, to represent a target population of African American females, both a code of female and a code for African American would be used.",
+ "comment": "This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed.",
+ "requirements": "Need to be able to identify the target population for proper interpretation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.referenceRange.appliesTo",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationRangeType"
+ }
+ ],
+ "strength": "example",
+ "description": "Codes identifying the population the reference range applies to.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/referencerange-appliesto"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values| OR \r< 365860008 |General clinical state finding| \rOR \r< 250171008 |Clinical history or observation findings| OR \r< 415229000 |Racial group| OR \r< 365400002 |Finding of puberty stage| OR\r< 443938003 |Procedure carried out on subject|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-10"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.age",
+ "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": "Observation.referenceRange.age",
+ "short": "Applicable age range, if relevant",
+ "definition": "The age at which this reference range is applicable. This is a neonatal age (e.g. number of weeks at term) if the meaning says so.",
+ "comment": "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.",
+ "requirements": "Some analytes vary greatly over age.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.age",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Range"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "rng-2",
+ "severity": "error",
+ "human": "If present, low SHALL have a lower value than high",
+ "expression": "low.empty() or high.empty() or (low <= high)",
+ "xpath": "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))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "NR and also possibly SN (but see also quantity)"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL [lowClosed=\"true\" and highClosed=\"true\"]or URG"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.referenceRange.text",
+ "path": "Observation.referenceRange.text",
+ "short": "Text based reference range in an observation",
+ "definition": "Text based reference range in an observation which may be used when a quantitative range is not appropriate for an observation. An example would be a reference value of \"Negative\" or a list or table of \"normals\".",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.referenceRange.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-7"
+ },
+ {
+ "identity": "rim",
+ "map": "value:ST"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember",
+ "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": "Observation.hasMember",
+ "short": "Used when reporting vital signs panel components",
+ "definition": "Used when reporting vital signs panel components.",
+ "comment": "When using this element, an observation will typically have either a value or a set of related resources, although both may be present in some cases. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below. Note that a system may calculate results from [QuestionnaireResponse](questionnaireresponse.html) into a final score and represent the score as an Observation.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.hasMember",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.id",
+ "path": "Observation.hasMember.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.extension",
+ "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": "Observation.hasMember.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.reference",
+ "path": "Observation.hasMember.reference",
+ "short": "Literal reference, Relative, internal or absolute URL",
+ "definition": "A reference to a location at which the other resource is found. The reference may be a relative reference, in which case it is relative to the service base URL, or an absolute URL that resolves to the location where the resource is found. The reference may be version specific or not. If the reference is not to a FHIR RESTful server, then it should be assumed to be version specific. Internal fragment references (start with '#') refer to contained resources.",
+ "comment": "Using absolute URLs provides a stable scalable approach suitable for a cloud/web context, while using relative/logical references provides a flexible approach suitable for use when trading across closed eco-system boundaries. Absolute URLs do not need to point to a FHIR RESTful server, though this is the preferred approach. If the URL conforms to the structure \"/[type]/[id]\" then it should be assumed that the reference is to a FHIR RESTful server.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.reference",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "ref-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.type",
+ "path": "Observation.hasMember.type",
+ "short": "Type the reference refers to (e.g. \"Patient\")",
+ "definition": "The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.\n\nThe type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. \"Patient\" is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).",
+ "comment": "This element is used to indicate the type of the target of the reference. This may be used which ever of the other elements are populated (or not). In some cases, the type of the target may be determined by inspection of the reference (e.g. a RESTful URL) or by resolving the target of the reference; if both the type and a reference is provided, the reference SHALL resolve to a resource of the same type as that specified.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "FHIRResourceTypeExt"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Aa resource (or, for logical models, the URI of the logical model).",
+ "valueSet": "http://hl7.org/fhir/ValueSet/resource-types"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier",
+ "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": "Observation.hasMember.identifier",
+ "short": "Logical reference, when literal reference is not known",
+ "definition": "An identifier for the target resource. This is used when there is no way to reference the other resource directly, either because the entity it represents is not available through a FHIR server, or because there is no way for the author of the resource to convert a known identifier to an actual location. There is no requirement that a Reference.identifier point to something that is actually exposed as a FHIR instance, but it SHALL point to a business concept that would be expected to be exposed as a FHIR instance, and that instance would need to be of a FHIR resource type allowed by the reference.",
+ "comment": "When an identifier is provided in place of a reference, any system processing the reference will only be able to resolve the identifier to a reference if it understands the business context in which the identifier is used. Sometimes this is global (e.g. a national identifier) but often it is not. For this reason, none of the useful mechanisms described for working with references (e.g. chaining, includes) are possible, nor should servers be expected to be able resolve the reference. Servers may accept an identifier based reference untouched, resolve it, and/or reject it - see CapabilityStatement.rest.resource.referencePolicy. \n\nWhen both an identifier and a literal reference are provided, the literal reference is preferred. Applications processing the resource are allowed - but not required - to check that the identifier matches the literal reference\n\nApplications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it.\n\nReference is intended to point to a structure that can potentially be expressed as a FHIR resource, though there is no need for it to exist as an actual FHIR resource instance - except in as much as an application wishes to actual find the target of the reference. The content referred to be the identifier must meet the logical constraints implied by any limitations on what resource types are permitted for the reference. For example, it would not be legitimate to send the identifier for a drug prescription if the type were Reference(Observation|DiagnosticReport). One of the use-cases for Reference.identifier is the situation where no FHIR representation exists (where the type is Reference (Any).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.identifier",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Identifier"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX / EI (occasionally, more often EI maps to a resource id or a URL)"
+ },
+ {
+ "identity": "rim",
+ "map": "II - The Identifier class is a little looser than the v3 type II because it allows URIs as well as registered OIDs or GUIDs. Also maps to Role[classCode=IDENT]"
+ },
+ {
+ "identity": "servd",
+ "map": "Identifier"
+ },
+ {
+ "identity": "rim",
+ "map": ".identifier"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.id",
+ "path": "Observation.hasMember.identifier.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.extension",
+ "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": "Observation.hasMember.identifier.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.use",
+ "path": "Observation.hasMember.identifier.use",
+ "short": "usual | official | temp | secondary | old (If known)",
+ "definition": "The purpose of this identifier.",
+ "comment": "Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.",
+ "requirements": "Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.use",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one.",
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierUse"
+ }
+ ],
+ "strength": "required",
+ "description": "Identifies the purpose for this identifier, if known .",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-use|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.type",
+ "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": "Observation.hasMember.identifier.type",
+ "short": "Description of identifier",
+ "definition": "A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.",
+ "comment": "This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.",
+ "requirements": "Allows users to make use of identifiers when the identifier system is not known.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.type",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "IdentifierType"
+ },
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding",
+ "valueBoolean": true
+ }
+ ],
+ "strength": "extensible",
+ "description": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/identifier-type"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.5"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.code or implied by context"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.system",
+ "path": "Observation.hasMember.identifier.system",
+ "short": "The namespace for the identifier value",
+ "definition": "Establishes the namespace for the value - that is, a URL that describes a set values that are unique.",
+ "comment": "Identifier.system is always case sensitive.",
+ "requirements": "There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "http://www.acme.com/identifiers/patient"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / EI-2-4"
+ },
+ {
+ "identity": "rim",
+ "map": "II.root or Role.id.root"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierType"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.value",
+ "path": "Observation.hasMember.identifier.value",
+ "short": "The value that is unique",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system.",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.value",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "example": [
+ {
+ "label": "General",
+ "valueString": "123456"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.1 / EI.1"
+ },
+ {
+ "identity": "rim",
+ "map": "II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"
+ },
+ {
+ "identity": "servd",
+ "map": "./Value"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.period",
+ "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": "Observation.hasMember.identifier.period",
+ "short": "Time period when id is/was valid for use",
+ "definition": "Time period during which identifier is/was valid for use.",
+ "comment": "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Identifier.period",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "per-1",
+ "severity": "error",
+ "human": "If present, start SHALL have a lower value than end",
+ "expression": "start.hasValue().not() or end.hasValue().not() or (start <= end)",
+ "xpath": "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))",
+ "source": "http://hl7.org/fhir/StructureDefinition/Identifier"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "DR"
+ },
+ {
+ "identity": "rim",
+ "map": "IVL[lowClosed=\"true\" and highClosed=\"true\"] or URG[lowClosed=\"true\" and highClosed=\"true\"]"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.7 + CX.8"
+ },
+ {
+ "identity": "rim",
+ "map": "Role.effectiveTime or implied by context"
+ },
+ {
+ "identity": "servd",
+ "map": "./StartDate and ./EndDate"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "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": "Observation.hasMember.identifier.assigner",
+ "short": "Organization that issued id (may be just text)",
+ "definition": "Organization that issued/manages the identifier.",
+ "comment": "The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Identifier.assigner",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/Organization"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "CX.4 / (CX.4,CX.9,CX.10)"
+ },
+ {
+ "identity": "rim",
+ "map": "II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"
+ },
+ {
+ "identity": "servd",
+ "map": "./IdentifierIssuingAuthority"
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.hasMember.display",
+ "short": "Text alternative for the resource",
+ "definition": "Plain text narrative that identifies the resource in addition to the resource reference.",
+ "comment": "This is generally not the same as the Resource.text of the referenced resource. The purpose is to identify what's being referenced, not to fully describe it.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Reference.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "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": "Observation.derivedFrom",
+ "short": "Related measurements the observation is made from",
+ "definition": "The target resource that represents a measurement from which this observation value is derived. For example, a calculated anion gap or a fetal measurement based on an ultrasound image.",
+ "comment": "All the reference choices that are listed in this element can represent clinical observations and other measurements that may be the source for a derived value. The most common reference will be another Observation. For a discussion on the ways Observations can assembled in groups together, see [Notes](observation.html#obsgrouping) below.",
+ "min": 0,
+ "max": "0",
+ "base": {
+ "path": "Observation.derivedFrom",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/DocumentReference",
+ "http://hl7.org/fhir/StructureDefinition/ImagingStudy",
+ "http://hl7.org/fhir/StructureDefinition/Media",
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/MolecularSequence",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ]
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ref-1",
+ "severity": "error",
+ "human": "SHALL have a contained resource if a local reference is provided",
+ "expression": "reference.startsWith('#').not() or (reference.substring(1).trace('url') in %rootResource.contained.id.trace('ids'))",
+ "xpath": "not(starts-with(f:reference/@value, '#')) or exists(ancestor::*[self::f:entry or self::f:parameter]/f:resource/f:*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')]|/*/f:contained/f:*[f:id/@value=substring-after(current()/f:reference/@value, '#')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "The target of a resource reference is a RIM entry point (Act, Role, or Entity)"
+ },
+ {
+ "identity": "v2",
+ "map": "Relationships established by OBX-4 usage"
+ },
+ {
+ "identity": "rim",
+ "map": ".targetObservation"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component",
+ "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": "Observation.component",
+ "short": "Used when reporting systolic and diastolic blood pressure.",
+ "definition": "Used when reporting systolic and diastolic blood pressure.",
+ "comment": "Profiled further in derived profiles that use components.",
+ "requirements": "Component observations share the same attributes in the Observation resource as the primary observation and are always treated a part of a single observation (they are not separable). However, the reference range for the primary observation value is not inherited by the component values and is required when appropriate for each component observation.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "BackboneElement"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "vs-3",
+ "severity": "error",
+ "human": "If there is no a value a data absent reason must be present",
+ "expression": "value.exists() or dataAbsentReason.exists()",
+ "xpath": "f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason",
+ "source": "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "containment by OBX-4?"
+ },
+ {
+ "identity": "rim",
+ "map": "outBoundRelationship[typeCode=COMP]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.id",
+ "path": "Observation.component.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.extension",
+ "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": "Observation.component.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.modifierExtension",
+ "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": "Observation.component.modifierExtension",
+ "short": "Extensions that cannot be ignored even if unrecognized",
+ "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. 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 can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).",
+ "comment": "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.",
+ "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension).",
+ "alias": [
+ "extensions",
+ "user content",
+ "modifiers"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "BackboneElement.modifierExtension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "isModifier": true,
+ "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code",
+ "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": "Observation.component.code",
+ "short": "Type of component observation (code / type)",
+ "definition": "Describes what was observed. Sometimes this is called the observation \"code\".",
+ "comment": "*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation.",
+ "requirements": "Knowing what kind of observation is being made is essential to understanding the observation.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.code",
+ "min": 1,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "strength": "extensible",
+ "description": "This identifies the vital sign result type.",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "w5",
+ "map": "FiveWs.what[x]"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-3"
+ },
+ {
+ "identity": "rim",
+ "map": "code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.id",
+ "path": "Observation.component.code.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.extension",
+ "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": "Observation.component.code.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "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": "Observation.component.code.coding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.code.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.code.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.value[x]",
+ "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": "Observation.component.value[x]",
+ "short": "Vital Sign Value recorded with UCUM",
+ "definition": "Vital Sign Value recorded with UCUM.",
+ "comment": "Used when observation has a set of component observations. An observation may have both a value (e.g. an Apgar score) and component observations (the observations from which the Apgar score was derived). If a value is present, the datatype for this element should be determined by Observation.code. A CodeableConcept with just a text would be used instead of a string if the field was usually coded, or if the type associated with the Observation.code defines a coded value. For additional guidance, see the [Notes section](observation.html#notes) below.",
+ "requirements": "9. SHALL contain exactly one [1..1] value with @xsi:type=\"PQ\" (CONF:7305).",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.value[x]",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "Quantity"
+ },
+ {
+ "code": "CodeableConcept"
+ },
+ {
+ "code": "string"
+ },
+ {
+ "code": "boolean"
+ },
+ {
+ "code": "integer"
+ },
+ {
+ "code": "Range"
+ },
+ {
+ "code": "Ratio"
+ },
+ {
+ "code": "SampledData"
+ },
+ {
+ "code": "time"
+ },
+ {
+ "code": "dateTime"
+ },
+ {
+ "code": "Period"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "qty-3",
+ "severity": "error",
+ "human": "If a code for the unit is present, the system SHALL also be present",
+ "expression": "code.empty() or system.exists()",
+ "xpath": "not(exists(f:code)) or exists(f:system)",
+ "source": "http://hl7.org/fhir/StructureDefinition/Observation"
+ }
+ ],
+ "mustSupport": true,
+ "isSummary": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "VitalSignsUnits"
+ }
+ ],
+ "strength": "required",
+ "description": "Common UCUM units for recording Vital Signs.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.1"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "SN (see also Range) or CQ"
+ },
+ {
+ "identity": "rim",
+ "map": "PQ, IVL, MO, CO, depending on the values"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "363714003 |Interprets| < 441742003 |Evaluation finding|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX.2, OBX.5, OBX.6"
+ },
+ {
+ "identity": "rim",
+ "map": "value"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363714003 |Interprets|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason",
+ "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": "Observation.component.dataAbsentReason",
+ "short": "Why the component result is missing",
+ "definition": "Provides a reason why the expected value in the element Observation.component.value[x] is missing.",
+ "comment": "\"Null\" or exceptional values can be represented two ways in FHIR Observations. One way is to simply include them in the value set and represent the exceptions in the value. For example, measurement values for a serology test could be \"detected\", \"not detected\", \"inconclusive\", or \"test not done\". \n\nThe alternate way is to use the value element for actual observations and use the explicit dataAbsentReason element to record exceptional values. For example, the dataAbsentReason code \"error\" could be used when the measurement was not completed. Because of these options, use-case agreements are required to interpret general observations for exceptional values.",
+ "requirements": "For many results it is necessary to handle exceptional values in measurements.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Observation.component.dataAbsentReason",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1",
+ "obs-6",
+ "vs-3"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "mustSupport": true,
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationValueAbsentReason"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes specifying why the result (`Observation.value[x]`) is missing.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/data-absent-reason"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "v2",
+ "map": "N/A"
+ },
+ {
+ "identity": "rim",
+ "map": "value.nullFlavor"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.id",
+ "path": "Observation.component.dataAbsentReason.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.extension",
+ "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": "Observation.component.dataAbsentReason.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding",
+ "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": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.id",
+ "path": "Observation.component.dataAbsentReason.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.extension",
+ "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": "Observation.component.dataAbsentReason.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.version",
+ "path": "Observation.component.dataAbsentReason.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.dataAbsentReason.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.dataAbsentReason.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation",
+ "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": "Observation.component.interpretation",
+ "short": "High, low, normal, etc.",
+ "definition": "A categorical assessment of an observation value. For example, high, low, normal.",
+ "comment": "Historically used for laboratory results (known as 'abnormal flag' ), its use extends to other use cases where coded interpretations are relevant. Often reported as one or more simple compact codes this element is often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result.",
+ "requirements": "For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result.",
+ "alias": [
+ "Abnormal Flag"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.interpretation",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "CodeableConcept"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "binding": {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
+ "valueString": "ObservationInterpretation"
+ }
+ ],
+ "strength": "extensible",
+ "description": "Codes identifying interpretations of observations.",
+ "valueSet": "http://hl7.org/fhir/ValueSet/observation-interpretation"
+ },
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "CE/CNE/CWE"
+ },
+ {
+ "identity": "rim",
+ "map": "CD"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept rdfs:subClassOf dt:CD"
+ },
+ {
+ "identity": "sct-concept",
+ "map": "< 260245000 |Findings values|"
+ },
+ {
+ "identity": "v2",
+ "map": "OBX-8"
+ },
+ {
+ "identity": "rim",
+ "map": "interpretationCode"
+ },
+ {
+ "identity": "sct-attr",
+ "map": "363713009 |Has interpretation|"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.id",
+ "path": "Observation.component.interpretation.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.extension",
+ "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": "Observation.component.interpretation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "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": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "*",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding",
+ "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": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "short": "Code defined by a terminology system",
+ "definition": "A reference to a code defined by a terminology system.",
+ "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. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.",
+ "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.coding",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Coding"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "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"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1-8, C*E.10-22"
+ },
+ {
+ "identity": "rim",
+ "map": "union(., ./translation)"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.id",
+ "path": "Observation.component.interpretation.coding.id",
+ "representation": [
+ "xmlAttr"
+ ],
+ "short": "Unique id for inter-element referencing",
+ "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Element.id",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
+ "valueUrl": "string"
+ }
+ ],
+ "code": "http://hl7.org/fhirpath/System.String"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.extension",
+ "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": "Observation.component.interpretation.coding.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "description": "Extensions are always sliced by (at least) url",
+ "rules": "open"
+ },
+ "short": "Additional content defined by implementations",
+ "definition": "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 manageable, 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.",
+ "comment": "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.",
+ "alias": [
+ "extensions",
+ "user content"
+ ],
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Element.extension",
+ "min": 0,
+ "max": "*"
+ },
+ "type": [
+ {
+ "code": "Extension"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ },
+ {
+ "key": "ext-1",
+ "severity": "error",
+ "human": "Must have either extensions or value[x], not both",
+ "expression": "extension.exists() != value.exists()",
+ "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
+ "source": "http://hl7.org/fhir/StructureDefinition/DomainResource"
+ }
+ ],
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "rim",
+ "map": "N/A"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "short": "Identity of the terminology system",
+ "definition": "The identification of the code system that defines the meaning of the symbol in the code.",
+ "comment": "The URI may be an OID (urn:oid:...) or a UUID (urn:uuid:...). OIDs and UUIDs SHALL be references to the HL7 OID registry. Otherwise, the URI should come from HL7's list of FHIR defined special URIs or it should reference to some definition that establishes the system clearly and unambiguously.",
+ "requirements": "Need to be unambiguous about the source of the definition of the symbol.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.system",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "uri"
+ }
+ ],
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.3"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystem"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.version",
+ "path": "Observation.component.interpretation.coding.version",
+ "short": "Version of the system - if relevant",
+ "definition": "The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured, and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged.",
+ "comment": "Where the terminology does not clearly define what string should be used to identify code system versions, the recommendation is to use the date (expressed in FHIR date format) on which that version was officially published as the version date.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.version",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.7"
+ },
+ {
+ "identity": "rim",
+ "map": "./codeSystemVersion"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "short": "Symbol in syntax defined by the system",
+ "definition": "A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination).",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to refer to a particular code in the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.code",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "code"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.1"
+ },
+ {
+ "identity": "rim",
+ "map": "./code"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.display",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.coding.display",
+ "short": "Representation defined by the system",
+ "definition": "A representation of the meaning of the code in the system, following the rules of the system.",
+ "comment": "Note that FHIR strings SHALL NOT exceed 1MB in size",
+ "requirements": "Need to be able to carry a human-readable meaning of the code for readers that do not know the system.",
+ "min": 1,
+ "max": "1",
+ "base": {
+ "path": "Coding.display",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.2 - but note this is not well followed"
+ },
+ {
+ "identity": "rim",
+ "map": "CV.displayName"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.userSelected",
+ "path": "Observation.component.interpretation.coding.userSelected",
+ "short": "If this coding was chosen directly by the user",
+ "definition": "Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).",
+ "comment": "Amongst a set of alternatives, a directly chosen code is the most appropriate starting point for new translations. There is some ambiguity about what exactly 'directly chosen' implies, and trading partner agreement may be needed to clarify the use of this element and its consequences more completely.",
+ "requirements": "This has been identified as a clinical safety criterium - that this exact system/code pair was chosen explicitly, rather than inferred by the system based on some rules or language processing.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "Coding.userSelected",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "boolean"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "Sometimes implied by being first"
+ },
+ {
+ "identity": "rim",
+ "map": "CD.codingRationale"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:Coding.userSelected fhir:mapsTo dt:CDCoding.codingRationale. fhir:Coding.userSelected fhir:hasMap fhir:Coding.userSelected.map. fhir:Coding.userSelected.map a fhir:Map; fhir:target dt:CDCoding.codingRationale. fhir:Coding.userSelected\\#true a [ fhir:source \"true\"; fhir:target dt:CDCoding.codingRationale\\#O ]"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.interpretation.text",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
+ "valueBoolean": true
+ }
+ ],
+ "path": "Observation.component.interpretation.text",
+ "short": "Plain text representation of the concept",
+ "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.",
+ "comment": "Very often the text is the same as a displayName of one of the codings.",
+ "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.",
+ "min": 0,
+ "max": "1",
+ "base": {
+ "path": "CodeableConcept.text",
+ "min": 0,
+ "max": "1"
+ },
+ "type": [
+ {
+ "code": "string"
+ }
+ ],
+ "condition": [
+ "ele-1"
+ ],
+ "constraint": [
+ {
+ "key": "ele-1",
+ "severity": "error",
+ "human": "All FHIR elements must have a @value or children",
+ "expression": "hasValue() or (children().count() > id.count())",
+ "xpath": "@value|f:*|h:div",
+ "source": "http://hl7.org/fhir/StructureDefinition/Element"
+ }
+ ],
+ "isSummary": true,
+ "mapping": [
+ {
+ "identity": "rim",
+ "map": "n/a"
+ },
+ {
+ "identity": "v2",
+ "map": "C*E.9. But note many systems use C*E.2 for this"
+ },
+ {
+ "identity": "rim",
+ "map": "./originalText[mediaType/code=\"text/plain\"]/data"
+ },
+ {
+ "identity": "orim",
+ "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
+ }
+ ]
+ },
+ {
+ "id": "Observation.component.referenceRange",
+ "path": "Observation.component.referenceRange",
+ "short": "Provides guide for interpretation of component result",
+ "definition": "Guidance on how to interpret the value by comparison to a normal or recommended range.",
+ "comment": "Most observations only have one generic reference range. Systems MAY choose to restrict to only supplying the relevant reference range based on knowledge about the patient (e.g., specific to the patient's age, gender, weight and other factors), but this might not be possible or appropriate. Whenever more than one reference range is supplied, the differences between them SHOULD be provided in the reference range and/or age properties.",
+ "requirements": "Knowing what values are considered \"normal\" can help evaluate the significance of a particular result. Need to be able to provide multiple reference ranges for different contexts.",
+ "min": 0,
+ "max": "*",
+ "base": {
+ "path": "Observation.component.referenceRange",
+ "min": 0,
+ "max": "*"
+ },
+ "contentReference": "#Observation.referenceRange",
+ "mapping": [
+ {
+ "identity": "v2",
+ "map": "OBX.7"
+ },
+ {
+ "identity": "rim",
+ "map": "outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"
+ }
+ ]
+ }
+ ]
+ },
+ "differential": {
+ "element": [
+ {
+ "id": "Observation",
+ "path": "Observation",
+ "short": "Finnish PHR base profile for Observation resource"
+ },
+ {
+ "id": "Observation.meta",
+ "path": "Observation.meta",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile",
+ "path": "Observation.meta.profile",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "$this"
+ }
+ ],
+ "rules": "open"
+ },
+ "definition": "FinnishPHR: Profile required. The URL is a reference to [StructureDefinition.url]().",
+ "min": 1
+ },
+ {
+ "id": "Observation.meta.profile:fiphrProfile",
+ "path": "Observation.meta.profile",
+ "sliceName": "fiphrProfile",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.language",
+ "path": "Observation.language",
+ "min": 1,
+ "binding": {
+ "strength": "required",
+ "description": "Finnish PHR: A code of human language."
+ }
+ },
+ {
+ "id": "Observation.text",
+ "path": "Observation.text",
+ "min": 1
+ },
+ {
+ "id": "Observation.extension",
+ "path": "Observation.extension",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "url"
+ }
+ ],
+ "rules": "open"
+ }
+ },
+ {
+ "id": "Observation.extension:creatingApplication",
+ "path": "Observation.extension",
+ "sliceName": "creatingApplication",
+ "type": [
+ {
+ "code": "Extension",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier",
+ "path": "Observation.identifier",
+ "definition": "A unique identifier assigned to this observation. \r\nFinnish PHR: At least one of the identifiers SHALL be globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.use",
+ "path": "Observation.identifier.use",
+ "definition": "The purpose of this identifier. \r\nFinnish PHR: The code 'official' SHALL be only used if the given identifier value is truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "This is labeled as \"Is Modifier\" because applications should not mistake a temporary id for a permanent one. Applications can assume that an identifier is permanent unless it explicitly says that it is temporary."
+ },
+ {
+ "id": "Observation.identifier.type",
+ "path": "Observation.identifier.type",
+ "mustSupport": true
+ },
+ {
+ "id": "Observation.identifier.system",
+ "path": "Observation.identifier.system",
+ "comment": "see http://en.wikipedia.org/wiki/Uniform_resource_identifier",
+ "min": 1,
+ "example": [
+ {
+ "label": "General",
+ "valueUri": "urn:ietf:rfc:3986"
+ }
+ ]
+ },
+ {
+ "id": "Observation.identifier.value",
+ "path": "Observation.identifier.value",
+ "definition": "The portion of the identifier typically relevant to the user and which is unique within the context of the system. \r\nFinnish PHR: At least one of the identifiers SHALL be truly globally unique (e.g. an uuid as the value and 'urn:ietf:rfc:3986' as the system).",
+ "comment": "If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](extension-rendered-value.html).",
+ "min": 1
+ },
+ {
+ "id": "Observation.identifier.assigner",
+ "path": "Observation.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.basedOn",
+ "path": "Observation.basedOn",
+ "max": "0"
+ },
+ {
+ "id": "Observation.partOf",
+ "path": "Observation.partOf",
+ "max": "0"
+ },
+ {
+ "id": "Observation.status",
+ "path": "Observation.status",
+ "short": "Finnish PHR: Status final",
+ "definition": "Finnish PHR: The status of the result value.",
+ "comment": "Finnish PHR: Only status 'final' shall be used in FinnishPHR.",
+ "requirements": "Finnish PHR: Need to track the status of individual results. Erronous observation may not be stored in FinnishPHR.",
+ "fixedCode": "final"
+ },
+ {
+ "id": "Observation.category",
+ "path": "Observation.category",
+ "short": "Classification of type of observation.",
+ "definition": "Classification of type of observation.",
+ "comment": "FinnishPHR: Vital-sign code SHALL be used. Additional codes MAY be used. (defined by the value set). More fine-grained filtering can be performed using the Observation.code.",
+ "requirements": "All resources all vital signs observations.",
+ "binding": {
+ "strength": "preferred",
+ "description": "Classification of type of observation."
+ }
+ },
+ {
+ "id": "Observation.category:VSCat",
+ "path": "Observation.category",
+ "sliceName": "VSCat",
+ "binding": {
+ "strength": "required"
+ }
+ },
+ {
+ "id": "Observation.code",
+ "path": "Observation.code",
+ "comment": "Describes type of observation.",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ }
+ },
+ {
+ "id": "Observation.subject",
+ "path": "Observation.subject",
+ "definition": "Finnish PHR: The patient described by the observation and into whose record the observation is placed.",
+ "comment": "Finnish PHR: Who this observation is about. Usually the same person as the application user, but if the user is storing observations on behalf of someone else, the subject is the person whose measurements or other observations are entered.",
+ "requirements": "Finnish PHR: Observations have always known the Patient",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.subject.reference",
+ "path": "Observation.subject.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.subject.identifier.assigner",
+ "path": "Observation.subject.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.focus",
+ "path": "Observation.focus",
+ "max": "0"
+ },
+ {
+ "id": "Observation.encounter",
+ "path": "Observation.encounter",
+ "max": "0"
+ },
+ {
+ "id": "Observation.effective[x]",
+ "path": "Observation.effective[x]",
+ "type": [
+ {
+ "code": "dateTime"
+ }
+ ]
+ },
+ {
+ "id": "Observation.issued",
+ "path": "Observation.issued",
+ "short": "Finnish PHR: The date and time this observation is stored",
+ "definition": "Finnish PHR: The date and time this observation is stored",
+ "comment": "Updated when the result is updated.",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer",
+ "path": "Observation.performer",
+ "short": "Finnish PHR: Application user who is responsible for the observation",
+ "definition": "FinnishPHR: Application user who was responsible for asserting the observed value as \"true\".",
+ "comment": "References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable.",
+ "min": 1,
+ "max": "1",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.performer.reference",
+ "path": "Observation.performer.reference",
+ "min": 1
+ },
+ {
+ "id": "Observation.performer.identifier.assigner",
+ "path": "Observation.performer.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.value[x]",
+ "path": "Observation.value[x]",
+ "comment": "Normally, an observation will have either a single value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and related observations (for an Apgar score, the observations from which the measure is derived). If a value is present, the datatype for this element should be determined by Observation.code. This element has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueString, valueBoolean, valueRange, valueRatio, valueSampledData, valueAttachment, valueTime, valueDateTime, or valuePeriod. (The name format is \"'value' + the type name\" with a capital on the first letter of the type).\r\r\rIf the data element is usually coded or if the type associated with the Observation.value defines a coded value, use CodeableConcept instead of string datatype even if the value is uncoded text. A value set is bound to the ValueCodeableConcept element. For further discussion and examples see the [notes section](observation.html#notes) below."
+ },
+ {
+ "id": "Observation.dataAbsentReason",
+ "path": "Observation.dataAbsentReason",
+ "binding": {
+ "strength": "extensible",
+ "description": "Codes specifying why the result (Observation.value[x]) is missing."
+ }
+ },
+ {
+ "id": "Observation.dataAbsentReason.id",
+ "path": "Observation.dataAbsentReason.id",
+ "short": "xml:id (or equivalent in JSON)"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding",
+ "path": "Observation.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "max": "1"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason",
+ "path": "Observation.dataAbsentReason.coding",
+ "sliceName": "fiphrDataAbsentReason",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.system",
+ "path": "Observation.dataAbsentReason.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason"
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.code",
+ "path": "Observation.dataAbsentReason.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.dataAbsentReason.coding:fiphrDataAbsentReason.display",
+ "path": "Observation.dataAbsentReason.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation",
+ "path": "Observation.interpretation",
+ "definition": "Finnish PHR: The assessment made based on the result of the observation. Intended as a simple compact code placed adjacent to the result value. Otherwise known as abnormal flag.",
+ "comment": "Not all terminology uses fit this general pattern. In some cases, models should not use CodeableConcept and use Coding directly and provide their own structure for managing text, codings, translations and the relationship between elements and pre- and post-coordination.",
+ "max": "1",
+ "binding": {
+ "strength": "extensible",
+ "description": "Finnish PHR: Codes identifying interpretations of observations."
+ }
+ },
+ {
+ "id": "Observation.interpretation.coding",
+ "path": "Observation.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation",
+ "path": "Observation.interpretation.coding",
+ "sliceName": "fiphrInterpretation",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.system",
+ "path": "Observation.interpretation.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.code",
+ "path": "Observation.interpretation.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.interpretation.coding:fiphrInterpretation.display",
+ "path": "Observation.interpretation.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.note.author[x]",
+ "path": "Observation.note.author[x]",
+ "max": "0",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ }
+ ],
+ "fixedReference": {
+ "reference": "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ }
+ },
+ {
+ "id": "Observation.note.author[x].identifier.assigner",
+ "path": "Observation.note.author[x].identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.bodySite",
+ "path": "Observation.bodySite",
+ "max": "0"
+ },
+ {
+ "id": "Observation.method",
+ "path": "Observation.method",
+ "max": "0"
+ },
+ {
+ "id": "Observation.specimen",
+ "path": "Observation.specimen",
+ "max": "0"
+ },
+ {
+ "id": "Observation.device",
+ "path": "Observation.device",
+ "max": "0"
+ },
+ {
+ "id": "Observation.device.identifier.assigner",
+ "path": "Observation.device.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.hasMember",
+ "path": "Observation.hasMember",
+ "max": "0",
+ "type": [
+ {
+ "code": "Reference",
+ "targetProfile": [
+ "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse",
+ "http://hl7.org/fhir/StructureDefinition/vitalsigns"
+ ],
+ "aggregation": [
+ "referenced"
+ ]
+ }
+ ]
+ },
+ {
+ "id": "Observation.hasMember.identifier.assigner",
+ "path": "Observation.hasMember.identifier.assigner",
+ "max": "0"
+ },
+ {
+ "id": "Observation.derivedFrom",
+ "path": "Observation.derivedFrom",
+ "max": "0"
+ },
+ {
+ "id": "Observation.component",
+ "path": "Observation.component",
+ "comment": "Profiled further in derived profiles that use components."
+ },
+ {
+ "id": "Observation.component.code",
+ "path": "Observation.component.code",
+ "binding": {
+ "strength": "extensible",
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns"
+ }
+ },
+ {
+ "id": "Observation.component.code.coding",
+ "path": "Observation.component.code.coding",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding",
+ "path": "Observation.component.dataAbsentReason.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding",
+ "path": "Observation.component.dataAbsentReason.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.system",
+ "path": "Observation.component.dataAbsentReason.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/data-absent-reason"
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.code",
+ "path": "Observation.component.dataAbsentReason.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.dataAbsentReason.coding:fiphrCoding.display",
+ "path": "Observation.component.dataAbsentReason.coding.display",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.interpretation.coding",
+ "path": "Observation.component.interpretation.coding",
+ "slicing": {
+ "discriminator": [
+ {
+ "type": "value",
+ "path": "system"
+ }
+ ],
+ "rules": "open"
+ },
+ "min": 1
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding",
+ "path": "Observation.component.interpretation.coding",
+ "sliceName": "fiphrCoding",
+ "min": 1,
+ "max": "1"
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.system",
+ "path": "Observation.component.interpretation.coding.system",
+ "min": 1,
+ "fixedUri": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation"
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.code",
+ "path": "Observation.component.interpretation.coding.code",
+ "min": 1
+ },
+ {
+ "id": "Observation.component.interpretation.coding:fiphrCoding.display",
+ "path": "Observation.component.interpretation.coding.display",
+ "min": 1
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/InsulinDosage-example-optional.json b/input/examples/InsulinDosage-example-optional.json
new file mode 100644
index 0000000..6edba30
--- /dev/null
+++ b/input/examples/InsulinDosage-example-optional.json
@@ -0,0 +1,71 @@
+{
+ "resourceType": "MedicationAdministration",
+ "id": "a4d97476-39fa-46c6-bf2e-1fb153a7bbe3",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-27T13:04:55.345+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-insulindosing-r4"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "\r\n Name of the medication: Actrapid
\r\n VNRCode: Glucose In Blood (15074-8)
\r\n Type of insulin: Fast-acting insulin (ins-short-fast)
\r\n Time: 18.5.2019 15:05 \r\n
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:2bc59f2d-5e28-4d1b-a403-bf3a27b1610c"
+ }
+ ],
+ "status": "completed",
+ "medicationCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode",
+ "code": "ins-short-fast",
+ "display": "Fast-acting insulin"
+ },
+ {
+ "system": "http://ownSystem.fi/CodeSystem/cs-insulincode",
+ "code": "1234",
+ "display": "Fast insulin"
+ }
+ ],
+ "text": "A code for short and fast acting insulins, for example insulins that could be included in the group A10AB of the ATC Code System."
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2020-10-05",
+ "performer": [
+ {
+ "actor": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ }
+ ],
+ "note": [
+ {
+ "authorString": "AuhtorString",
+ "time": "2019-05-27",
+ "text": "Note Text is Mandatory Field"
+ }
+ ],
+ "dosage": {
+ "text": "Dosage Text",
+ "dose": {
+ "code": "[IU]",
+ "unit": "[IU]",
+ "value": 3,
+ "system": "http://unitsofmeasure.org"
+ },
+ "rateQuantity": {
+ "value": 5,
+ "unit": "g/min",
+ "system": "http://unitsofmeasure.org",
+ "code": "g/min"
+ }
+ }
+}
\ No newline at end of file
diff --git a/input/examples/MedicationAdministration-InsulinDosage-mandatory.json b/input/examples/MedicationAdministration-InsulinDosage-mandatory.json
new file mode 100644
index 0000000..97bfde0
--- /dev/null
+++ b/input/examples/MedicationAdministration-InsulinDosage-mandatory.json
@@ -0,0 +1,42 @@
+{
+ "resourceType": "MedicationAdministration",
+ "id": "a4d97476-39fa-46c6-bf2e-1fb153a7bbe2",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-27T13:04:55.345+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-insulindosing-r4"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "\r\n Name of the medication: Actrapid
\r\n VNRCode: Glucose In Blood (15074-8)
\r\n Type of insulin: Fast-acting insulin (ins-short-fast)
\r\n Time: 18.5.2019 15:05 \r\n
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:2bc59f2d-5e28-4d1b-a403-bf3a27b1610c"
+ }
+ ],
+ "status": "completed",
+ "medicationCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode",
+ "code": "ins-short-fast",
+ "display": "Fast-acting insulin"
+ },
+ {
+ "system": "http://ownSystem.fi/CodeSystem/cs-insulincode",
+ "code": "1234",
+ "display": "Fast insulin"
+ }
+ ],
+ "text": "A code for short and fast acting insulins, for example insulins that could be included in the group A10AB of the ATC Code System."
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2020-10-05"
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-Bloodpressure-max.json b/input/examples/Observation-example-Bloodpressure-max.json
new file mode 100644
index 0000000..7d88cfe
--- /dev/null
+++ b/input/examples/Observation-example-Bloodpressure-max.json
@@ -0,0 +1,222 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodpressure-max",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodpressure"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Blood pressure (85354-9) / Systolic blood pressure (observable entity)(46973005)
Time: 20.11.2017 11:46
Result: Systolic blood pressure (8480-6): 95 mm[Hg], Diastolic blood pressure (8462-4): 65 mm[Hg]
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:3ca3ffc6-234e-481c-b0f3-37c05e14c8e2"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ },
+ {
+ "coding": [
+ {
+ "system": "http://terminology.own.com",
+ "code": "OwnCode123"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "85354-9",
+ "display": "Blood pressure panel with all children optional"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "46973005",
+ "display": "Blood pressure taking (procedure)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ }
+ ],
+ "note": [
+ {
+ "text": ""
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "8480-6",
+ "display": "Systolic blood pressure"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "271649006",
+ "display": "Systolic blood pressure (observable entity)"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 95,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "<",
+ "display": "Off scale low"
+ }
+ ]
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 100,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "high": {
+ "value": 150,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ]
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "8462-4",
+ "display": "Diastolic blood pressure"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "271650006",
+ "display": "Diastolic blood pressure (observable entity)"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 65,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 60,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "high": {
+ "value": 110,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-Bloodpressure-min.json b/input/examples/Observation-example-Bloodpressure-min.json
new file mode 100644
index 0000000..faacbe0
--- /dev/null
+++ b/input/examples/Observation-example-Bloodpressure-min.json
@@ -0,0 +1,86 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodpressure-min",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodpressure"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Blood pressure (85354-9)
Time: 20.11.2017 11:46
Result: Systolic blood pressure (8480-6): 95 mm[Hg], Diastolic blood pressure (8462-4): 65 mm[Hg]
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:3ca3ffc6-234e-481c-b0f3-37c05e14c8e2"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "85354-9",
+ "display": "Blood pressure panel with all children optional"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "8480-6",
+ "display": "Systolic blood pressure"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 95,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "8462-4",
+ "display": "Diastolic blood pressure"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 65,
+ "unit": "mm[Hg]",
+ "system": "http://unitsofmeasure.org",
+ "code": "mm[Hg]"
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-BodyWeight-max.json b/input/examples/Observation-example-BodyWeight-max.json
new file mode 100644
index 0000000..45d5ae0
--- /dev/null
+++ b/input/examples/Observation-example-BodyWeight-max.json
@@ -0,0 +1,128 @@
+{
+ "resourceType": "Observation",
+ "id": "bodyweight-max",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyweight"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Body weight (29463-7)
Time: 20.11.2017 11:46
Result: Result: 78 kg
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:3ca3ffc6-234e-481c-b0f3-37c05e14c8e2"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ },
+ {
+ "coding": [
+ {
+ "system": "http://terminology.own.com",
+ "code": "OwnCode123"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "29463-7",
+ "display": "Body weight"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "27113001",
+ "display": "Body weight (observable entity)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ }
+ ],
+ "valueQuantity": {
+ "value": 95,
+ "unit": "kg",
+ "system": "http://unitsofmeasure.org",
+ "code": "kg"
+ },
+ "note": [
+ {
+ "text": "Note"
+ }
+ ],
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 55,
+ "unit": "kg",
+ "system": "http://unitsofmeasure.org",
+ "code": "kg"
+ },
+ "high": {
+ "value": 150,
+ "unit": "kg",
+ "system": "http://unitsofmeasure.org",
+ "code": "kg"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-BodyWeight-min.json b/input/examples/Observation-example-BodyWeight-min.json
new file mode 100644
index 0000000..594bfc0
--- /dev/null
+++ b/input/examples/Observation-example-BodyWeight-min.json
@@ -0,0 +1,61 @@
+{
+ "resourceType": "Observation",
+ "id": "bodyweight-min",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyweight"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Body weight (29463-7)
Time: 20.11.2017 11:46
Result: Result: 78 kg
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:3ca3ffc6-234e-481c-b0f3-37c05e14c8e2"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "29463-7",
+ "display": "Body weight"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86"
+ }
+ ],
+ "valueQuantity": {
+ "value": 95,
+ "unit": "kg",
+ "system": "http://unitsofmeasure.org",
+ "code": "kg"
+ },
+ "note": [
+ {
+ "text": "Note"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-CalorieIntake-max.json b/input/examples/Observation-example-CalorieIntake-max.json
new file mode 100644
index 0000000..f07a0cf
--- /dev/null
+++ b/input/examples/Observation-example-CalorieIntake-max.json
@@ -0,0 +1,100 @@
+{
+ "resourceType": "Observation",
+ "id": "542ae72e-c3b0-404f-8c06-8f77441e89f8",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-17T13:15:04.491+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "Identifier | Patient/c78aca7d-a983-4989-aa8f-68436068cd26 |
"
+ },
+ "extension": [
+ {
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication",
+ "extension": [
+ {
+ "url": "name",
+ "valueString": "usecaseWebApp"
+ },
+ {
+ "url": "applicationId",
+ "valueString": "usecaseWebApp"
+ }
+ ]
+ }
+ ],
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38r"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "code": "nutrition",
+ "display": "Nutrition"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "405032000",
+ "display": "Nutritional status: energy (observable entity)"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "9052-2",
+ "display": "Calorie intake total"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "788472008",
+ "display": "Carbohydrate intake (observable entity)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-05-17",
+ "issued": "2019-05-17T13:15:02.781+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 2600,
+ "unit": "kcal",
+ "system": "http://unitsofmeasure.org",
+ "code": "kcal"
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "note": [
+ {
+ "text": "Note"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-CalorieIntake-min.json b/input/examples/Observation-example-CalorieIntake-min.json
new file mode 100644
index 0000000..8e811c4
--- /dev/null
+++ b/input/examples/Observation-example-CalorieIntake-min.json
@@ -0,0 +1,74 @@
+{
+ "resourceType": "Observation",
+ "id": "542ae72e-c3b0-404f-8c06-8f77441e89f7",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-17T13:15:04.491+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-calorieintake"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "Identifier | Patient/c78aca7d-a983-4989-aa8f-68436068cd26 |
"
+ },
+ "extension": [
+ {
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication",
+ "extension": [
+ {
+ "url": "name",
+ "valueString": "usecaseWebApp"
+ },
+ {
+ "url": "applicationId",
+ "valueString": "usecaseWebApp"
+ }
+ ]
+ }
+ ],
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38r"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "code": "nutrition",
+ "display": "Nutrition"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "9052-2",
+ "display": "Calorie intake total"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-05-17",
+ "issued": "2019-05-17T13:15:02.781+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 2600,
+ "unit": "kcal",
+ "system": "http://unitsofmeasure.org",
+ "code": "kcal"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-CarbohydrateIntakeEstimated-max.json b/input/examples/Observation-example-CarbohydrateIntakeEstimated-max.json
new file mode 100644
index 0000000..88351e6
--- /dev/null
+++ b/input/examples/Observation-example-CarbohydrateIntakeEstimated-max.json
@@ -0,0 +1,100 @@
+{
+ "resourceType": "Observation",
+ "id": "2894b2e6-7ebf-4c33-93e4-31935effff22",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-17T13:18:24.407+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "Identifier | Patient/c78aca7d-a983-4989-aa8f-68436068cd26 |
"
+ },
+ "extension": [
+ {
+ "url": "http://phr.kanta.fi/StructureDefinition/fiphr-ext-creatingapplication",
+ "extension": [
+ {
+ "url": "name",
+ "valueString": "usecaseWebApp"
+ },
+ {
+ "url": "applicationId",
+ "valueString": "usecaseWebApp"
+ }
+ ]
+ }
+ ],
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38d"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "code": "nutrition",
+ "display": "Nutrition"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "405032000",
+ "display": "Nutritional status: energy (observable entity)"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "9059-7",
+ "display": "Carbohydrate intake Estimated"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "788472008",
+ "display": "Carbohydrate intake (observable entity)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-05-17",
+ "issued": "2019-05-17T13:15:25.665+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 10,
+ "unit": "g",
+ "system": "http://unitsofmeasure.org",
+ "code": "g"
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "note": [
+ {
+ "text": "Note"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-CarbohydrateIntakeEstimated-min.json b/input/examples/Observation-example-CarbohydrateIntakeEstimated-min.json
new file mode 100644
index 0000000..59a244c
--- /dev/null
+++ b/input/examples/Observation-example-CarbohydrateIntakeEstimated-min.json
@@ -0,0 +1,59 @@
+{
+ "resourceType": "Observation",
+ "id": "2894b2e6-7ebf-4c33-93e4-31935effff21",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-17T13:18:24.407+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-macronutrientintake"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "asd
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38d"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "code": "nutrition",
+ "display": "Nutrition"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "9059-7",
+ "display": "Carbohydrate intake Estimated"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-05-17",
+ "issued": "2019-05-17T13:15:25.665+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 10,
+ "unit": "g",
+ "system": "http://unitsofmeasure.org",
+ "code": "g"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-ExerciseTracking-max.json b/input/examples/Observation-example-ExerciseTracking-max.json
new file mode 100644
index 0000000..8933bbd
--- /dev/null
+++ b/input/examples/Observation-example-ExerciseTracking-max.json
@@ -0,0 +1,131 @@
+{
+ "resourceType": "Observation",
+ "id": "71831b54-1a80-47c5-ba84-0180a5eb784b",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-exercisetracking"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Exercise tracking (55409-7)
Time: 26.11.2019
Result: Exercise activity (73985-4): Orienteering, Exercise duration (55411-3): 60 min, Exercise intensity (74008-4): Vigorous, Caloried burned (55421-2): 709 kcal
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:6288f477-90ef-424a-b6e3-da4ff18a058e"
+ },
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:00000000-5cb1-fef8-16b6-835409677fb6"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "55409-7",
+ "display": "Exercise tracking panel"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-11-26",
+ "issued": "2019-11-26T12:00:00+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "73985-4",
+ "display": "Exercise activity"
+ }
+ ]
+ },
+ "valueCodeableConcept": {
+ "coding": [
+ {
+ "system": "urn:oid:1.2.246.537.6.301",
+ "code": "B1504",
+ "display": "Orienteering"
+ }
+ ]
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "55411-3",
+ "display": "Exercise duration"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 60,
+ "unit": "min",
+ "system": "http://unitsofmeasure.org",
+ "code": "min"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "74008-4",
+ "display": "Exercise intensity"
+ }
+ ]
+ },
+ "valueCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "LA20166-7",
+ "display": "Vigorous"
+ }
+ ]
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "55421-2",
+ "display": "Calories burned"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 709,
+ "unit": "kcal",
+ "system": "http://unitsofmeasure.org",
+ "code": "kcal"
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-ExerciseTracking-min.json b/input/examples/Observation-example-ExerciseTracking-min.json
new file mode 100644
index 0000000..5711324
--- /dev/null
+++ b/input/examples/Observation-example-ExerciseTracking-min.json
@@ -0,0 +1,77 @@
+{
+ "resourceType": "Observation",
+ "id": "71831b54-1a80-47c5-ba84-0180a5eb784a",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-exercisetracking"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Exercise tracking (55409-7)
Time: 26.11.2019
Result: Exercise activity (73985-4): Orienteering, Exercise duration (55411-3): 60 min, Exercise intensity (74008-4): Vigorous, Caloried burned (55421-2): 709 kcal
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:6288f477-90ef-424a-b6e3-da4ff18a058e"
+ },
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:00000000-5cb1-fef8-16b6-835409677fb6"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "55409-7",
+ "display": "Exercise tracking panel"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-11-26",
+ "issued": "2019-11-26T12:00:00+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "73985-4",
+ "display": "Exercise activity"
+ }
+ ]
+ },
+ "valueCodeableConcept": {
+ "coding": [
+ {
+ "system": "urn:oid:1.2.246.537.6.301",
+ "code": "B1504",
+ "display": "Orienteering"
+ }
+ ]
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-MET-max.json b/input/examples/Observation-example-MET-max.json
new file mode 100644
index 0000000..3356e52
--- /dev/null
+++ b/input/examples/Observation-example-MET-max.json
@@ -0,0 +1,158 @@
+{
+ "resourceType": "Observation",
+ "id": "48983b8b-ead3-4206-9583-fcdd40d762b7",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-metbystandardrmr"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Metabolic equivalent of task by standard resting metabolic rate (82260-1)
Time: 26.11.2019
Result: Standard resting metabolic rate (82284-1): 3.5 ml/kg/min, Estimated metabolic equivalent of task (82262-7): 9.0 MET, Source for estimated metabolic equivalent of task (82280-9): Compendium of Physical Activities, Adjusted metabolic equivalent of task (82271-8): 10.7 MET, Source for adjusted metabolic equivalent of task (82283-3): Harris-Benedict male
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:ba688ba1-eb58-401f-83b8-81cced8d5190"
+ },
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:00000001-5cb1-fef8-16b6-835409677fb6"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ },
+ {
+ "system": "http://ownSystem.com/phr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fatneeees"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82260-1",
+ "display": "Metabolic equivalent of task by standard resting metabolic rate panel"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-11-26",
+ "issued": "2019-11-26T12:00:00+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "note": [
+ {
+ "text": "Note"
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82284-1",
+ "display": "Standard resting metabolic rate"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 3.5,
+ "unit": "ml/kg/min",
+ "system": "http://unitsofmeasure.org",
+ "code": "mL/kg/min"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82262-7",
+ "display": "Estimated metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 9.0,
+ "unit": "MET",
+ "system": "http://unitsofmeasure.org",
+ "code": "[MET]"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82280-9",
+ "display": "Source for estimated metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "LA26238-8",
+ "display": "Compendium of Physical Activities"
+ }
+ ]
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82271-8",
+ "display": "Adjusted metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 10.7,
+ "unit": "MET",
+ "system": "http://unitsofmeasure.org",
+ "code": "[MET]"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82283-3",
+ "display": "Source for adjusted metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueCodeableConcept": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "LA26236-2",
+ "display": "Harris-Benedict male"
+ }
+ ]
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-MET-min.json b/input/examples/Observation-example-MET-min.json
new file mode 100644
index 0000000..4bf4d34
--- /dev/null
+++ b/input/examples/Observation-example-MET-min.json
@@ -0,0 +1,108 @@
+{
+ "resourceType": "Observation",
+ "id": "48983b8b-ead3-4206-9583-fcdd40d762b6",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-metbystandardrmr"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Metabolic equivalent of task by standard resting metabolic rate (82260-1)
Time: 26.11.2019
Result: Standard resting metabolic rate (82284-1): 3.5 ml/kg/min, Measured metabolic equivalent of task (82261-9): 9.0 MET, Adjusted metabolic equivalent of task (82271-8): 10.7 MET, Source for adjusted metabolic equivalent of task (82283-3): Harris-Benedict male
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:ba688ba1-eb58-401f-83b8-81cced8d5190"
+ },
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:00000001-5cb1-fef8-16b6-835409677fb6"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82260-1",
+ "display": "Metabolic equivalent of task by standard resting metabolic rate panel"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2019-11-26",
+ "issued": "2019-11-26T12:00:00+03:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "component": [
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82284-1",
+ "display": "Standard resting metabolic rate"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 3.5,
+ "unit": "ml/kg/min",
+ "system": "http://unitsofmeasure.org",
+ "code": "mL/kg/min"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82261-9",
+ "display": "Measured metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 9.0,
+ "unit": "MET",
+ "system": "http://unitsofmeasure.org",
+ "code": "[MET]"
+ }
+ },
+ {
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82271-8",
+ "display": "Adjusted metabolic equivalent of task"
+ }
+ ]
+ },
+ "valueQuantity": {
+ "value": 10.7,
+ "unit": "MET",
+ "system": "http://unitsofmeasure.org",
+ "code": "[MET]"
+ }
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-ModerateToVigorousPATime-max.json b/input/examples/Observation-example-ModerateToVigorousPATime-max.json
new file mode 100644
index 0000000..17ec820
--- /dev/null
+++ b/input/examples/Observation-example-ModerateToVigorousPATime-max.json
@@ -0,0 +1,126 @@
+{
+ "resourceType": "Observation",
+ "id": "mtvpa-max",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime"
+ ]
+ },
+ "language": "en",
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38c"
+ }
+ ],
+ "text": {
+ "status": "generated",
+ "div": "Code: Weekly moderate to vigorous physical activity in minutes (82290-8)
Time: 20.11.2017 11:46
Result: 254 min
"
+ },
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "405155000",
+ "display": "Physical fitness behavior (observable entity)"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82290-8",
+ "display": "Weekly moderate to vigorous physical activity in minutes"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "408581006",
+ "display": "Physical activity target moderate exercise (finding)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2017-11-30T02:00:00.936+02:00",
+ "issued": "2017-02-02T10:00:00.936+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 120,
+ "unit": "min",
+ "system": "http://unitsofmeasure.org",
+ "code": "min"
+ },
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "note": [
+ {
+ "text": "Note"
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 20,
+ "unit": "min",
+ "system": "http://unitsofmeasure.org",
+ "code": "min"
+ },
+ "high": {
+ "value": 120,
+ "unit": "min",
+ "system": "http://unitsofmeasure.org",
+ "code": "min"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-ModerateToVigorousPATime-min.json b/input/examples/Observation-example-ModerateToVigorousPATime-min.json
new file mode 100644
index 0000000..ef5d3c5
--- /dev/null
+++ b/input/examples/Observation-example-ModerateToVigorousPATime-min.json
@@ -0,0 +1,60 @@
+{
+ "resourceType": "Observation",
+ "id": "mtvpa-min",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-moderatetovigorouspatime"
+ ]
+ },
+ "language": "en",
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:187e0c12-8dd2-67e2-99b2-bf273a9549222"
+ }
+ ],
+ "text": {
+ "status": "generated",
+ "div": "Code: Moderate to vigorous physical activity minutes in 24 hours (82290-8-24h)
Time: 20.11.2017 11:46
Result: 76 min
"
+ },
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "82290-8",
+ "display": "Weekly moderate to vigorous physical activity in minutes"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectivePeriod": {
+ "start": "2017-11-30T02:00:00.936+02:00",
+ "end": "2017-12-02T02:00:00.936+02:00"
+ },
+ "issued": "2012-02-02T10:00:00.936+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 76,
+ "unit": "min",
+ "system": "http://unitsofmeasure.org",
+ "code": "min"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-StepsTaken-max.json b/input/examples/Observation-example-StepsTaken-max.json
new file mode 100644
index 0000000..ff8b4cb
--- /dev/null
+++ b/input/examples/Observation-example-StepsTaken-max.json
@@ -0,0 +1,133 @@
+{
+ "resourceType": "Observation",
+ "id": "4137d1c4-1e87-4e86-8c15-344ad086e3f9",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-27T12:05:44.669+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "Code: Daily steps (41950-7)
Time: 20.11.2017 11:46
Result: 165
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:0b0a55d2-799a-45f5-a161-6a4a5faad1f8"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ },
+ {
+ "system": "http://ownSystem.com/phr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fatneeees"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "66334-4",
+ "display": "Steps"
+ },
+ {
+ "system": "http://loinc.org",
+ "code": "41950-7",
+ "display": "Number of Steps in 24 Hours"
+ },
+ {
+ "system": "http://snomed.info/sct",
+ "code": "129006008",
+ "display": "Walking (observable entity)"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2012-09-17",
+ "issued": "2012-02-02T10:00:00.936+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 6500,
+ "unit": "1",
+ "system": "http://unitsofmeasure.org",
+ "code": "1"
+ },
+ "note": [
+ {
+ "text": "Note"
+ }
+ ],
+ "interpretation": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation",
+ "code": "N",
+ "display": "Normal"
+ }
+ ]
+ }
+ ],
+ "referenceRange": [
+ {
+ "low": {
+ "value": 5000,
+ "unit": "1",
+ "system": "http://unitsofmeasure.org",
+ "code": "1"
+ },
+ "high": {
+ "value": 15000,
+ "unit": "1",
+ "system": "http://unitsofmeasure.org",
+ "code": "1"
+ },
+ "appliesTo": [
+ {
+ "coding": [
+ {
+ "system": "http://snomed.info/sct",
+ "code": "248153007",
+ "display": "Male"
+ }
+ ],
+ "text": "Normal range"
+ }
+ ],
+ "age": {
+ "low": {
+ "value": 15,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ },
+ "high": {
+ "value": 100,
+ "unit": "years",
+ "system": "http://unitsofmeasure.org",
+ "code": "a"
+ }
+ },
+ "text": "Age"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/Observation-example-duplicate-7.json b/input/examples/Observation-example-duplicate-7.json
new file mode 100644
index 0000000..4abceb8
--- /dev/null
+++ b/input/examples/Observation-example-duplicate-7.json
@@ -0,0 +1,55 @@
+{
+ "resourceType": "Observation",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bodyheight"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "\r\n\t\tCode: Body height (8302-2)
\r\n\t\tTime: 20.11.2020 11:46
\r\n\t\tResult: 182 cm
"
+ },
+ "id": "1153859e-0c86-1000-abb8-511d0000b222",
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd12222c"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "code": "vital-signs",
+ "system": "http://hl7.org/fhir/observation-category"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "code": "8302-2",
+ "display": "Body height",
+ "system": "http://loinc.org"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/36749a02-1710-44e7-aa76-0e934eb4321a"
+ },
+ "effectiveDateTime": "2020-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/36749a02-1710-44e7-aa76-0e934eb4321a"
+ }
+ ],
+ "valueQuantity": {
+ "value": "182",
+ "unit": "cm",
+ "system": "http://unitsofmeasure.org",
+ "code": "cm"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/bloodglucose-min.json b/input/examples/bloodglucose-min.json
new file mode 100644
index 0000000..dafdf3e
--- /dev/null
+++ b/input/examples/bloodglucose-min.json
@@ -0,0 +1,56 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodglucose-min",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Identifier | Patient/bb13623e-2673-4b3e-85d6-5c42f5333cde |
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:be18620b-ee17-4bd6-8304-102fdd10a38c"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "15074-8",
+ "display": "Glucose (Bld) [Moles/Vol]"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/bb13623e-2673-4b3e-85d6-5c42f5333cde"
+ },
+ "effectiveDateTime": "2020-10-05",
+ "issued": "2019-12-05T09:21:37.130+02:00",
+ "performer": [
+ {
+ "reference": "Patient/bb13623e-2673-4b3e-85d6-5c42f5333cde"
+ }
+ ],
+ "valueQuantity": {
+ "value": 7,
+ "unit": "mmol/l",
+ "system": "http://unitsofmeasure.org",
+ "code": "mmol/L"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/capabilitystatementATR4.json b/input/examples/capabilitystatementATR4.json
new file mode 100644
index 0000000..ac4ba54
--- /dev/null
+++ b/input/examples/capabilitystatementATR4.json
@@ -0,0 +1,626 @@
+{
+ "resourceType": "CapabilityStatement",
+ "id": "kanta-phr-capabilitystatement-at",
+ "url": "http://phr.kanta.fi/capabilitystatementATR4",
+ "version": "1.1.0",
+ "name": "Finnish PHR's capability statement for acceptance testing R4",
+ "status": "draft",
+ "publisher": "Kela",
+ "contact": [
+ {
+ "name": "kantakehitys@kanta.fi"
+ }
+ ],
+ "date": "2021-11-25",
+ "description": "The capability statement for Kanta PHR service client software acceptance testing environment",
+ "kind": "requirements",
+ "software": {
+ "name": "Omatietovaranto",
+ "version": "1.1",
+ "releaseDate": "2021-11-25"
+ },
+ "fhirVersion": "4.0.1",
+ "format": [
+ "json"
+ ],
+ "rest": [
+ {
+ "mode": "server",
+ "documentation": "See implementation guide for details",
+ "security": {
+ "cors": true,
+ "service": [
+ {
+ "text": "OAuth"
+ }
+ ],
+ "description": "The usage of OAuth 2.0 with Finnish PHR can be found at kanta.fi"
+ },
+ "resource": [
+ {
+ "type": "CarePlan",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update",
+ "documentation": "SupportingInfo isn't validated with update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "CarePlan.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "CarePlan.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "date",
+ "definition": "CarePlan.period",
+ "type": "date",
+ "documentation": "Time period the plan covers"
+ },
+ {
+ "name": "patient",
+ "definition": "CarePlan.subject",
+ "type": "reference",
+ "documentation": "Who care plan is for"
+ },
+ {
+ "name": "status",
+ "definition": "CarePlan.status",
+ "type": "token",
+ "documentation": "Status of the plan"
+ },
+ {
+ "name": "identifier",
+ "definition": "CarePlan.identfier",
+ "type": "token",
+ "documentation": "Return careplans with this external identifier"
+ },
+ {
+ "name": "category",
+ "definition": "CarePlan.category",
+ "type": "token",
+ "documentation": "The category for a particular careplan"
+ },
+ {
+ "name": "supporting-info",
+ "definition": "CarePlan.supportingInfo",
+ "type": "reference",
+ "documentation": "Reference to supporting info"
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Observation",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "delete",
+ "documentation": "Only the source of the resource or Omakanta can delete resources"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Observation.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "Observation.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "date",
+ "definition": "Observation.effective[x]",
+ "type": "date",
+ "documentation": "Obtained date/time. If the obtained element is a period, a date that falls in the period. AND operator is supported."
+ },
+ {
+ "name": "patient",
+ "definition": "Observation.subject",
+ "type": "reference",
+ "documentation": "The patient that the observation is about, mandatory search parameter"
+ },
+ {
+ "name": "code",
+ "definition": "Observation.code",
+ "type": "token",
+ "documentation": "The code of the observation type. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]. OR operator is supported. If searching with multiple codes and code.system isn't given, default codesystem http://loinc.org will be used."
+ },
+ {
+ "name": "identifier",
+ "definition": "Observation.identifier",
+ "type": "token",
+ "documentation": "The unique id for a particular observation. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "category",
+ "definition": "Observation.category",
+ "type": "token",
+ "documentation": "The classification of the type of observation. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Patient",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": true,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Patient.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ }
+ ]
+ },
+ {
+ "type": "MedicationAdministration",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "delete",
+ "documentation": "Only the source of the resource or Omakanta can delete resources"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "MedicationAdministration.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "MedicationAdministration.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "effective-time",
+ "definition": "MedicationAdministration.effectiveTime[x]",
+ "type": "date",
+ "documentation": "Date administration happened (or did not happen)"
+ },
+ {
+ "name": "patient",
+ "definition": "MedicationAdministration.patient",
+ "type": "reference",
+ "documentation": "The identity of a patient to list administrations for, mandatory search parameter"
+ },
+ {
+ "name": "identifier",
+ "definition": "MedicationAdministration.identifier",
+ "type": "token",
+ "documentation": "Return administrations with this external identifier. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "code",
+ "definition": "MedicationAdministration.medication[x]",
+ "type": "token",
+ "documentation": "Return administrations of this medication code. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]. OR operator is supported. If searching with multiple codes and code.system isn't given, default codesystem http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode will be used."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Questionnaire",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allow only identifier parameter"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Questionnaire.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "Questionnaire.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "code",
+ "definition": "Questionnaire.item.code",
+ "type": "token",
+ "documentation": "A code that corresponds to the questionnaire or one of its groups. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "identifier",
+ "definition": "Questionnaire.identifier",
+ "type": "token",
+ "documentation": "An identifier for the questionnaire. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "url",
+ "definition": "Questionnaire.url",
+ "type": "uri",
+ "documentation": "The logical URL for the questionnaire"
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "QuestionnaireResponse",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allow only identifier parameter"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "QuestionnaireResponse.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "QuestionnaireResponse.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "questionnaire",
+ "definition": "QuestionnaireResponse.questionnaire",
+ "type": "reference",
+ "documentation": "The questionnaire the answers are provided for"
+ },
+ {
+ "name": "patient",
+ "definition": "QuestionnaireResponse.subject",
+ "type": "reference",
+ "documentation": "The patient that is the subject of the questionnaire, mandatory search parameter"
+ },
+ {
+ "name": "authored",
+ "definition": "\tQuestionnaireResponse.authored",
+ "type": "date",
+ "documentation": "When the questionnaire was authored"
+ },
+ {
+ "name": "identifier",
+ "definition": "QuestionnaireResponse.identifier",
+ "type": "token",
+ "documentation": "The unique identifier for the questionnaire response. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "ValueSet",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "ValueSet.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "ValueSet.url",
+ "type": "uri",
+ "documentation": "The logical URL for the value set"
+ }
+ ]
+ },
+ {
+ "type": "StructureDefinition",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "StructureDefinition.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "StructureDefinition.url",
+ "type": "uri",
+ "documentation": "The uri that identifies the structure definition"
+ }
+ ]
+ },
+ {
+ "type": "CodeSystem",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "CodeSystem.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "CodeSystem.url",
+ "type": "uri",
+ "documentation": "The uri that identifies the code system"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/capabilitystatementR4.json b/input/examples/capabilitystatementR4.json
new file mode 100644
index 0000000..7a098bb
--- /dev/null
+++ b/input/examples/capabilitystatementR4.json
@@ -0,0 +1,626 @@
+{
+ "resourceType": "CapabilityStatement",
+ "id": "kanta-phr-capabilitystatement",
+ "url": "http://phr.kanta.fi/capabilitystatementR4",
+ "version": "1.1.0",
+ "name": "Finnish PHR's R4 capability statement",
+ "status": "draft",
+ "publisher": "Kela",
+ "contact": [
+ {
+ "name": "kantakehitys@kanta.fi"
+ }
+ ],
+ "date": "2021-11-24",
+ "description": "The capability statement for Kanta PHR service production environment",
+ "kind": "requirements",
+ "software": {
+ "name": "Omatietovaranto",
+ "version": "1.1",
+ "releaseDate": "2021-11-24"
+ },
+ "fhirVersion": "4.0.1",
+ "format": [
+ "json"
+ ],
+ "rest": [
+ {
+ "mode": "server",
+ "documentation": "See implementation guide for details",
+ "security": {
+ "cors": true,
+ "service": [
+ {
+ "text": "OAuth"
+ }
+ ],
+ "description": "The usage of OAuth 2.0 with Finnish PHR can be found at kanta.fi"
+ },
+ "resource": [
+ {
+ "type": "CarePlan",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update",
+ "documentation": "SupportingInfo isn't validated with update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "CarePlan.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "CarePlan.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "date",
+ "definition": "CarePlan.period",
+ "type": "date",
+ "documentation": "Time period the plan covers"
+ },
+ {
+ "name": "patient",
+ "definition": "CarePlan.subject",
+ "type": "reference",
+ "documentation": "Who care plan is for"
+ },
+ {
+ "name": "status",
+ "definition": "CarePlan.status",
+ "type": "token",
+ "documentation": "Status of the plan"
+ },
+ {
+ "name": "identifier",
+ "definition": "CarePlan.identfier",
+ "type": "token",
+ "documentation": "Return careplans with this external identifier"
+ },
+ {
+ "name": "category",
+ "definition": "CarePlan.category",
+ "type": "token",
+ "documentation": "The category for a particular careplan"
+ },
+ {
+ "name": "supporting-info",
+ "definition": "CarePlan.supportingInfo",
+ "type": "reference",
+ "documentation": "Reference to supporting info"
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Observation",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "delete",
+ "documentation": "Only the source of the resource or Omakanta can delete resources"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Observation.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "Observation.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "date",
+ "definition": "Observation.effective[x]",
+ "type": "date",
+ "documentation": "Obtained date/time. If the obtained element is a period, a date that falls in the period. AND operator is supported."
+ },
+ {
+ "name": "patient",
+ "definition": "Observation.subject",
+ "type": "reference",
+ "documentation": "The patient that the observation is about, mandatory search parameter"
+ },
+ {
+ "name": "code",
+ "definition": "Observation.code",
+ "type": "token",
+ "documentation": "The code of the observation type. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]. OR operator is supported. If searching with multiple codes and code.system isn't given, default codesystem http://loinc.org will be used."
+ },
+ {
+ "name": "identifier",
+ "definition": "Observation.identifier",
+ "type": "token",
+ "documentation": "The unique id for a particular observation. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "category",
+ "definition": "Observation.category",
+ "type": "token",
+ "documentation": "The classification of the type of observation. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Patient",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": true,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Patient.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ }
+ ]
+ },
+ {
+ "type": "MedicationAdministration",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "delete",
+ "documentation": "Only the source of the resource or Omakanta can delete resources"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "MedicationAdministration.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "MedicationAdministration.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "effective-time",
+ "definition": "MedicationAdministration.effectiveTime[x]",
+ "type": "date",
+ "documentation": "Date administration happened (or did not happen)"
+ },
+ {
+ "name": "patient",
+ "definition": "MedicationAdministration.patient",
+ "type": "reference",
+ "documentation": "The identity of a patient to list administrations for, mandatory search parameter"
+ },
+ {
+ "name": "identifier",
+ "definition": "MedicationAdministration.identifier",
+ "type": "token",
+ "documentation": "Return administrations with this external identifier. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "code",
+ "definition": "MedicationAdministration.medication[x]",
+ "type": "token",
+ "documentation": "Return administrations of this medication code. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]. OR operator is supported. If searching with multiple codes and code.system isn't given, default codesystem http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode will be used."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "Questionnaire",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allow only identifier parameter"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "Questionnaire.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "Questionnaire.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "code",
+ "definition": "Questionnaire.item.code",
+ "type": "token",
+ "documentation": "A code that corresponds to the questionnaire or one of its groups. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "identifier",
+ "definition": "Questionnaire.identifier",
+ "type": "token",
+ "documentation": "An identifier for the questionnaire. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "url",
+ "definition": "Questionnaire.url",
+ "type": "uri",
+ "documentation": "The logical URL for the questionnaire"
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "QuestionnaireResponse",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "delete"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allow only identifier parameter"
+ },
+ {
+ "code": "search-type"
+ }
+ ],
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "QuestionnaireResponse.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "_lastUpdated",
+ "definition": "QuestionnaireResponse.meta.lastUpdated",
+ "type": "date",
+ "documentation": "When the resource version last changed"
+ },
+ {
+ "name": "questionnaire",
+ "definition": "QuestionnaireResponse.questionnaire",
+ "type": "reference",
+ "documentation": "The questionnaire the answers are provided for"
+ },
+ {
+ "name": "patient",
+ "definition": "QuestionnaireResponse.subject",
+ "type": "reference",
+ "documentation": "The patient that is the subject of the questionnaire, mandatory search parameter"
+ },
+ {
+ "name": "authored",
+ "definition": "\tQuestionnaireResponse.authored",
+ "type": "date",
+ "documentation": "When the questionnaire was authored"
+ },
+ {
+ "name": "identifier",
+ "definition": "QuestionnaireResponse.identifier",
+ "type": "token",
+ "documentation": "The unique identifier for the questionnaire response. The following syntaxes are supported: [parameter]=[code] and [parameter]=[system]|[code]."
+ },
+ {
+ "name": "_total",
+ "definition": "Total count of resources",
+ "type": "special",
+ "documentation": "Total count of resources"
+ }
+ ]
+ },
+ {
+ "type": "ValueSet",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "ValueSet.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "ValueSet.url",
+ "type": "uri",
+ "documentation": "The logical URL for the value set"
+ }
+ ]
+ },
+ {
+ "type": "StructureDefinition",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "StructureDefinition.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "StructureDefinition.url",
+ "type": "uri",
+ "documentation": "The uri that identifies the structure definition"
+ }
+ ]
+ },
+ {
+ "type": "CodeSystem",
+ "interaction": [
+ {
+ "code": "read"
+ },
+ {
+ "code": "vread"
+ },
+ {
+ "code": "update"
+ },
+ {
+ "code": "create",
+ "documentation": "Conditional create allows only the use of identifier as condition"
+ },
+ {
+ "code": "search-type",
+ "documentation": "Implemented per the specification (or Insert other doco here)"
+ }
+ ],
+ "versioning": "versioned-update",
+ "readHistory": true,
+ "updateCreate": false,
+ "conditionalCreate": true,
+ "conditionalUpdate": false,
+ "conditionalDelete": "not-supported",
+ "referencePolicy": [
+ "literal",
+ "enforced",
+ "local"
+ ],
+ "searchParam": [
+ {
+ "name": "_id",
+ "definition": "CodeSystem.id",
+ "type": "token",
+ "documentation": "Logical id of this artifact"
+ },
+ {
+ "name": "url",
+ "definition": "CodeSystem.url",
+ "type": "uri",
+ "documentation": "The uri that identifies the code system"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/example-CarePlan-mandatory.json b/input/examples/example-CarePlan-mandatory.json
new file mode 100644
index 0000000..45f1840
--- /dev/null
+++ b/input/examples/example-CarePlan-mandatory.json
@@ -0,0 +1,44 @@
+{
+ "resourceType": "CarePlan",
+ "id": "b88191e3-ea47-4feb-9da9-e3b359fa8fca",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2020-10-06T12:18:54.223+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "div": "\n \n\n \n
\n
Suunnitelman otsikko
\n
Alaselkäkipu tai -vamma
\n
\n
\n
Suunnitelman tila
\n
Aktiivinen
\n
\n
\n
Suunnitelman tyyppi
\n
Alaselkäkipu tai -vamma
\n
\n
\n
Suunnitelman yhteenveto
\n
Selkäkipusi takia sinun tulisi hakeutua välittömästi päivystysvastaanotolle.
Alaselkäkipu on paikallista ja kestänyt 1 - 4 viikkoa. Potilaalla on kuumetta 38C , potilas on sairastanut syövän tai sairastaa syöpää, vaikeuksia pidättää virtsaa, vaikeuksia pidättää ulostetta ja vaikeuksia virtsaamisessa (virtsaaminen ei onnistu). Kiireellisesti terveydenhuollon ammattilaisen arviota vaativat oireet: virtsainkontinenssi, virtsaamisvaikeus ja ulosteinkontinenssi. Selkäoireeseen liittyy kipua, jonka voimakkuus on 5/10. Selkäkipu on alkanut välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen. Tapaturman sattumistapa: Kompastuin kengännauhoihin. Yleisvointi on kohtalainen (pystyy tekemään pakolliset päivittäiset toiminnot). Kipulääke auttaa. Tarvitsee sairauslomaa.
\n
\n
\n
Kysymykset ja vastaukset
\n \n \n \n
\n
Oma arvioni
\n\t \n\t
Arvelen tarvitsevani hoitoa ja haluan täyttää oirekyselyn
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Ikäsi (vuosia)
\n\t \n\t \n\t \n\t
30
\n\t \n\t \n\t \n
\n \n\n
\n
Mikä selkäkivun oire on kyseessä?
\n\t \n\t
Alaselän oire
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Alkoiko selkäkipusi välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Oliko kyseessä työtapaturma?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Minkälaisen tapaturman seurauksena selkäkipu on alkanut?
\n\t \n\t \n\t \n\t \n\t
Kompastuin kengännauhoihin
\n\t \n\t \n
\n \n\n
\n
Onko lääkäri jo arvioinut selkäsi tilannetta edellä kuvaamasi tapaturman jälkeen?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Miten kauan selkäkipuoireesi on kestänyt?
\n\t \n\t
1 - 4 viikkoa
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulle selkäoireesi yhteydessä ilmaantunut vaikeuksia pidättää virtsaa tai ulostetta?
\n\t \n\t
Vaikeuksia pidättää ulostetta
\n\t \n\t \n\t \n\t \n\t \n\t
Vaikeuksia pidättää virtsaa
\n\t \n\t \n\t \n\t \n\t \n\t
Vaikeuksia virtsaamisessa (virtsaaminen ei onnistu)
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla alaraajassa tai alaraajoissa tuoretta etenevää voiman puutetta (et pysty tukemaan alaraajan tai alaraajojen varaan)?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko sinulla toisen alaraajan tai molempien alaraajojen etenevää tunnottomuutta, puutumista tai voiman heikentymistä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko kyseessä äkillisesti alkanut vatsakipu, joka säteilee myös selkään?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Miten voimakasta kipu on ollut viimeisen vuorokauden aikana?
\n\t \n\t
5
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Lievittyykö selkäkipusi, kun nukut sopivassa asennossa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Millaisena kipu tuntuu?
\n\t \n\t
Kipu tuntuu selässä paikallisena tai ulottuu korkeintaan reiden tasoon
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Millainen on yleisvointisi?
\n\t \n\t
Pystyn olemaan jalkeilla, mutta selviydyn vain pakollisista kotiaskareista
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla kuumetta (kuumeen rajana pidetään 37,5 astetta)?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Kuinka paljon kuumetta sinulla on ollut korkeimmillaan kuluneen vuorokauden aikana? Vastaa kymmenyksen tarkkuudella (esim. 37,8).
\n\t \n\t \n\t
38
\n\t \n\t \n\t \n\t \n
\n \n\n
\n
Sairastatko tai oletko sairastanut syöpää?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Minkä syövän olet sairastanut tai mitä syöpää sairastat?
\n\t \n\t \n\t \n\t \n\t
Ihosyöpä
\n\t \n\t \n
\n \n\n
\n
Tarvitsetko selkäkipusi takia sairauslomaa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Tarvitsetko selkäkivun vuoksi muuhun tarkoitukseen (esimerkiksi vakuutus tms.) lääkärin antaman todistuksen tai lausunnon?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko sinulla ollut samasta vaivasta viimeisen puolen vuoden aikana käyntejä fysioterapiassa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Oletko käyttänyt nykyiseen oireeseesi kipulääkkeitä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Oletko saanut kipulääkkeistä riittävän avun, niin että pärjäät kipusi kanssa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla ollut samasta vaivasta viimeisen puolen vuoden aikana käyntejä lääkärillä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n \n\n
\n \n \n\n \n\n \n\n \n
",
+ "status": "generated"
+ },
+ "identifier": [
+ {
+ "use": "official",
+ "system": "urn:uuid:ietf:rfc:3986",
+ "value": "1"
+ }
+ ],
+ "status": "active",
+ "intent": "plan",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory",
+ "code": "7",
+ "display": "Alaselkäkipu tai -vamma"
+ }
+ ]
+ }
+ ],
+ "title": "Alaselkäkipu tai -vamma",
+ "description": "Selkäkipusi takia sinun tulisi hakeutua välittömästi päivystysvastaanotolle. Alaselkäkipu on paikallista ja kestänyt 1 - 4 viikkoa. Potilaalla on kuumetta 38C , potilas on sairastanut syövän tai sairastaa syöpää, vaikeuksia pidättää virtsaa, vaikeuksia pidättää ulostetta ja vaikeuksia virtsaamisessa (virtsaaminen ei onnistu). Kiireellisesti terveydenhuollon ammattilaisen arviota vaativat oireet: virtsainkontinenssi, virtsaamisvaikeus ja ulosteinkontinenssi. Selkäoireeseen liittyy kipua, jonka voimakkuus on 5/10. Selkäkipu on alkanut välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen. Tapaturman sattumistapa: Kompastuin kengännauhoihin. Yleisvointi on kohtalainen (pystyy tekemään pakolliset päivittäiset toiminnot). Kipulääke auttaa. Tarvitsee sairauslomaa.",
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "author": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/example-CarePlan-optional.json b/input/examples/example-CarePlan-optional.json
new file mode 100644
index 0000000..6f7a1a1
--- /dev/null
+++ b/input/examples/example-CarePlan-optional.json
@@ -0,0 +1,56 @@
+{
+ "resourceType": "CarePlan",
+ "id": "care-plan-optional",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-selfcareplan-r4",
+ "http://example.oma/sd/careplan"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "\n \n\n \n
\n
Suunnitelman otsikko
\n
Alaselkäkipu tai -vamma
\n
\n
\n
Suunnitelman tila
\n
Päättynyt
\n
\n
\n
Suunnitelman ajanjakso
\n
06-10-2020 - 06-10-2020
\n
\n
\n
Suunnitelman tyyppi
\n
Alaselkäkipu tai -vamma
\n
\n
\n
Suunnitelman yhteenveto
\n
Selkäkipusi takia sinun tulisi hakeutua välittömästi päivystysvastaanotolle.
Alaselkäkipu on paikallista ja kestänyt 1 - 4 viikkoa. Potilaalla on kuumetta 38C , potilas on sairastanut syövän tai sairastaa syöpää, vaikeuksia pidättää virtsaa, vaikeuksia pidättää ulostetta ja vaikeuksia virtsaamisessa (virtsaaminen ei onnistu). Kiireellisesti terveydenhuollon ammattilaisen arviota vaativat oireet: virtsainkontinenssi, virtsaamisvaikeus ja ulosteinkontinenssi. Selkäoireeseen liittyy kipua, jonka voimakkuus on 5/10. Selkäkipu on alkanut välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen. Tapaturman sattumistapa: Kompastuin kengännauhoihin. Yleisvointi on kohtalainen (pystyy tekemään pakolliset päivittäiset toiminnot). Kipulääke auttaa. Tarvitsee sairauslomaa.
\n
\n
\n
Kysymykset ja vastaukset
\n \n \n \n
\n
Oma arvioni
\n\t \n\t
Arvelen tarvitsevani hoitoa ja haluan täyttää oirekyselyn
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Ikäsi (vuosia)
\n\t \n\t \n\t \n\t
30
\n\t \n\t \n\t \n
\n \n\n
\n
Mikä selkäkivun oire on kyseessä?
\n\t \n\t
Alaselän oire
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Alkoiko selkäkipusi välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Oliko kyseessä työtapaturma?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Minkälaisen tapaturman seurauksena selkäkipu on alkanut?
\n\t \n\t \n\t \n\t \n\t
Kompastuin kengännauhoihin
\n\t \n\t \n
\n \n\n
\n
Onko lääkäri jo arvioinut selkäsi tilannetta edellä kuvaamasi tapaturman jälkeen?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Miten kauan selkäkipuoireesi on kestänyt?
\n\t \n\t
1 - 4 viikkoa
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulle selkäoireesi yhteydessä ilmaantunut vaikeuksia pidättää virtsaa tai ulostetta?
\n\t \n\t
Vaikeuksia pidättää ulostetta
\n\t \n\t \n\t \n\t \n\t \n\t
Vaikeuksia pidättää virtsaa
\n\t \n\t \n\t \n\t \n\t \n\t
Vaikeuksia virtsaamisessa (virtsaaminen ei onnistu)
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla alaraajassa tai alaraajoissa tuoretta etenevää voiman puutetta (et pysty tukemaan alaraajan tai alaraajojen varaan)?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko sinulla toisen alaraajan tai molempien alaraajojen etenevää tunnottomuutta, puutumista tai voiman heikentymistä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko kyseessä äkillisesti alkanut vatsakipu, joka säteilee myös selkään?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Miten voimakasta kipu on ollut viimeisen vuorokauden aikana?
\n\t \n\t
5
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Lievittyykö selkäkipusi, kun nukut sopivassa asennossa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Millaisena kipu tuntuu?
\n\t \n\t
Kipu tuntuu selässä paikallisena tai ulottuu korkeintaan reiden tasoon
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Millainen on yleisvointisi?
\n\t \n\t
Pystyn olemaan jalkeilla, mutta selviydyn vain pakollisista kotiaskareista
\n\t \n\t \n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla kuumetta (kuumeen rajana pidetään 37,5 astetta)?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Kuinka paljon kuumetta sinulla on ollut korkeimmillaan kuluneen vuorokauden aikana? Vastaa kymmenyksen tarkkuudella (esim. 37,8).
\n\t \n\t \n\t
38
\n\t \n\t \n\t \n\t \n
\n \n\n
\n
Sairastatko tai oletko sairastanut syöpää?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Minkä syövän olet sairastanut tai mitä syöpää sairastat?
\n\t \n\t \n\t \n\t \n\t
Ihosyöpä
\n\t \n\t \n
\n \n\n
\n
Tarvitsetko selkäkipusi takia sairauslomaa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Tarvitsetko selkäkivun vuoksi muuhun tarkoitukseen (esimerkiksi vakuutus tms.) lääkärin antaman todistuksen tai lausunnon?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Onko sinulla ollut samasta vaivasta viimeisen puolen vuoden aikana käyntejä fysioterapiassa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n\n
\n
Oletko käyttänyt nykyiseen oireeseesi kipulääkkeitä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Oletko saanut kipulääkkeistä riittävän avun, niin että pärjäät kipusi kanssa?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t
Kyllä
\n\t \n\t \n\t \n
\n \n\n
\n
Onko sinulla ollut samasta vaivasta viimeisen puolen vuoden aikana käyntejä lääkärillä?
\n\t \n\t \n\t \n\t \n\t \n\t \n\t \n\t
Ei
\n\t \n\t \n
\n \n \n\n
\n \n \n\n \n\n \n\n \n
"
+ },
+ "identifier": [
+ {
+ "use": "official",
+ "system": "urn:uuid:ietf:rfc:3986",
+ "value": "1"
+ },
+ {
+ "system": "urn:uuid:ietf:rfc:3981",
+ "value": "Omavalue"
+ }
+ ],
+ "status": "completed",
+ "intent": "plan",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory",
+ "code": "7",
+ "display": "Alaselkäkipu tai -vamma"
+ },
+ {
+ "system": "http://example.oma",
+ "code": "78",
+ "display": "Another CarePlan"
+ }
+ ]
+ }
+ ],
+ "title": "Alaselkäkipu tai -vamma",
+ "description": "Selkäkipusi takia sinun tulisi hakeutua välittömästi päivystysvastaanotolle.
Esitiedot Omaolo-oirearviosta (22.5.2020 klo 12:13:14): Alaselkäkipu on paikallista ja kestänyt 1 - 4 viikkoa. Potilaalla on kuumetta 38°C , potilas on sairastanut syövän tai sairastaa syöpää, vaikeuksia pidättää virtsaa, vaikeuksia pidättää ulostetta ja vaikeuksia virtsaamisessa (virtsaaminen ei onnistu). Kiireellisesti terveydenhuollon ammattilaisen arviota vaativat oireet: virtsainkontinenssi, virtsaamisvaikeus ja ulosteinkontinenssi. Selkäoireeseen liittyy kipua, jonka voimakkuus on 5/10. Selkäkipu on alkanut välittömästi kaatumisen, selkään kohdistuneen iskun tai muun tapaturman jälkeen. Tapaturman sattumistapa: Kompastuin kengännauhoihin. Yleisvointi on kohtalainen (pystyy tekemään pakolliset päivittäiset toiminnot). Kipulääke auttaa. Tarvitsee sairauslomaa.
",
+ "subject": {
+ "reference": "Patient/36749a02-1710-44e7-aa76-0e934eb7860a"
+ },
+ "period": {
+ "start": "2020-10-06",
+ "end": "2020-10-06"
+ },
+ "author": {
+ "reference": "Patient/36749a02-1710-44e7-aa76-0e934eb7860a"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/example-patient.json b/input/examples/example-patient.json
new file mode 100644
index 0000000..7b4a9e3
--- /dev/null
+++ b/input/examples/example-patient.json
@@ -0,0 +1,19 @@
+{
+ "resourceType": "Patient",
+ "id": "36749a02-1710-44e7-aa76-0e934eb7860a",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2018-03-13T14:01:59.834+02:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-patient"
+ ]
+ },
+ "language": "fi",
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:36749a02-1710-44e7-aa76-0e934eb7860a"
+ }
+ ],
+ "active": true
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-careplancategory.json b/input/examples/fiphr-cs-careplancategory.json
new file mode 100644
index 0000000..5fc0d4d
--- /dev/null
+++ b/input/examples/fiphr-cs-careplancategory.json
@@ -0,0 +1,881 @@
+{
+ "resourceType": "CodeSystem",
+ "url": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory",
+ "id": "fiphr-cs-careplancategory",
+ "name": "fiphr-cs-careplancategory",
+ "version": "2.1",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-06-05",
+ "description": "Indicates the plan category.",
+ "title": "Finnish PHR CarePlan Category code system",
+ "caseSensitive": true,
+ "publisher": "SoteDigi Oy",
+ "content": "complete",
+ "concept": [
+ {
+ "code": "1",
+ "display": "Hengitystietulehdus tai -oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hengitystietulehdus tai -oire"
+ },
+ {
+ "language": "sv",
+ "value": "Luftvägsinfektion eller -symtom"
+ },
+ {
+ "language": "en",
+ "value": "Respiratory infection or symptom"
+ }
+ ]
+ },
+ {
+ "code": "2",
+ "display": "Yskä",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yskä"
+ },
+ {
+ "language": "sv",
+ "value": "Hosta"
+ },
+ {
+ "language": "en",
+ "value": "Cough"
+ }
+ ]
+ },
+ {
+ "code": "3",
+ "display": "Virtsatietulehdus tai -oire (18–65v. naiset)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Virtsatietulehdus tai -oire (18–65v. naiset)"
+ },
+ {
+ "language": "sv",
+ "value": "Urinvägsinfektion- eller symtom (kvinnor 18–65 år)"
+ },
+ {
+ "language": "en",
+ "value": "Urinary tract infection or symptom (women aged 18–65)"
+ }
+ ]
+ },
+ {
+ "code": "4",
+ "display": "Korvan kipu tai lukkoisuus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Korvan kipu tai lukkoisuus"
+ },
+ {
+ "language": "sv",
+ "value": "Ont i öronen eller lock för örat"
+ },
+ {
+ "language": "en",
+ "value": "Earache or ear plugging"
+ }
+ ]
+ },
+ {
+ "code": "5",
+ "display": "Kurkkukipu tai nieluoire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kurkkukipu tai nieluoire"
+ },
+ {
+ "language": "sv",
+ "value": "Halsont eller svalgsymtom"
+ },
+ {
+ "language": "en",
+ "value": "Sore throat or throat symptom"
+ }
+ ]
+ },
+ {
+ "code": "6",
+ "display": "Ripuli",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Ripuli"
+ },
+ {
+ "language": "sv",
+ "value": "Diarré"
+ },
+ {
+ "language": "en",
+ "value": "Diarrhoea"
+ }
+ ]
+ },
+ {
+ "code": "7",
+ "display": "Alaselkäkipu tai -vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Alaselkäkipu tai -vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Ländryggssmärta eller -skada"
+ },
+ {
+ "language": "en",
+ "value": "Lower back pain or injury"
+ }
+ ]
+ },
+ {
+ "code": "8",
+ "display": "Närästys",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Närästys"
+ },
+ {
+ "language": "sv",
+ "value": "Halsbränna"
+ },
+ {
+ "language": "en",
+ "value": "Heartburn"
+ }
+ ]
+ },
+ {
+ "code": "9",
+ "display": "Olkapään kipu, jäykkyys tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Olkapään kipu, jäykkyys tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Smärta, stelhet eller skada i skuldran"
+ },
+ {
+ "language": "en",
+ "value": "Shoulder pain, stiffness or injury"
+ }
+ ]
+ },
+ {
+ "code": "10",
+ "display": "Päänsärky",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Päänsärky"
+ },
+ {
+ "language": "sv",
+ "value": "Huvudvärk"
+ },
+ {
+ "language": "en",
+ "value": "Headache"
+ }
+ ]
+ },
+ {
+ "code": "11",
+ "display": "Peräaukon seudun oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Peräaukon seudun oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom vid ändtarmsöppningen"
+ },
+ {
+ "language": "en",
+ "value": "Anal region symptom"
+ }
+ ]
+ },
+ {
+ "code": "12",
+ "display": "Polven oire tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Polven oire tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom eller skada i knät"
+ },
+ {
+ "language": "en",
+ "value": "Knee symptom or injury"
+ }
+ ]
+ },
+ {
+ "code": "13",
+ "display": "Silmän oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Silmän oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom i öga"
+ },
+ {
+ "language": "en",
+ "value": "Eye symptom"
+ }
+ ]
+ },
+ {
+ "code": "14",
+ "display": "Sukupuolitaudin oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sukupuolitaudin oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom på könssjukdom"
+ },
+ {
+ "language": "en",
+ "value": "Sexually transmitted disease symptom"
+ }
+ ]
+ },
+ {
+ "code": "15",
+ "display": "Terveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Terveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up"
+ }
+ ]
+ },
+ {
+ "code": "16",
+ "display": "Henkilökohtainen apu",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Henkilökohtainen apu"
+ },
+ {
+ "language": "sv",
+ "value": "Personlig assistans"
+ },
+ {
+ "language": "en",
+ "value": "Personal assistance"
+ }
+ ]
+ },
+ {
+ "code": "17",
+ "display": "Liikkuminen kodin ulkopuolella",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikkuminen kodin ulkopuolella"
+ },
+ {
+ "language": "sv",
+ "value": "Mobilitet utanför hemmet"
+ },
+ {
+ "language": "en",
+ "value": "Moving outside the home"
+ }
+ ]
+ },
+ {
+ "code": "18",
+ "display": "Maahanmuuttajan hyvinvointi",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Maahanmuuttajan hyvinvointi"
+ },
+ {
+ "language": "sv",
+ "value": "Invandrarens välbefinnande"
+ },
+ {
+ "language": "en",
+ "value": "Well-being of an immigrant"
+ }
+ ]
+ },
+ {
+ "code": "19",
+ "display": "Omaishoidon tuki",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Omaishoidon tuki"
+ },
+ {
+ "language": "sv",
+ "value": "Stöd för närståendevård"
+ },
+ {
+ "language": "en",
+ "value": "Informal care support"
+ }
+ ]
+ },
+ {
+ "code": "20",
+ "display": "Läheishoitajan tarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Läheishoitajan tarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Kontroll för anhörig omsorgsgivare"
+ },
+ {
+ "language": "en",
+ "value": "Check-up of an informal carer"
+ }
+ ]
+ },
+ {
+ "code": "21",
+ "display": "Viitosluokkalaisen terveystarkastus, vanhemmat (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, vanhemmat (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, föräldrar (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, parents (removed)"
+ }
+ ]
+ },
+ {
+ "code": "22",
+ "display": "Viitosluokkalaisen terveystarkastus, lapsi (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, lapsi (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, barn (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, child (removed)"
+ }
+ ]
+ },
+ {
+ "code": "23",
+ "display": "Yleinen hyvinvointikysely (WHOQOL-BREF)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yleinen hyvinvointikysely (WHOQOL-BREF)"
+ },
+ {
+ "language": "sv",
+ "value": "Allmän välfärdsenkät (WHOQOL-BREF)"
+ },
+ {
+ "language": "en",
+ "value": "General well-being survey (WHOQOL-BREF)"
+ }
+ ]
+ },
+ {
+ "code": "24",
+ "display": "Elämäntilannekysely (3X10D)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Elämäntilannekysely (3X10D)"
+ },
+ {
+ "language": "sv",
+ "value": "Enkät om livssituation (3X10D)"
+ },
+ {
+ "language": "en",
+ "value": "Life-situation survey (3X10D)"
+ }
+ ]
+ },
+ {
+ "code": "25",
+ "display": "Opiskeluterveydenhuollon esitiedot",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Opiskeluterveydenhuollon esitiedot"
+ },
+ {
+ "language": "sv",
+ "value": "Förhandsuppgifter för studerandehälsovården"
+ },
+ {
+ "language": "en",
+ "value": "Preliminary information for student health care"
+ }
+ ]
+ },
+ {
+ "code": "26",
+ "display": "Suun terveydentila, lapset ja nuoret",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suun terveydentila, lapset ja nuoret"
+ },
+ {
+ "language": "sv",
+ "value": "Munhälsa, barn och unga"
+ },
+ {
+ "language": "en",
+ "value": "Oral health status, children and young persons"
+ }
+ ]
+ },
+ {
+ "code": "27",
+ "display": "Omaishoitajan jaksaminen",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Omaishoitajan jaksaminen"
+ },
+ {
+ "language": "sv",
+ "value": "Närståendevårdarens ork"
+ },
+ {
+ "language": "en",
+ "value": "Family carer ability to cope"
+ }
+ ]
+ },
+ {
+ "code": "28",
+ "display": "Puolitoistavuotiaan laaja terveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Puolitoistavuotiaan laaja terveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Omfattande hälsokontroll för barn, 18 månader"
+ },
+ {
+ "language": "en",
+ "value": "Extensive health check-up of a one-and-a-half-year-old"
+ }
+ ]
+ },
+ {
+ "code": "29",
+ "display": "Yötyötä tekevän työterveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yötyötä tekevän työterveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för nattarbetande"
+ },
+ {
+ "language": "en",
+ "value": "Occupational health check-up of a night worker"
+ }
+ ]
+ },
+ {
+ "code": "30",
+ "display": "Kohonnut verenpaine",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kohonnut verenpaine"
+ },
+ {
+ "language": "sv",
+ "value": "Hypertoni"
+ },
+ {
+ "language": "en",
+ "value": "High blood pressure"
+ }
+ ]
+ },
+ {
+ "code": "31",
+ "display": "Yläkoululaisen terveystarkastus, vanhemmat (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yläkoululaisen terveystarkastus, vanhemmat (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för högstadieelev, föräldrar (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of an upper comprehensive school pupil, parents (removed)"
+ }
+ ]
+ },
+ {
+ "code": "32",
+ "display": "Viitosluokkalaisen terveystarkastus, vanhemmat",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, vanhemmat"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, föräldrar"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, parents"
+ }
+ ]
+ },
+ {
+ "code": "33",
+ "display": "Hampaiden tai suun oire tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hampaiden tai suun oire tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom eller skada i tänder eller mun"
+ },
+ {
+ "language": "en",
+ "value": "Teeth or mouth symptom or injury"
+ }
+ ]
+ },
+ {
+ "code": "34",
+ "display": "Suun terveydentila, aikuiset",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suun terveydentila, aikuiset"
+ },
+ {
+ "language": "sv",
+ "value": "Munhälsa, vuxna"
+ },
+ {
+ "language": "en",
+ "value": "Oral health status, adults"
+ }
+ ]
+ },
+ {
+ "code": "35",
+ "display": "Äitiysneuvolan esitiedot",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Äitiysneuvolan esitiedot"
+ },
+ {
+ "language": "sv",
+ "value": "Förhandsuppgifter till mödrarådgivningen"
+ },
+ {
+ "language": "en",
+ "value": "Preliminary information for the maternity clinic"
+ }
+ ]
+ },
+ {
+ "code": "36",
+ "display": "Hyvinvointitarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hyvinvointitarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Välfärdsenkät"
+ },
+ {
+ "language": "en",
+ "value": "Well-being check-up"
+ }
+ ]
+ },
+ {
+ "code": "37",
+ "display": "Suunnitelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suunnitelma"
+ },
+ {
+ "language": "sv",
+ "value": "Plan"
+ },
+ {
+ "language": "en",
+ "value": "Plan"
+ }
+ ]
+ },
+ {
+ "code": "38",
+ "display": "Liikuntaohjelma askeltajille",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikuntaohjelma askeltajille"
+ },
+ {
+ "language": "sv",
+ "value": "Stegprogrammet"
+ },
+ {
+ "language": "en",
+ "value": "Exercise programme for walkers and runners"
+ }
+ ]
+ },
+ {
+ "code": "39",
+ "display": "Lääkärintodistus, pyyntö",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lääkärintodistus, pyyntö"
+ },
+ {
+ "language": "sv",
+ "value": "Läkarintyg, begäran"
+ },
+ {
+ "language": "en",
+ "value": "Medical certificate, request"
+ }
+ ]
+ },
+ {
+ "code": "40",
+ "display": "Diabetes, riskitesti",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Diabetes, riskitesti"
+ },
+ {
+ "language": "sv",
+ "value": "Diabetes, risktest"
+ },
+ {
+ "language": "en",
+ "value": "Diabetes, risk test"
+ }
+ ]
+ },
+ {
+ "code": "41",
+ "display": "Yleinen oirearvio",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yleinen oirearvio"
+ },
+ {
+ "language": "sv",
+ "value": "Allmän symtombedömning"
+ },
+ {
+ "language": "en",
+ "value": "General symptom assessment"
+ }
+ ]
+ },
+ {
+ "code": "42",
+ "display": "Painonhallinta",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Painonhallinta"
+ },
+ {
+ "language": "sv",
+ "value": "Viktkontroll"
+ },
+ {
+ "language": "en",
+ "value": "Weight management"
+ }
+ ]
+ },
+ {
+ "code": "43",
+ "display": "Tupakoinnin lopettamisen valmennusohjelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Tupakoinnin lopettamisen valmennusohjelma"
+ },
+ {
+ "language": "sv",
+ "value": "Coachningsprogram för att sluta röka"
+ },
+ {
+ "language": "en",
+ "value": "Coaching programme for quitting smoking"
+ }
+ ]
+ },
+ {
+ "code": "44",
+ "display": "Terveellinen ravinto -valmennusohjelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Terveellinen ravinto -valmennusohjelma"
+ },
+ {
+ "language": "sv",
+ "value": "Coachningsprogrammet Hälsosam näring"
+ },
+ {
+ "language": "en",
+ "value": "Healthy nutrition coaching programme"
+ }
+ ]
+ },
+ {
+ "code": "45",
+ "display": "Univalmennus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Univalmennus"
+ },
+ {
+ "language": "sv",
+ "value": "Sömncoachning"
+ },
+ {
+ "language": "en",
+ "value": "Sleep coaching"
+ }
+ ]
+ },
+ {
+ "code": "46",
+ "display": "Avoin palvelupyyntö",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Avoin palvelupyyntö"
+ },
+ {
+ "language": "sv",
+ "value": "Öppen servicebegäran"
+ },
+ {
+ "language": "en",
+ "value": "Open service request"
+ }
+ ]
+ },
+ {
+ "code": "47",
+ "display": "Raskausdiabeteksen jälkiseuranta",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Raskausdiabeteksen jälkiseuranta"
+ },
+ {
+ "language": "sv",
+ "value": "Uppföljning av graviditetsdiabetes"
+ },
+ {
+ "language": "en",
+ "value": "Gestational diabetes follow-up"
+ }
+ ]
+ },
+ {
+ "code": "48",
+ "display": "Koronavirustauti",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Koronavirustauti"
+ },
+ {
+ "language": "sv",
+ "value": "Coronavirusinfektion"
+ },
+ {
+ "language": "en",
+ "value": "Coronavirus disease"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-consentcategory.json b/input/examples/fiphr-cs-consentcategory.json
new file mode 100644
index 0000000..dc2f151
--- /dev/null
+++ b/input/examples/fiphr-cs-consentcategory.json
@@ -0,0 +1,37 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-consentcategory",
+ "url": "http://phr.kanta.fi/fiphr-cs-consentcategory",
+ "version": "1.0",
+ "name": "fiphr-cs-consentcategory",
+ "title": "Code System Finnish PHR Consent Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T10:39:00+02:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR Consent Category codes",
+ "caseSensitive": true,
+ "valueSet": "http://phr.kanta.fi/ValueSet/fiphr-vs-consentcategory",
+ "content": "complete",
+ "concept": [
+ {
+ "code": "1",
+ "display": "Consent to share wellbeing information stored in My Kanta Pages Personal Health Record to social welfare and healthcare service providers",
+ "definition": "Consent to share wellbeing information stored in My Kanta Pages Personal Health Record to social welfare and healthcare service providers",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suostumus hyvinvointitietojen luovuttamiseen Omatietovarannosta sosiaali- ja terveydenhuollon palvelunantajille"
+ },
+ {
+ "language": "sv",
+ "value": "Samtycke till att uppgifter om en persons välbefinnande lämnas ut från Datalagret för egna uppgifter till tillhandahållare av tjänster inom social- och hälsovården"
+ },
+ {
+ "language": "en",
+ "value": "Consent to share wellbeing information stored in My Kanta Pages Personal Health Record to social welfare and healthcare service providers"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-fitnesscategory.json b/input/examples/fiphr-cs-fitnesscategory.json
new file mode 100644
index 0000000..aaea724
--- /dev/null
+++ b/input/examples/fiphr-cs-fitnesscategory.json
@@ -0,0 +1,29 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-fitnesscategory",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
+ "valueInteger": 0
+ }
+ ],
+ "url": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "version": "1.0",
+ "name": "fiphr-cs-fitnesscategory",
+ "title": "Code System Finnish PHR Fitness Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T10:45:00+02:00",
+ "publisher": "W2E",
+ "description": "Observation category code for Finnish PHR Fitness Category",
+ "caseSensitive": true,
+ "valueSet": "http://phr.kanta.fi/ValueSet/fitness-category",
+ "content": "complete",
+ "concept": [
+ {
+ "code": "fitness",
+ "display": "Fitness",
+ "definition": "Fitness or physical activity observations measure the patient's fitness indicators: resting heart rate, maximum heart rate, active time exercised, sedentary behaviour, sleep episodes, calories burned, distance reached or steps taken. Measures can be timed over arbitrary periods (sessions) or over a day or week."
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-insulincode.json b/input/examples/fiphr-cs-insulincode.json
new file mode 100644
index 0000000..ce77b43
--- /dev/null
+++ b/input/examples/fiphr-cs-insulincode.json
@@ -0,0 +1,53 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-insulincode",
+ "url": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode",
+ "version": "1.0",
+ "name": "fiphr-cs-insulincode",
+ "title": "Code System Finnish PHR Insulin Code",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-17T00:00:00+00:00",
+ "publisher": "Kela ",
+ "description": "Finnish PHR Insulin Code System, includes codes indicating what kind of insulin has been administered.",
+ "caseSensitive": true,
+ "content": "complete",
+ "concept": [
+ {
+ "code": "ins-short-fast",
+ "definition": "A code for short and fast acting insulins, for example insulins that could be included in the group A10AB of the ATC Code System.",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lyhytvaikutteinen insuliini"
+ },
+ {
+ "language": "sv",
+ "value": "Direktverkande insulin"
+ },
+ {
+ "language": "en",
+ "value": "Fast-acting insulin"
+ }
+ ]
+ },
+ {
+ "code": "ins-intermediate-long",
+ "definition": "A code for intermediate and long acting insulins, for example insulins that could be included in the groups A10AC, A10AD and A10AE of the ATC Code System.",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pitkävaikutteinen insuliini"
+ },
+ {
+ "language": "sv",
+ "value": "Långverkande insulin"
+ },
+ {
+ "language": "en",
+ "value": "Intermediate-acting insulin"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-moderatetovigorouspa.json b/input/examples/fiphr-cs-moderatetovigorouspa.json
new file mode 100644
index 0000000..672c0b4
--- /dev/null
+++ b/input/examples/fiphr-cs-moderatetovigorouspa.json
@@ -0,0 +1,36 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-moderatetovigorouspa",
+ "url": "http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa",
+ "version": "1.1",
+ "name": "fiphr-cs-moderatetovigorouspa",
+ "title": "Code System Finnish PHR Moderate to Vigorous Physical Activity Fitness Observation Code",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-12-19T10:49:00+02:00",
+ "publisher": "W2E",
+ "description": "Finnish PHR Fitness Codesystem, that defines the code used for daily minutes of moderate to vigorous physical activity. Will be replaced with LOINC system code when available.",
+ "caseSensitive": true,
+ "content": "complete",
+ "concept": [
+ {
+ "code": "82290-8-24h",
+ "display": "Daily Moderate to Vigorous Physical Activity in minutes",
+ "definition": "Daily PA minutes with MET > 2.9",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Päivittäinen kohtuullisen ja raskaan liikunnan määrä minuutteina"
+ },
+ {
+ "language": "sv",
+ "value": "Måttlig eller hård aktivitet per dag, minuter"
+ },
+ {
+ "language": "en",
+ "value": "Daily moderate to vigorous physical activity, min"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-observationcategory.json b/input/examples/fiphr-cs-observationcategory.json
new file mode 100644
index 0000000..4a1eadb
--- /dev/null
+++ b/input/examples/fiphr-cs-observationcategory.json
@@ -0,0 +1,51 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-observationcategory",
+ "url": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "version": "1.0",
+ "name": "fiphr-cs-observationcategory",
+ "title": "Code System Finnish PHR Observation Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2019-10-14T11:00:00Z",
+ "publisher": "Kela",
+ "description": "Finnish PHR Observation Category Code System that defines codes for Observation.category when there is no suitable code in the FHIR standard observation category code system.",
+ "caseSensitive": true,
+ "content": "complete",
+ "concept": [
+ {
+ "code": "nutrition",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Ravitsemus"
+ },
+ {
+ "language": "sv",
+ "value": "Näringstillstånd"
+ },
+ {
+ "language": "en",
+ "value": "Nutrition"
+ }
+ ]
+ },
+ {
+ "code": "urinary-monitoring",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Virtsan seuranta"
+ },
+ {
+ "language": "sv",
+ "value": "Uppföljning av urinen"
+ },
+ {
+ "language": "en",
+ "value": "Urinary monitoring"
+ }
+ ]
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-cs-vnrcode.json b/input/examples/fiphr-cs-vnrcode.json
new file mode 100644
index 0000000..c04a064
--- /dev/null
+++ b/input/examples/fiphr-cs-vnrcode.json
@@ -0,0 +1,14 @@
+{
+ "resourceType": "CodeSystem",
+ "id": "fiphr-cs-vnrcode",
+ "url": "urn:oid:1.2.246.537.6.55",
+ "version": "1.0",
+ "name": "Code System Finnish PHR VNR Code",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-17T00:00:00+00:00",
+ "publisher": "Kela ",
+ "description": "Finnish PHR VNR codesystem, that defines VNR codes with CodeSystem.content as not-present.",
+ "caseSensitive": true,
+ "content": "not-present"
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-careplancategory.json b/input/examples/fiphr-vs-careplancategory.json
new file mode 100644
index 0000000..3e61944
--- /dev/null
+++ b/input/examples/fiphr-vs-careplancategory.json
@@ -0,0 +1,886 @@
+{
+ "resourceType": "ValueSet",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-careplancategory",
+ "id": "fiphr-vs-careplancategory",
+ "name": "fiphr-vs-careplancategory",
+ "version": "2.1",
+ "status": "active",
+ "title": "Finnish PHR CarePlan Category value set",
+ "experimental": false,
+ "date": "2020-06-05",
+ "description": "Indicates type of SelfCarePlan.",
+ "publisher": "SoteDigi Oy",
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-careplancategory",
+ "concept": [
+ {
+ "code": "1",
+ "display": "Hengitystietulehdus tai -oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hengitystietulehdus tai -oire"
+ },
+ {
+ "language": "sv",
+ "value": "Luftvägsinfektion eller -symtom"
+ },
+ {
+ "language": "en",
+ "value": "Respiratory infection or symptom"
+ }
+ ]
+ },
+ {
+ "code": "2",
+ "display": "Yskä",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yskä"
+ },
+ {
+ "language": "sv",
+ "value": "Hosta"
+ },
+ {
+ "language": "en",
+ "value": "Cough"
+ }
+ ]
+ },
+ {
+ "code": "3",
+ "display": "Virtsatietulehdus tai -oire (18–65v. naiset)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Virtsatietulehdus tai -oire (18–65v. naiset)"
+ },
+ {
+ "language": "sv",
+ "value": "Urinvägsinfektion- eller symtom (kvinnor 18–65 år)"
+ },
+ {
+ "language": "en",
+ "value": "Urinary tract infection or symptom (women aged 18–65)"
+ }
+ ]
+ },
+ {
+ "code": "4",
+ "display": "Korvan kipu tai lukkoisuus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Korvan kipu tai lukkoisuus"
+ },
+ {
+ "language": "sv",
+ "value": "Ont i öronen eller lock för örat"
+ },
+ {
+ "language": "en",
+ "value": "Earache or ear plugging"
+ }
+ ]
+ },
+ {
+ "code": "5",
+ "display": "Kurkkukipu tai nieluoire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kurkkukipu tai nieluoire"
+ },
+ {
+ "language": "sv",
+ "value": "Halsont eller svalgsymtom"
+ },
+ {
+ "language": "en",
+ "value": "Sore throat or throat symptom"
+ }
+ ]
+ },
+ {
+ "code": "6",
+ "display": "Ripuli",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Ripuli"
+ },
+ {
+ "language": "sv",
+ "value": "Diarré"
+ },
+ {
+ "language": "en",
+ "value": "Diarrhoea"
+ }
+ ]
+ },
+ {
+ "code": "7",
+ "display": "Alaselkäkipu tai -vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Alaselkäkipu tai -vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Ländryggssmärta eller -skada"
+ },
+ {
+ "language": "en",
+ "value": "Lower back pain or injury"
+ }
+ ]
+ },
+ {
+ "code": "8",
+ "display": "Närästys",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Närästys"
+ },
+ {
+ "language": "sv",
+ "value": "Halsbränna"
+ },
+ {
+ "language": "en",
+ "value": "Heartburn"
+ }
+ ]
+ },
+ {
+ "code": "9",
+ "display": "Olkapään kipu, jäykkyys tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Olkapään kipu, jäykkyys tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Smärta, stelhet eller skada i skuldran"
+ },
+ {
+ "language": "en",
+ "value": "Shoulder pain, stiffness or injury"
+ }
+ ]
+ },
+ {
+ "code": "10",
+ "display": "Päänsärky",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Päänsärky"
+ },
+ {
+ "language": "sv",
+ "value": "Huvudvärk"
+ },
+ {
+ "language": "en",
+ "value": "Headache"
+ }
+ ]
+ },
+ {
+ "code": "11",
+ "display": "Peräaukon seudun oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Peräaukon seudun oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom vid ändtarmsöppningen"
+ },
+ {
+ "language": "en",
+ "value": "Anal region symptom"
+ }
+ ]
+ },
+ {
+ "code": "12",
+ "display": "Polven oire tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Polven oire tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom eller skada i knät"
+ },
+ {
+ "language": "en",
+ "value": "Knee symptom or injury"
+ }
+ ]
+ },
+ {
+ "code": "13",
+ "display": "Silmän oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Silmän oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom i öga"
+ },
+ {
+ "language": "en",
+ "value": "Eye symptom"
+ }
+ ]
+ },
+ {
+ "code": "14",
+ "display": "Sukupuolitaudin oire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sukupuolitaudin oire"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom på könssjukdom"
+ },
+ {
+ "language": "en",
+ "value": "Sexually transmitted disease symptom"
+ }
+ ]
+ },
+ {
+ "code": "15",
+ "display": "Terveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Terveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up"
+ }
+ ]
+ },
+ {
+ "code": "16",
+ "display": "Henkilökohtainen apu",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Henkilökohtainen apu"
+ },
+ {
+ "language": "sv",
+ "value": "Personlig assistans"
+ },
+ {
+ "language": "en",
+ "value": "Personal assistance"
+ }
+ ]
+ },
+ {
+ "code": "17",
+ "display": "Liikkuminen kodin ulkopuolella",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikkuminen kodin ulkopuolella"
+ },
+ {
+ "language": "sv",
+ "value": "Mobilitet utanför hemmet"
+ },
+ {
+ "language": "en",
+ "value": "Moving outside the home"
+ }
+ ]
+ },
+ {
+ "code": "18",
+ "display": "Maahanmuuttajan hyvinvointi",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Maahanmuuttajan hyvinvointi"
+ },
+ {
+ "language": "sv",
+ "value": "Invandrarens välbefinnande"
+ },
+ {
+ "language": "en",
+ "value": "Well-being of an immigrant"
+ }
+ ]
+ },
+ {
+ "code": "19",
+ "display": "Omaishoidon tuki",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Omaishoidon tuki"
+ },
+ {
+ "language": "sv",
+ "value": "Stöd för närståendevård"
+ },
+ {
+ "language": "en",
+ "value": "Informal care support"
+ }
+ ]
+ },
+ {
+ "code": "20",
+ "display": "Läheishoitajan tarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Läheishoitajan tarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Kontroll för anhörig omsorgsgivare"
+ },
+ {
+ "language": "en",
+ "value": "Check-up of an informal carer"
+ }
+ ]
+ },
+ {
+ "code": "21",
+ "display": "Viitosluokkalaisen terveystarkastus, vanhemmat (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, vanhemmat (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, föräldrar (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, parents (removed)"
+ }
+ ]
+ },
+ {
+ "code": "22",
+ "display": "Viitosluokkalaisen terveystarkastus, lapsi (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, lapsi (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, barn (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, child (removed)"
+ }
+ ]
+ },
+ {
+ "code": "23",
+ "display": "Yleinen hyvinvointikysely (WHOQOL-BREF)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yleinen hyvinvointikysely (WHOQOL-BREF)"
+ },
+ {
+ "language": "sv",
+ "value": "Allmän välfärdsenkät (WHOQOL-BREF)"
+ },
+ {
+ "language": "en",
+ "value": "General well-being survey (WHOQOL-BREF)"
+ }
+ ]
+ },
+ {
+ "code": "24",
+ "display": "Elämäntilannekysely (3X10D)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Elämäntilannekysely (3X10D)"
+ },
+ {
+ "language": "sv",
+ "value": "Enkät om livssituation (3X10D)"
+ },
+ {
+ "language": "en",
+ "value": "Life-situation survey (3X10D)"
+ }
+ ]
+ },
+ {
+ "code": "25",
+ "display": "Opiskeluterveydenhuollon esitiedot",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Opiskeluterveydenhuollon esitiedot"
+ },
+ {
+ "language": "sv",
+ "value": "Förhandsuppgifter för studerandehälsovården"
+ },
+ {
+ "language": "en",
+ "value": "Preliminary information for student health care"
+ }
+ ]
+ },
+ {
+ "code": "26",
+ "display": "Suun terveydentila, lapset ja nuoret",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suun terveydentila, lapset ja nuoret"
+ },
+ {
+ "language": "sv",
+ "value": "Munhälsa, barn och unga"
+ },
+ {
+ "language": "en",
+ "value": "Oral health status, children and young persons"
+ }
+ ]
+ },
+ {
+ "code": "27",
+ "display": "Omaishoitajan jaksaminen",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Omaishoitajan jaksaminen"
+ },
+ {
+ "language": "sv",
+ "value": "Närståendevårdarens ork"
+ },
+ {
+ "language": "en",
+ "value": "Family carer ability to cope"
+ }
+ ]
+ },
+ {
+ "code": "28",
+ "display": "Puolitoistavuotiaan laaja terveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Puolitoistavuotiaan laaja terveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Omfattande hälsokontroll för barn, 18 månader"
+ },
+ {
+ "language": "en",
+ "value": "Extensive health check-up of a one-and-a-half-year-old"
+ }
+ ]
+ },
+ {
+ "code": "29",
+ "display": "Yötyötä tekevän työterveystarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yötyötä tekevän työterveystarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för nattarbetande"
+ },
+ {
+ "language": "en",
+ "value": "Occupational health check-up of a night worker"
+ }
+ ]
+ },
+ {
+ "code": "30",
+ "display": "Kohonnut verenpaine",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kohonnut verenpaine"
+ },
+ {
+ "language": "sv",
+ "value": "Hypertoni"
+ },
+ {
+ "language": "en",
+ "value": "High blood pressure"
+ }
+ ]
+ },
+ {
+ "code": "31",
+ "display": "Yläkoululaisen terveystarkastus, vanhemmat (poistettu)",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yläkoululaisen terveystarkastus, vanhemmat (poistettu)"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för högstadieelev, föräldrar (borttagen)"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of an upper comprehensive school pupil, parents (removed)"
+ }
+ ]
+ },
+ {
+ "code": "32",
+ "display": "Viitosluokkalaisen terveystarkastus, vanhemmat",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viitosluokkalaisen terveystarkastus, vanhemmat"
+ },
+ {
+ "language": "sv",
+ "value": "Hälsokontroll för femteklassist, föräldrar"
+ },
+ {
+ "language": "en",
+ "value": "Health check-up of a fifth-grader, parents"
+ }
+ ]
+ },
+ {
+ "code": "33",
+ "display": "Hampaiden tai suun oire tai vamma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hampaiden tai suun oire tai vamma"
+ },
+ {
+ "language": "sv",
+ "value": "Symtom eller skada i tänder eller mun"
+ },
+ {
+ "language": "en",
+ "value": "Teeth or mouth symptom or injury"
+ }
+ ]
+ },
+ {
+ "code": "34",
+ "display": "Suun terveydentila, aikuiset",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suun terveydentila, aikuiset"
+ },
+ {
+ "language": "sv",
+ "value": "Munhälsa, vuxna"
+ },
+ {
+ "language": "en",
+ "value": "Oral health status, adults"
+ }
+ ]
+ },
+ {
+ "code": "35",
+ "display": "Äitiysneuvolan esitiedot",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Äitiysneuvolan esitiedot"
+ },
+ {
+ "language": "sv",
+ "value": "Förhandsuppgifter till mödrarådgivningen"
+ },
+ {
+ "language": "en",
+ "value": "Preliminary information for the maternity clinic"
+ }
+ ]
+ },
+ {
+ "code": "36",
+ "display": "Hyvinvointitarkastus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hyvinvointitarkastus"
+ },
+ {
+ "language": "sv",
+ "value": "Välfärdsenkät"
+ },
+ {
+ "language": "en",
+ "value": "Well-being check-up"
+ }
+ ]
+ },
+ {
+ "code": "37",
+ "display": "Suunnitelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suunnitelma"
+ },
+ {
+ "language": "sv",
+ "value": "Plan"
+ },
+ {
+ "language": "en",
+ "value": "Plan"
+ }
+ ]
+ },
+ {
+ "code": "38",
+ "display": "Liikuntaohjelma askeltajille",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikuntaohjelma askeltajille"
+ },
+ {
+ "language": "sv",
+ "value": "Stegprogrammet"
+ },
+ {
+ "language": "en",
+ "value": "Exercise programme for walkers and runners"
+ }
+ ]
+ },
+ {
+ "code": "39",
+ "display": "Lääkärintodistus, pyyntö",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lääkärintodistus, pyyntö"
+ },
+ {
+ "language": "sv",
+ "value": "Läkarintyg, begäran"
+ },
+ {
+ "language": "en",
+ "value": "Medical certificate, request"
+ }
+ ]
+ },
+ {
+ "code": "40",
+ "display": "Diabetes, riskitesti",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Diabetes, riskitesti"
+ },
+ {
+ "language": "sv",
+ "value": "Diabetes, risktest"
+ },
+ {
+ "language": "en",
+ "value": "Diabetes, risk test"
+ }
+ ]
+ },
+ {
+ "code": "41",
+ "display": "Yleinen oirearvio",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yleinen oirearvio"
+ },
+ {
+ "language": "sv",
+ "value": "Allmän symtombedömning"
+ },
+ {
+ "language": "en",
+ "value": "General symptom assessment"
+ }
+ ]
+ },
+ {
+ "code": "42",
+ "display": "Painonhallinta",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Painonhallinta"
+ },
+ {
+ "language": "sv",
+ "value": "Viktkontroll"
+ },
+ {
+ "language": "en",
+ "value": "Weight management"
+ }
+ ]
+ },
+ {
+ "code": "43",
+ "display": "Tupakoinnin lopettamisen valmennusohjelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Tupakoinnin lopettamisen valmennusohjelma"
+ },
+ {
+ "language": "sv",
+ "value": "Coachningsprogram för att sluta röka"
+ },
+ {
+ "language": "en",
+ "value": "Coaching programme for quitting smoking"
+ }
+ ]
+ },
+ {
+ "code": "44",
+ "display": "Terveellinen ravinto -valmennusohjelma",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Terveellinen ravinto -valmennusohjelma"
+ },
+ {
+ "language": "sv",
+ "value": "Coachningsprogrammet Hälsosam näring"
+ },
+ {
+ "language": "en",
+ "value": "Healthy nutrition coaching programme"
+ }
+ ]
+ },
+ {
+ "code": "45",
+ "display": "Univalmennus",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Univalmennus"
+ },
+ {
+ "language": "sv",
+ "value": "Sömncoachning"
+ },
+ {
+ "language": "en",
+ "value": "Sleep coaching"
+ }
+ ]
+ },
+ {
+ "code": "46",
+ "display": "Avoin palvelupyyntö",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Avoin palvelupyyntö"
+ },
+ {
+ "language": "sv",
+ "value": "Öppen servicebegäran"
+ },
+ {
+ "language": "en",
+ "value": "Open service request"
+ }
+ ]
+ },
+ {
+ "code": "47",
+ "display": "Raskausdiabeteksen jälkiseuranta",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Raskausdiabeteksen jälkiseuranta"
+ },
+ {
+ "language": "sv",
+ "value": "Uppföljning av graviditetsdiabetes"
+ },
+ {
+ "language": "en",
+ "value": "Gestational diabetes follow-up"
+ }
+ ]
+ },
+ {
+ "code": "48",
+ "display": "Koronavirustauti",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Koronavirustauti"
+ },
+ {
+ "language": "sv",
+ "value": "Coronavirusinfektion"
+ },
+ {
+ "language": "en",
+ "value": "Coronavirus disease"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-confidentiality.json b/input/examples/fiphr-vs-confidentiality.json
new file mode 100644
index 0000000..6f852f7
--- /dev/null
+++ b/input/examples/fiphr-vs-confidentiality.json
@@ -0,0 +1,81 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-confidentiality",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2017-03-02T13:56:51.448+00:00"
+ },
+ "text": {
+ "status": "generated",
+ "div": "!-- Snipped for Brevity -->
"
+ },
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-confidentiality",
+ "version": "1.0",
+ "name": "fiphr-vs-confidentiality",
+ "title": "Value Set Finnish PHR Confidentiality",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T14:08:00+02:00",
+ "publisher": "Kela",
+ "contact": [
+ {
+ "telecom": [
+ {
+ "system": "email",
+ "value": "kantakehitys@kanta.fi"
+ },
+ {
+ "system": "other",
+ "value": "http://www.kanta.fi/en/web/ammattilaisille/omakannan-omatietovarannon-maarittelyt"
+ }
+ ]
+ }
+ ],
+ "description": "Value set for confidentiality codes used in finnish PHR",
+ "immutable": false,
+ "compose": {
+ "include": [
+ {
+ "system": "http://hl7.org/fhir/v3/Confidentiality",
+ "concept": [
+ {
+ "code": "R",
+ "display": "Restricted",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kielletty"
+ },
+ {
+ "language": "sv",
+ "value": "Förbjudet"
+ },
+ {
+ "language": "en",
+ "value": "Restricted"
+ }
+ ]
+ },
+ {
+ "code": "U",
+ "display": "Unrestricted",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sallittu"
+ },
+ {
+ "language": "sv",
+ "value": "Tillåtet"
+ },
+ {
+ "language": "en",
+ "value": "Unrestricted"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-consentcategory.json b/input/examples/fiphr-vs-consentcategory.json
new file mode 100644
index 0000000..a20e425
--- /dev/null
+++ b/input/examples/fiphr-vs-consentcategory.json
@@ -0,0 +1,19 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-consentcategory",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-consentcategory",
+ "version": "1.0",
+ "name": "fiphr-vs-consentcategory",
+ "title": "Value Set Finnish PHR Consent Category",
+ "status": "active",
+ "date": "2018-03-16T13:52:00+02:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR Consent Category value set.",
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-consentcategory"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-exerciseactivity.json b/input/examples/fiphr-vs-exerciseactivity.json
new file mode 100644
index 0000000..69fc159
--- /dev/null
+++ b/input/examples/fiphr-vs-exerciseactivity.json
@@ -0,0 +1,904 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-exerciseactivity",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseactivity",
+ "version": "1.1",
+ "name": "fiphr-vs-exerciseactivity",
+ "title": "Value Set Finnish PHR Exercise Activity",
+ "status": "draft",
+ "experimental": false,
+ "date": "2021-06-21",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Exercise Activity value set",
+ "compose": {
+ "include": [
+ {
+ "system": "urn:oid:1.2.246.537.6.301",
+ "concept": [
+ {
+ "code": "A0101",
+ "display": "Basketball",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Koripallo"
+ },
+ {
+ "language": "sv",
+ "value": "Basketboll"
+ },
+ {
+ "language": "en",
+ "value": "Basketball"
+ }
+ ]
+ },
+ {
+ "code": "A0109",
+ "display": "Soccer",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Jalkapallo"
+ },
+ {
+ "language": "sv",
+ "value": "Fotboll"
+ },
+ {
+ "language": "en",
+ "value": "Soccer"
+ }
+ ]
+ },
+ {
+ "code": "A0112",
+ "display": "Volleyball",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lentopallo"
+ },
+ {
+ "language": "sv",
+ "value": "Volleyboll"
+ },
+ {
+ "language": "en",
+ "value": "Volleyball"
+ }
+ ]
+ },
+ {
+ "code": "A0203",
+ "display": "Ice hockey",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Jääkiekko"
+ },
+ {
+ "language": "sv",
+ "value": "Ishockey"
+ },
+ {
+ "language": "en",
+ "value": "Ice hockey"
+ }
+ ]
+ },
+ {
+ "code": "A0250",
+ "display": "Baseball",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pesäpallo"
+ },
+ {
+ "language": "sv",
+ "value": "Boboll"
+ },
+ {
+ "language": "en",
+ "value": "Baseball"
+ }
+ ]
+ },
+ {
+ "code": "A0251",
+ "display": "Floorball",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Salibandy"
+ },
+ {
+ "language": "sv",
+ "value": "Innebandy"
+ },
+ {
+ "language": "en",
+ "value": "Floorball"
+ }
+ ]
+ },
+ {
+ "code": "B0405",
+ "display": "Rowing or paddling",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Soutu tai melonta"
+ },
+ {
+ "language": "sv",
+ "value": "Rodd eller paddling"
+ },
+ {
+ "language": "en",
+ "value": "Rowing or paddling"
+ }
+ ]
+ },
+ {
+ "code": "B0450",
+ "display": "Rowing indoors",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Soutu soutulaitteella"
+ },
+ {
+ "language": "sv",
+ "value": "Rodd med roddmaskin"
+ },
+ {
+ "language": "en",
+ "value": "Rowing indoors"
+ }
+ ]
+ },
+ {
+ "code": "B0507",
+ "display": "Swimming",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Uinti"
+ },
+ {
+ "language": "sv",
+ "value": "Simning"
+ },
+ {
+ "language": "en",
+ "value": "Swimming"
+ }
+ ]
+ },
+ {
+ "code": "B0550",
+ "display": "Aquajogging",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Vesijuoksu"
+ },
+ {
+ "language": "sv",
+ "value": "Vattenlöpning"
+ },
+ {
+ "language": "en",
+ "value": "Aquajogging"
+ }
+ ]
+ },
+ {
+ "code": "B0551",
+ "display": "Water aerobics",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Vesivoimistelu"
+ },
+ {
+ "language": "sv",
+ "value": "Vattengymnastik"
+ },
+ {
+ "language": "en",
+ "value": "Water aerobics"
+ }
+ ]
+ },
+ {
+ "code": "B0603",
+ "display": "Ice skating",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Luistelu"
+ },
+ {
+ "language": "sv",
+ "value": "Skridskoåkning"
+ },
+ {
+ "language": "en",
+ "value": "Ice skating"
+ }
+ ]
+ },
+ {
+ "code": "B0606",
+ "display": "Cross-country skiing",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Maastohiihto"
+ },
+ {
+ "language": "sv",
+ "value": "Längdskidåkning"
+ },
+ {
+ "language": "en",
+ "value": "Cross-country skiing"
+ }
+ ]
+ },
+ {
+ "code": "B0655",
+ "display": "Snowshoeing",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lumikenkäkävely"
+ },
+ {
+ "language": "sv",
+ "value": "Snöskogång"
+ },
+ {
+ "language": "en",
+ "value": "Snowshoeing"
+ }
+ ]
+ },
+ {
+ "code": "B0701",
+ "display": "Aerobics",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Aerobic"
+ },
+ {
+ "language": "sv",
+ "value": "Aerobics"
+ },
+ {
+ "language": "en",
+ "value": "Aerobics"
+ }
+ ]
+ },
+ {
+ "code": "B0702",
+ "display": "Jogging",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hölkkä"
+ },
+ {
+ "language": "sv",
+ "value": "Joggning"
+ },
+ {
+ "language": "en",
+ "value": "Jogging"
+ }
+ ]
+ },
+ {
+ "code": "B0718",
+ "display": "Walking",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kävely"
+ },
+ {
+ "language": "sv",
+ "value": "Gång"
+ },
+ {
+ "language": "en",
+ "value": "Walking"
+ }
+ ]
+ },
+ {
+ "code": "B0719",
+ "display": "Yoga",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Jooga"
+ },
+ {
+ "language": "sv",
+ "value": "Yoga"
+ },
+ {
+ "language": "en",
+ "value": "Yoga"
+ }
+ ]
+ },
+ {
+ "code": "B0720",
+ "display": "Running",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Juoksu"
+ },
+ {
+ "language": "sv",
+ "value": "Löpning"
+ },
+ {
+ "language": "en",
+ "value": "Running"
+ }
+ ]
+ },
+ {
+ "code": "B0721",
+ "display": "Stretching",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Venyttely"
+ },
+ {
+ "language": "sv",
+ "value": "Töjning"
+ },
+ {
+ "language": "en",
+ "value": "Stretching"
+ }
+ ]
+ },
+ {
+ "code": "B0750",
+ "display": "Nordic walking",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sauvakävely"
+ },
+ {
+ "language": "sv",
+ "value": "Stavgång"
+ },
+ {
+ "language": "en",
+ "value": "Nordic walking"
+ }
+ ]
+ },
+ {
+ "code": "B0755",
+ "display": "Pilates",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pilates"
+ },
+ {
+ "language": "sv",
+ "value": "Pilates"
+ },
+ {
+ "language": "en",
+ "value": "Pilates"
+ }
+ ]
+ },
+ {
+ "code": "B0756",
+ "display": "Asahi",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Asahi"
+ },
+ {
+ "language": "sv",
+ "value": "Asahi"
+ },
+ {
+ "language": "en",
+ "value": "Asahi"
+ }
+ ]
+ },
+ {
+ "code": "B0852",
+ "display": "Home gymnastics",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kotivoimistelu"
+ },
+ {
+ "language": "sv",
+ "value": "Hemgymnastik"
+ },
+ {
+ "language": "en",
+ "value": "Home gymnastics"
+ }
+ ]
+ },
+ {
+ "code": "B0855",
+ "display": "Hula hooping",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hulavanteen pyöritys"
+ },
+ {
+ "language": "sv",
+ "value": "Rockring rotation"
+ },
+ {
+ "language": "en",
+ "value": "Hula hooping"
+ }
+ ]
+ },
+ {
+ "code": "B0953",
+ "display": "Solo dance",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Yksintanssi"
+ },
+ {
+ "language": "sv",
+ "value": "Solodans"
+ },
+ {
+ "language": "en",
+ "value": "Solo dance"
+ }
+ ]
+ },
+ {
+ "code": "B0954",
+ "display": "Partner dance",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Paritanssi"
+ },
+ {
+ "language": "sv",
+ "value": "Pardans"
+ },
+ {
+ "language": "en",
+ "value": "Partner dance"
+ }
+ ]
+ },
+ {
+ "code": "B1001",
+ "display": "Badminton",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sulkapallo"
+ },
+ {
+ "language": "sv",
+ "value": "Badminton"
+ },
+ {
+ "language": "en",
+ "value": "Badminton"
+ }
+ ]
+ },
+ {
+ "code": "B1003",
+ "display": "Squash",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Squash"
+ },
+ {
+ "language": "sv",
+ "value": "Squash"
+ },
+ {
+ "language": "en",
+ "value": "Squash"
+ }
+ ]
+ },
+ {
+ "code": "B1005",
+ "display": "Tennis",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Tennis"
+ },
+ {
+ "language": "sv",
+ "value": "Tennis"
+ },
+ {
+ "language": "en",
+ "value": "Tennis"
+ }
+ ]
+ },
+ {
+ "code": "B1006",
+ "display": "Padel",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Padel"
+ },
+ {
+ "language": "sv",
+ "value": "Padel"
+ },
+ {
+ "language": "en",
+ "value": "Padel"
+ }
+ ]
+ },
+ {
+ "code": "B1102",
+ "display": "Boccia",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Boccia"
+ },
+ {
+ "language": "sv",
+ "value": "Boccia"
+ },
+ {
+ "language": "en",
+ "value": "Boccia"
+ }
+ ]
+ },
+ {
+ "code": "B1109",
+ "display": "Golf",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Golf"
+ },
+ {
+ "language": "sv",
+ "value": "Golf"
+ },
+ {
+ "language": "en",
+ "value": "Golf"
+ }
+ ]
+ },
+ {
+ "code": "B1110",
+ "display": "Bowling",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Keilailu"
+ },
+ {
+ "language": "sv",
+ "value": "Bowling"
+ },
+ {
+ "language": "en",
+ "value": "Bowling"
+ }
+ ]
+ },
+ {
+ "code": "B1116",
+ "display": "Disc golf",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Frisbeegolf"
+ },
+ {
+ "language": "sv",
+ "value": "Discgolf"
+ },
+ {
+ "language": "en",
+ "value": "Disc golf"
+ }
+ ]
+ },
+ {
+ "code": "B1306",
+ "display": "Kettlebell training",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kahvakuulaharjoittelu"
+ },
+ {
+ "language": "sv",
+ "value": "Kettlebellträning"
+ },
+ {
+ "language": "en",
+ "value": "Kettlebell training"
+ }
+ ]
+ },
+ {
+ "code": "B1350",
+ "display": "Gym training",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kuntosaliharjoittelu"
+ },
+ {
+ "language": "sv",
+ "value": "Gymträning"
+ },
+ {
+ "language": "en",
+ "value": "Gym training"
+ }
+ ]
+ },
+ {
+ "code": "B1351",
+ "display": "Circuit training",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kuntopiiri"
+ },
+ {
+ "language": "sv",
+ "value": "Cirkelträning"
+ },
+ {
+ "language": "en",
+ "value": "Circuit training"
+ }
+ ]
+ },
+ {
+ "code": "B1504",
+ "display": "Orienteering",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Suunnistus"
+ },
+ {
+ "language": "sv",
+ "value": "Orientering"
+ },
+ {
+ "language": "en",
+ "value": "Orienteering"
+ }
+ ]
+ },
+ {
+ "code": "B1507",
+ "display": "Stair climbing",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Portaiden kiipeäminen"
+ },
+ {
+ "language": "sv",
+ "value": "Trappklättring"
+ },
+ {
+ "language": "en",
+ "value": "Stair climbing"
+ }
+ ]
+ },
+ {
+ "code": "B1702",
+ "display": "Mountain biking",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Maastopyöräily"
+ },
+ {
+ "language": "sv",
+ "value": "Terrängcykling"
+ },
+ {
+ "language": "en",
+ "value": "Mountain biking"
+ }
+ ]
+ },
+ {
+ "code": "B1706",
+ "display": "Cycling",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pyöräily"
+ },
+ {
+ "language": "sv",
+ "value": "Cykling"
+ },
+ {
+ "language": "en",
+ "value": "Cycling"
+ }
+ ]
+ },
+ {
+ "code": "B1711",
+ "display": "Kick scootering",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Potkulautailu"
+ },
+ {
+ "language": "sv",
+ "value": "Sparkcykling"
+ },
+ {
+ "language": "en",
+ "value": "Kick scootering"
+ }
+ ]
+ },
+ {
+ "code": "B1751",
+ "display": "Cycling indoors",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pyöräily kuntopyörällä"
+ },
+ {
+ "language": "sv",
+ "value": "Cykling med motionscykel"
+ },
+ {
+ "language": "en",
+ "value": "Cycling indoors"
+ }
+ ]
+ },
+ {
+ "code": "D2001",
+ "display": "Household work",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kotityöt"
+ },
+ {
+ "language": "sv",
+ "value": "Hushållsarbete"
+ },
+ {
+ "language": "en",
+ "value": "Household work"
+ }
+ ]
+ },
+ {
+ "code": "D2002",
+ "display": "Yard work",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pihatyöt"
+ },
+ {
+ "language": "sv",
+ "value": "Gårdsarbete"
+ },
+ {
+ "language": "en",
+ "value": "Yard work"
+ }
+ ]
+ },
+ {
+ "code": "D2003",
+ "display": "Berry or mushroom picking",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Marjastus tai sienestys"
+ },
+ {
+ "language": "sv",
+ "value": "Bär- eller svampplockning"
+ },
+ {
+ "language": "en",
+ "value": "Berry or mushroom picking"
+ }
+ ]
+ },
+ {
+ "code": "D2006",
+ "display": "Forest work",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Metsätyöt"
+ },
+ {
+ "language": "sv",
+ "value": "Skogsarbete"
+ },
+ {
+ "language": "en",
+ "value": "Forest work"
+ }
+ ]
+ },
+ {
+ "code": "C99",
+ "display": "Other activity",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Muu aktiviteetti"
+ },
+ {
+ "language": "sv",
+ "value": "Annan aktivitet"
+ },
+ {
+ "language": "en",
+ "value": "Other activity"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-exerciseintensity.json b/input/examples/fiphr-vs-exerciseintensity.json
new file mode 100644
index 0000000..6ae7cf9
--- /dev/null
+++ b/input/examples/fiphr-vs-exerciseintensity.json
@@ -0,0 +1,76 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-exerciseintensity",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-exerciseintensity",
+ "version": "1.0",
+ "name": "fiphr-vs-exerciseintensity",
+ "title": "Value Set Finnish PHR Exercise Intensity",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-24",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Exercise Intensity value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "LA20164-2",
+ "display": "Light",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kevyt"
+ },
+ {
+ "language": "sv",
+ "value": "Lätt"
+ },
+ {
+ "language": "en",
+ "value": "Light"
+ }
+ ]
+ },
+ {
+ "code": "LA20165-9",
+ "display": "Moderate",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Reipas"
+ },
+ {
+ "language": "sv",
+ "value": "Rask"
+ },
+ {
+ "language": "en",
+ "value": "Moderate"
+ }
+ ]
+ },
+ {
+ "code": "LA20166-7",
+ "display": "Vigorous",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Rasittava"
+ },
+ {
+ "language": "sv",
+ "value": "Ansträngande"
+ },
+ {
+ "language": "en",
+ "value": "Vigorous"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-exercisetracking.json b/input/examples/fiphr-vs-exercisetracking.json
new file mode 100644
index 0000000..182efcf
--- /dev/null
+++ b/input/examples/fiphr-vs-exercisetracking.json
@@ -0,0 +1,112 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-exercisetracking",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-exercisetracking",
+ "version": "1.0",
+ "name": "fiphr-vs-exercisetracking",
+ "title": "Value Set Finnish PHR Exercise Tracking",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-24",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Exercise Tracking value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "55409-7",
+ "display": "Exercise tracking panel",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikunnan seuranta -paneeli"
+ },
+ {
+ "language": "sv",
+ "value": "Träningsspårning-panel"
+ },
+ {
+ "language": "en",
+ "value": "Exercise tracking panel"
+ }
+ ]
+ },
+ {
+ "code": "73985-4",
+ "display": "Exercise activity",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikunta-aktiviteetti"
+ },
+ {
+ "language": "sv",
+ "value": "Träningsaktivitet"
+ },
+ {
+ "language": "en",
+ "value": "Exercise activity"
+ }
+ ]
+ },
+ {
+ "code": "55411-3",
+ "display": "Exercise duration",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikunnan kesto"
+ },
+ {
+ "language": "sv",
+ "value": "Träningsvaraktighet"
+ },
+ {
+ "language": "en",
+ "value": "Exercise duration"
+ }
+ ]
+ },
+ {
+ "code": "74008-4",
+ "display": "Exercise intensity",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Liikunnan intensiteetti"
+ },
+ {
+ "language": "sv",
+ "value": "Träningsintensitet"
+ },
+ {
+ "language": "en",
+ "value": "Exercise intensity"
+ }
+ ]
+ },
+ {
+ "code": "55421-2",
+ "display": "Calories burned",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Energiankulutus"
+ },
+ {
+ "language": "sv",
+ "value": "Energiförbrukning"
+ },
+ {
+ "language": "en",
+ "value": "Calories burned"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-fitnesscategory-duplicate-2.json b/input/examples/fiphr-vs-fitnesscategory-duplicate-2.json
new file mode 100644
index 0000000..1423cff
--- /dev/null
+++ b/input/examples/fiphr-vs-fitnesscategory-duplicate-2.json
@@ -0,0 +1,27 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-fitnesscategory-2",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
+ "valueInteger": 0
+ }
+ ],
+ "url": "http://phr.kanta.fi/ValueSet/fitness-category",
+ "version": "1.0",
+ "name": "fiphr-vs-fitnesscategory",
+ "title": "Value Set Finnish PHR Fitness Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T10:45:00+02:00",
+ "publisher": "W2E",
+ "description": "Fitness Category code.",
+ "immutable": false,
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-fitnesscategory-duplicate-3.json b/input/examples/fiphr-vs-fitnesscategory-duplicate-3.json
new file mode 100644
index 0000000..64fa0eb
--- /dev/null
+++ b/input/examples/fiphr-vs-fitnesscategory-duplicate-3.json
@@ -0,0 +1,27 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-fitnesscategory-3",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
+ "valueInteger": 0
+ }
+ ],
+ "url": "http://phr.kanta.fi/ValueSet/fitness-category",
+ "version": "1.0",
+ "name": "fiphr-vs-fitnesscategory",
+ "title": "Value Set Finnish PHR Fitness Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T10:45:00+02:00",
+ "publisher": "W2E",
+ "description": "Fitness Category code.",
+ "immutable": false,
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-fitnesscategory.json b/input/examples/fiphr-vs-fitnesscategory.json
new file mode 100644
index 0000000..e70b3ec
--- /dev/null
+++ b/input/examples/fiphr-vs-fitnesscategory.json
@@ -0,0 +1,27 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-fitnesscategory",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
+ "valueInteger": 0
+ }
+ ],
+ "url": "http://phr.kanta.fi/ValueSet/fitness-category",
+ "version": "1.0",
+ "name": "fiphr-vs-fitnesscategory",
+ "title": "Value Set Finnish PHR Fitness Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-03-16T10:45:00+02:00",
+ "publisher": "W2E",
+ "description": "Fitness Category code.",
+ "immutable": false,
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-fitnessresult.json b/input/examples/fiphr-vs-fitnessresult.json
new file mode 100644
index 0000000..4497f47
--- /dev/null
+++ b/input/examples/fiphr-vs-fitnessresult.json
@@ -0,0 +1,232 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-fitnessresult",
+ "extension": [
+ {
+ "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
+ "valueInteger": 0
+ }
+ ],
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-fitnessresult",
+ "version": "1.1",
+ "name": "fiphr-vs-fitnessresult",
+ "title": "Value Set Finnish PHR Fitness Results",
+ "status": "active",
+ "experimental": false,
+ "date": "2018-12-21T13:54:00+02:00",
+ "publisher": "W2E",
+ "description": "This value set indicates the allowed fitness or physical activity result types in Finnish PHR. The concept Daily Activity fitness panel (62812-3) is a grouping structure for a set of physical activity, and for convenience also vital sign, measurements and includes related links (with type=has-member) to the Observations in this set or the parallel Finnish PHR Vital Signs value set (e.g. steps taken, minimum or maximum heart rate, calories burned, moderate to vigorous physical activity minutes, sedentary activity minutes, sleep episodes and exercises).",
+ "copyright": "This content from LOINC? is copyright ? 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "55421-2",
+ "display": "Calories burned",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Energiankulutus"
+ },
+ {
+ "language": "sv",
+ "value": "Energiförbrukning"
+ },
+ {
+ "language": "en",
+ "value": "Calories burned"
+ }
+ ]
+ },
+ {
+ "code": "41979-6",
+ "display": "Calories burned in 24h",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Energiankulutus vuorokaudessa"
+ },
+ {
+ "language": "sv",
+ "value": "Energiförbrukning 24h"
+ },
+ {
+ "language": "en",
+ "value": "Calories burned in 24h"
+ }
+ ]
+ },
+ {
+ "code": "41980-4",
+ "display": "Weekly calories burned",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Energiankulutus viikossa"
+ },
+ {
+ "language": "sv",
+ "value": "Energiförbrukning i en vecka"
+ },
+ {
+ "language": "en",
+ "value": "Weekly calories burned"
+ }
+ ]
+ },
+ {
+ "code": "55430-3",
+ "display": "Distance",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kuljettu matka"
+ },
+ {
+ "language": "sv",
+ "value": "Distans"
+ },
+ {
+ "language": "en",
+ "value": "Distance"
+ }
+ ]
+ },
+ {
+ "code": "41953-1",
+ "display": "Distance reached in 24h",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kuljettu matka vuorokaudessa"
+ },
+ {
+ "language": "sv",
+ "value": "Distans per 24h"
+ },
+ {
+ "language": "en",
+ "value": "Distance reached in 24h"
+ }
+ ]
+ },
+ {
+ "code": "41955-6",
+ "display": "Distance reached in a week",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kuljettu matka viikossa"
+ },
+ {
+ "language": "sv",
+ "value": "Distans per vecka"
+ },
+ {
+ "language": "en",
+ "value": "Distance reached in a week"
+ }
+ ]
+ },
+ {
+ "code": "66334-4",
+ "display": "Steps",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Askelmäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Steg"
+ },
+ {
+ "language": "en",
+ "value": "Steps"
+ }
+ ]
+ },
+ {
+ "code": "41950-7",
+ "display": "Daily steps",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Päivittäinen askelmäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Steg per dag"
+ },
+ {
+ "language": "en",
+ "value": "Daily steps"
+ }
+ ]
+ },
+ {
+ "code": "41952-3",
+ "display": "Weekly steps",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viikoittainen askelmäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Steg per vecka"
+ },
+ {
+ "language": "en",
+ "value": "Weekly steps"
+ }
+ ]
+ },
+ {
+ "code": "82290-8",
+ "display": "Weekly moderate to vigorous physical activity in minutes",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Viikoittainen kohtuullisen ja raskaan liikunnan määrä minuutteina"
+ },
+ {
+ "language": "sv",
+ "value": "Måttlig eller hård aktivitet per vecka, minuter"
+ },
+ {
+ "language": "en",
+ "value": "Weekly moderate to vigorous physical activity in minutes"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-moderatetovigorouspa",
+ "concept": [
+ {
+ "code": "82290-8-24h",
+ "display": "Daily moderate to vigorous physical activity in minutes",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Päivittäinen kohtuullisen ja raskaan liikunnan määrä minuutteina"
+ },
+ {
+ "language": "sv",
+ "value": "Måttlig eller hård aktivitet per dag, minuter"
+ },
+ {
+ "language": "en",
+ "value": "Daily moderate to vigorous physical activity in minutes"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-insulincode.json b/input/examples/fiphr-vs-insulincode.json
new file mode 100644
index 0000000..3cf46ff
--- /dev/null
+++ b/input/examples/fiphr-vs-insulincode.json
@@ -0,0 +1,23 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-insulincode",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-insulincode",
+ "version": "1.0",
+ "name": "fiphr-vs-insulincode",
+ "title": "Value Set Finnish PHR Insulin Code ",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-17T10:00:00+00:00",
+ "publisher": "Kela",
+ "description": "A Finnish PHR value set for the codes to be used with insulin dosing. Includes VNR codes (reference to the national VNR code system) or specific codes to indicate what kind of insulin has been administered.",
+ "compose": {
+ "include": [
+ {
+ "system": "urn:oid:1.2.246.537.6.55"
+ },
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-insulincode"
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-macronutrients.json b/input/examples/fiphr-vs-macronutrients.json
new file mode 100644
index 0000000..3f00d56
--- /dev/null
+++ b/input/examples/fiphr-vs-macronutrients.json
@@ -0,0 +1,124 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-macronutrients",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-macronutrients",
+ "version": "1.0",
+ "name": "fiphr-vs-macronutrients",
+ "title": "Value Set Finnish PHR Macronutrients",
+ "status": "active",
+ "date": "2019-10-14T11:00:00+02:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR Macronutrition Value Set that defines codes for Macronutrients.",
+ "copyright": "This content from LOINC® is copyright © 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use.",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "9059-7",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Arvioitu hiilihydraattimäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppskattat kolhydratintag"
+ },
+ {
+ "language": "en",
+ "value": "Carbohydrate intake Estimated"
+ }
+ ]
+ },
+ {
+ "code": "9060-5",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Mitattu hiilihydraattimäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppmätt kolhydratintag"
+ },
+ {
+ "language": "en",
+ "value": "Carbohydrate intake Measured"
+ }
+ ]
+ },
+ {
+ "code": "9066-2",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Arvioitu rasvan määrä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppskattat fettintag"
+ },
+ {
+ "language": "en",
+ "value": "Fat intake Estimated"
+ }
+ ]
+ },
+ {
+ "code": "9067-0",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Mitattu rasvan määrä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppmätt fettintag"
+ },
+ {
+ "language": "en",
+ "value": "Fat intake Measured"
+ }
+ ]
+ },
+ {
+ "code": "9079-5",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Arvioitu proteiinin määrä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppskattat proteinintag"
+ },
+ {
+ "language": "en",
+ "value": "Protein intake Estimated"
+ }
+ ]
+ },
+ {
+ "code": "9080-3",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Mitattu proteiinin määrä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppmätt proteinintag"
+ },
+ {
+ "language": "en",
+ "value": "Protein intake Measured"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-metbystandardrmr.json b/input/examples/fiphr-vs-metbystandardrmr.json
new file mode 100644
index 0000000..a5de83c
--- /dev/null
+++ b/input/examples/fiphr-vs-metbystandardrmr.json
@@ -0,0 +1,184 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-metbystandardrmr",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-metbystandardrmr",
+ "version": "1.0",
+ "name": "fiphr-vs-metbystandardrmr",
+ "title": "Value Set Finnish PHR MET by Standard RMR",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-24",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR MET by Standard RMR value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "82260-1",
+ "display": "Metabolic equivalent of task by standard resting metabolic rate panel",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Metabolinen ekvivalentti standardissa lepoaineenvaihdunnassa -paneeli"
+ },
+ {
+ "language": "sv",
+ "value": "Metabolisk ekvivalent genom standard viloämnesomsättning -panel"
+ },
+ {
+ "language": "en",
+ "value": "Metabolic equivalent of task by standard resting metabolic rate panel"
+ }
+ ]
+ },
+ {
+ "code": "82284-1",
+ "display": "Standard resting metabolic rate",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Standardi lepoaineenvaihdunta"
+ },
+ {
+ "language": "sv",
+ "value": "Standard viloämnesomsättning"
+ },
+ {
+ "language": "en",
+ "value": "Standard resting metabolic rate"
+ }
+ ]
+ },
+ {
+ "code": "82261-9",
+ "display": "Measured metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Mitattu metabolinen ekvivalentti"
+ },
+ {
+ "language": "sv",
+ "value": "Uppmätt metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Measured metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82262-7",
+ "display": "Estimated metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Arvioitu metabolinen ekvivalentti"
+ },
+ {
+ "language": "sv",
+ "value": "Uppskattad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Estimated metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82280-9",
+ "display": "Source for estimated metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lähde arvioidulle metaboliselle ekvivalentille"
+ },
+ {
+ "language": "sv",
+ "value": "Källa för uppskattad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Source for estimated metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82263-5",
+ "display": "Reported metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Raportoitu metabolinen ekvivalentti"
+ },
+ {
+ "language": "sv",
+ "value": "Rapporterad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Reported metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82281-7",
+ "display": "Source for reported metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lähde raportoidulle metaboliselle ekvivalentille"
+ },
+ {
+ "language": "sv",
+ "value": "Källa för rapporterad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Source for reported metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82271-8",
+ "display": "Adjusted metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Korjattu metabolinen ekvivalentti"
+ },
+ {
+ "language": "sv",
+ "value": "Justerad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Adjusted metabolic equivalent of task"
+ }
+ ]
+ },
+ {
+ "code": "82283-3",
+ "display": "Source for adjusted metabolic equivalent of task",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lähde korjatulle metaboliselle ekvivalentille"
+ },
+ {
+ "language": "sv",
+ "value": "Källa för justerad metabolisk ekvivalent"
+ },
+ {
+ "language": "en",
+ "value": "Source for adjusted metabolic equivalent of task"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-nutrition.json b/input/examples/fiphr-vs-nutrition.json
new file mode 100644
index 0000000..39b2391
--- /dev/null
+++ b/input/examples/fiphr-vs-nutrition.json
@@ -0,0 +1,56 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-nutrition",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-nutrition",
+ "version": "1.0",
+ "name": "fiphr-vs-nutrition",
+ "title": "Value Set Finnish PHR Nutrition",
+ "status": "active",
+ "date": "2019-10-23T09:00:00+02:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR Nutrition Value Set that defines codes for Nutrition.",
+ "copyright": "This content from LOINC? is copyright ? 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "8999-5",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Arvio nautitusta nestemäärästä"
+ },
+ {
+ "language": "sv",
+ "value": "Uppskattat oralt vätskeintag"
+ },
+ {
+ "language": "en",
+ "value": "Fluid intake oral Estimated"
+ }
+ ]
+ },
+ {
+ "code": "9052-2",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kokonaisenergiamäärä"
+ },
+ {
+ "language": "sv",
+ "value": "Totalt energiintag"
+ },
+ {
+ "language": "en",
+ "value": "Calorie intake total"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-observationcategory.json b/input/examples/fiphr-vs-observationcategory.json
new file mode 100644
index 0000000..f7b1d7d
--- /dev/null
+++ b/input/examples/fiphr-vs-observationcategory.json
@@ -0,0 +1,56 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-observationcategory",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-observationcategory",
+ "version": "1.0",
+ "name": "fiphr-vs-observationcategory",
+ "title": "Value Set Finnish PHR Observation Category",
+ "status": "active",
+ "experimental": false,
+ "date": "2019-10-14T11:00:00+02:00",
+ "publisher": "Kela",
+ "description": "Finnish PHR Observation Category Value Set that defines codes for Observation.category when there is no suitable code in the FHIR standard observation category value set.",
+ "compose": {
+ "include": [
+ {
+ "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-observationcategory",
+ "concept": [
+ {
+ "code": "nutrition",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Ravitsemus"
+ },
+ {
+ "language": "sv",
+ "value": "Näringstillstånd"
+ },
+ {
+ "language": "en",
+ "value": "Nutrition"
+ }
+ ]
+ },
+ {
+ "code": "urinary-monitoring",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Virtsan seuranta"
+ },
+ {
+ "language": "sv",
+ "value": "Uppföljning av urinen"
+ },
+ {
+ "language": "en",
+ "value": "Urinary monitoring"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-sourceforadjustedmet.json b/input/examples/fiphr-vs-sourceforadjustedmet.json
new file mode 100644
index 0000000..a378a75
--- /dev/null
+++ b/input/examples/fiphr-vs-sourceforadjustedmet.json
@@ -0,0 +1,112 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-sourceforadjustedmet",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforadjustedmet",
+ "version": "1.0",
+ "name": "fiphr-vs-sourceforadjustedmet",
+ "title": "Value Set Finnish PHR Source for Adjusted MET",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-24",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Source for Adjusted MET value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "LA26234-7",
+ "display": "Wilms 2014 male",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Wilms 2014 miehet"
+ },
+ {
+ "language": "sv",
+ "value": "Wilms 2014 manlig"
+ },
+ {
+ "language": "en",
+ "value": "Wilms 2014 male"
+ }
+ ]
+ },
+ {
+ "code": "LA26235-4",
+ "display": "Wilms 2014 female",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Wilms 2014 naiset"
+ },
+ {
+ "language": "sv",
+ "value": "Wilms 2014 kvinnlig"
+ },
+ {
+ "language": "en",
+ "value": "Wilms 2014 female"
+ }
+ ]
+ },
+ {
+ "code": "LA26236-2",
+ "display": "Harris-Benedict male",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Harris-Benedict miehet"
+ },
+ {
+ "language": "sv",
+ "value": "Harris-Benedict manlig"
+ },
+ {
+ "language": "en",
+ "value": "Harris-Benedict male"
+ }
+ ]
+ },
+ {
+ "code": "LA26237-0",
+ "display": "Harris-Benedict female",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Harris-Benedict naiset"
+ },
+ {
+ "language": "sv",
+ "value": "Harris-Benedict kvinnlig"
+ },
+ {
+ "language": "en",
+ "value": "Harris-Benedict female"
+ }
+ ]
+ },
+ {
+ "code": "LA46-8",
+ "display": "Other, specify",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Muu, tarkenna"
+ },
+ {
+ "language": "sv",
+ "value": "Annat, specificera"
+ },
+ {
+ "language": "en",
+ "value": "Other, specity"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-sourceforestimatedmet.json b/input/examples/fiphr-vs-sourceforestimatedmet.json
new file mode 100644
index 0000000..5190bde
--- /dev/null
+++ b/input/examples/fiphr-vs-sourceforestimatedmet.json
@@ -0,0 +1,94 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-sourceforestimatedmet",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforestimatedmet",
+ "version": "1.0",
+ "name": "fiphr-vs-sourceforestimatedmet",
+ "title": "Value Set Finnish PHR Source for Estimated MET",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-04",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Source for Estimated MET value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "LA26238-8",
+ "display": "Compendium of Physical Activities",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Compendium of Physical Activities"
+ },
+ {
+ "language": "sv",
+ "value": "Compendium of Physical Activities"
+ },
+ {
+ "language": "en",
+ "value": "Compendium of Physical Activities"
+ }
+ ]
+ },
+ {
+ "code": "LA26239-6",
+ "display": "Modified Bruce protocol",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Modifioitu Bruce-protokolla"
+ },
+ {
+ "language": "sv",
+ "value": "Modifierat Bruce-protokoll"
+ },
+ {
+ "language": "en",
+ "value": "Modified Bruce protocol"
+ }
+ ]
+ },
+ {
+ "code": "LA26240-4",
+ "display": "Balke protocol",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Balke-protokolla"
+ },
+ {
+ "language": "sv",
+ "value": "Balke-protokoll"
+ },
+ {
+ "language": "en",
+ "value": "Balke protocol"
+ }
+ ]
+ },
+ {
+ "code": "LA46-8",
+ "display": "Other, specify",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Muu, tarkenna"
+ },
+ {
+ "language": "sv",
+ "value": "Annat, specificera"
+ },
+ {
+ "language": "en",
+ "value": "Other, specity"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-sourceforreportedmet.json b/input/examples/fiphr-vs-sourceforreportedmet.json
new file mode 100644
index 0000000..4e59cb9
--- /dev/null
+++ b/input/examples/fiphr-vs-sourceforreportedmet.json
@@ -0,0 +1,76 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-sourceforreportedmet",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-sourceforreportedmet",
+ "version": "1.0",
+ "name": "fiphr-vs-sourceforreportedmet",
+ "title": "Value Set Finnish PHR Source for Reported MET",
+ "status": "active",
+ "experimental": false,
+ "date": "2020-02-24",
+ "publisher": "DigitalWells",
+ "description": "Finnish PHR Source for Reported MET value set",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "LA26242-0",
+ "display": "Activity tracker",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Aktiivisuusmittari"
+ },
+ {
+ "language": "sv",
+ "value": "Aktivitetsmätare"
+ },
+ {
+ "language": "en",
+ "value": "Activity tracker"
+ }
+ ]
+ },
+ {
+ "code": "LA26243-8",
+ "display": "Physical activity questionnaire",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Fyysisen aktiivisuuden kyselylomake"
+ },
+ {
+ "language": "sv",
+ "value": "Fysisk aktivitet frågeformulär"
+ },
+ {
+ "language": "en",
+ "value": "Physical activity questionnaire"
+ }
+ ]
+ },
+ {
+ "code": "LA26251-1",
+ "display": "Activity log or diary",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Aktiivisuusloki tai -päiväkirja"
+ },
+ {
+ "language": "sv",
+ "value": "Aktivitetslogg eller -dagbok"
+ },
+ {
+ "language": "en",
+ "value": "Activity log or diary"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/fiphr-vs-vitalsigns.json b/input/examples/fiphr-vs-vitalsigns.json
new file mode 100644
index 0000000..d1f2457
--- /dev/null
+++ b/input/examples/fiphr-vs-vitalsigns.json
@@ -0,0 +1,302 @@
+{
+ "resourceType": "ValueSet",
+ "id": "fiphr-vs-vitalsigns",
+ "url": "http://phr.kanta.fi/ValueSet/fiphr-vs-vitalsigns",
+ "version": "1.2",
+ "name": "fiphr-vs-vitalsigns",
+ "title": "Value Set Finnish PHR Vital Signs",
+ "status": "active",
+ "date": "2020-04-03T09:00:00+02:00",
+ "publisher": "Kela",
+ "description": "This value set indicates the allowed vital sign result types in Finnish PRH. The concept Vitals signs panel (85353-1) is a grouping structure for a set of vital signs and includes related links (with type=has-member) to the Observations in this set (e.g. respiratory rate, heart rate, BP). The Blood pressure panel (85354-9) is used to group the component observations Systolic blood pressure (8480-6) and Diastolic blood pressure (8462-4).",
+ "copyright": "This content from LOINC? is copyright ? 1995 Regenstrief Institute, Inc. and the LOINC Committee, and available at no cost under the license at http://loinc.org/terms-of-use",
+ "compose": {
+ "include": [
+ {
+ "system": "http://loinc.org",
+ "concept": [
+ {
+ "code": "9279-1",
+ "display": "Respiratory rate",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Hengitystiheys"
+ },
+ {
+ "language": "sv",
+ "value": "Andningsfrekvens"
+ }
+ ]
+ },
+ {
+ "code": "8867-4",
+ "display": "Heart rate",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Syke"
+ },
+ {
+ "language": "sv",
+ "value": "Puls"
+ }
+ ]
+ },
+ {
+ "code": "41924-2",
+ "display": "Heart rate 24 hour mean",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sydämen syke 24 h keskiarvo"
+ },
+ {
+ "language": "sv",
+ "value": "Hjärtats puls 24 h genomsnittspuls"
+ }
+ ]
+ },
+ {
+ "code": "8883-1",
+ "display": "Heart rate 24 hour minimum",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sydämen syke 24 h minimiarvo"
+ },
+ {
+ "language": "sv",
+ "value": "Hjärtats puls 24 h minimivärde"
+ }
+ ]
+ },
+ {
+ "code": "8873-2",
+ "display": "Heart rate 24 hour maximum",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Sydämen syke 24 h maksimiarvo"
+ },
+ {
+ "language": "sv",
+ "value": "Hjärtats puls 24 h maximivärde"
+ }
+ ]
+ },
+ {
+ "code": "8310-5",
+ "display": "Body temperature",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kehon lämpö"
+ },
+ {
+ "language": "sv",
+ "value": "Kroppstemperatur"
+ }
+ ]
+ },
+ {
+ "code": "8331-1",
+ "display": "Oral temperature",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lämpö, suu"
+ },
+ {
+ "language": "sv",
+ "value": "Temperatur, munnen"
+ }
+ ]
+ },
+ {
+ "code": "8332-9",
+ "display": "Rectal temperature",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lämpö, peräsuoli"
+ },
+ {
+ "language": "sv",
+ "value": "Temperatur, ändtarmen"
+ }
+ ]
+ },
+ {
+ "code": "76011-6",
+ "display": "Ear temperature",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lämpö, korva"
+ },
+ {
+ "language": "sv",
+ "value": "Termperatur, örat"
+ }
+ ]
+ },
+ {
+ "code": "8328-7",
+ "display": "Axillary temperature",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Lämpö, kainalo"
+ },
+ {
+ "language": "sv",
+ "value": "Temperatur, armhålan"
+ }
+ ]
+ },
+ {
+ "code": "8302-2",
+ "display": "Body height",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Pituus"
+ },
+ {
+ "language": "sv",
+ "value": "Längd"
+ }
+ ]
+ },
+ {
+ "code": "29463-7",
+ "display": "Body weight",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Paino"
+ },
+ {
+ "language": "sv",
+ "value": "Vikt"
+ }
+ ]
+ },
+ {
+ "code": "85354-9",
+ "display": "Blood pressure panel with all children optional",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Verenpaine"
+ },
+ {
+ "language": "sv",
+ "value": "Blodtryck"
+ }
+ ]
+ },
+ {
+ "code": "8480-6",
+ "display": "Systolic blood pressure",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Systolinen verenpaine"
+ },
+ {
+ "language": "sv",
+ "value": "Systoliskt blodtryck"
+ }
+ ]
+ },
+ {
+ "code": "8462-4",
+ "display": "Diastolic blood pressure",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Diastolinen verenpaine"
+ },
+ {
+ "language": "sv",
+ "value": "Diastoliskt blodtryck"
+ }
+ ]
+ },
+ {
+ "code": "15074-8",
+ "display": "Glucose [Moles/volume] in Blood",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Verensokeri"
+ },
+ {
+ "language": "sv",
+ "value": "Blodsocker"
+ }
+ ]
+ },
+ {
+ "code": "14743-9",
+ "display": "Glucose [Moles/volume] in Capillary blood by Glucometer",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Verensokeri verensokerimittarilla"
+ },
+ {
+ "language": "sv",
+ "value": "Blodsocker med blodsockermätare"
+ }
+ ]
+ },
+ {
+ "code": "14745-4",
+ "display": "Glucose [Moles/volume] in Body fluid",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Kudossokeri"
+ },
+ {
+ "language": "sv",
+ "value": "Vävnadssocker"
+ }
+ ]
+ },
+ {
+ "code": "19935-6",
+ "display": "Maximum expiratory gas flow Respiratory system airway by Peak flow meter",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "PEF-mittarilla mitattu maksimaalinen uloshengitysvirtauksen arvo"
+ },
+ {
+ "language": "sv",
+ "value": "Maximalt utandningsflöde med PEF-mätare"
+ }
+ ]
+ },
+ {
+ "code": "8280-0",
+ "display": "Waist Circumference at umbilicus by Tape measure",
+ "designation": [
+ {
+ "language": "fi",
+ "value": "Vyötärönympärys"
+ },
+ {
+ "language": "sv",
+ "value": "Midjemått"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file
diff --git a/input/examples/observation-example-StepsTaken-min.json b/input/examples/observation-example-StepsTaken-min.json
new file mode 100644
index 0000000..c0e2abd
--- /dev/null
+++ b/input/examples/observation-example-StepsTaken-min.json
@@ -0,0 +1,59 @@
+{
+ "resourceType": "Observation",
+ "id": "4137d1c4-1e87-4e86-8c15-344ad086e3f8",
+ "meta": {
+ "versionId": "1",
+ "lastUpdated": "2019-05-27T12:05:44.669+03:00",
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-stepstaken"
+ ]
+ },
+ "language": "fi",
+ "text": {
+ "status": "generated",
+ "div": "Code: Daily steps (41950-7)
Time: 20.11.2017 11:46
Result: 165
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:0b0a55d2-799a-45f5-a161-6a4a5faad1f8"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://phr.kanta.fi/fiphr-cs-fitnesscategory",
+ "code": "fitness",
+ "display": "Fitness"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "66334-4",
+ "display": "Steps"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2012-09-17",
+ "issued": "2012-02-02T10:00:00.936+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "valueQuantity": {
+ "value": 165,
+ "unit": "1",
+ "system": "http://unitsofmeasure.org",
+ "code": "1"
+ }
+}
\ No newline at end of file
diff --git a/input/examples/observation-example-bloodglucose-astext.json b/input/examples/observation-example-bloodglucose-astext.json
new file mode 100644
index 0000000..5c7470c
--- /dev/null
+++ b/input/examples/observation-example-bloodglucose-astext.json
@@ -0,0 +1,64 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodglucose-as-text",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Glucose [Moles/volume] in Capillary blood by Glucometer (14743-9)
Time: 20.11.2017 11:46
Result: HIGH
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:206fc986-517a-4054-bc0a-03eb906c9571"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "14743-9",
+ "display": "Glucose [Moles/volume] in Capillary blood by Glucometer"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "dataAbsentReason": {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "code": "astext",
+ "display": "As Text"
+ }
+ ]
+ },
+ "note": [
+ {
+ "text": "This is an example, where measurement device has failed to measure numerical value for the blood glucose but the device still can store some result in the narrative element. In this case code 'astext' must be used in dataAbsentReason.coding.code"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/examples/observation-example-bloodglucose-dataabsentreason.json b/input/examples/observation-example-bloodglucose-dataabsentreason.json
new file mode 100644
index 0000000..940257a
--- /dev/null
+++ b/input/examples/observation-example-bloodglucose-dataabsentreason.json
@@ -0,0 +1,64 @@
+{
+ "resourceType": "Observation",
+ "id": "bloodglucose-data-absent",
+ "meta": {
+ "profile": [
+ "http://phr.kanta.fi/StructureDefinition/fiphr-sd-bloodglucose"
+ ]
+ },
+ "language": "en",
+ "text": {
+ "status": "generated",
+ "div": "Code: Glucose [Moles/volume] in Capillary blood by Glucometer (14743-9)
Time: 20.11.2017 11:46
result: error
"
+ },
+ "identifier": [
+ {
+ "system": "urn:ietf:rfc:3986",
+ "value": "urn:uuid:206fc986-517a-4054-bc0a-03eb906c9571"
+ }
+ ],
+ "status": "final",
+ "category": [
+ {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/observation-category",
+ "code": "vital-signs"
+ }
+ ]
+ }
+ ],
+ "code": {
+ "coding": [
+ {
+ "system": "http://loinc.org",
+ "code": "14743-9",
+ "display": "Glucose [Moles/volume] in Capillary blood by Glucometer"
+ }
+ ]
+ },
+ "subject": {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ },
+ "effectiveDateTime": "2017-11-20T11:46:00+02:00",
+ "issued": "2017-11-20T11:46:00+02:00",
+ "performer": [
+ {
+ "reference": "Patient/daf8ca40-b46c-4c6b-99d5-d3a1b77074ad"
+ }
+ ],
+ "dataAbsentReason": {
+ "coding": [
+ {
+ "system": "http://terminology.hl7.org/CodeSystem/data-absent-reason",
+ "code": "error",
+ "display": "Error"
+ }
+ ]
+ },
+ "note": [
+ {
+ "text": "This is an example, where measurement device has failed to measure blood glucose reading. In this case 'error' must be used in dataAbsentReason.coding.code"
+ }
+ ]
+}
\ No newline at end of file
diff --git a/input/fsh/appointment.fsh b/input/fsh/appointment.fsh
index 60ddbf3..0f46631 100644
--- a/input/fsh/appointment.fsh
+++ b/input/fsh/appointment.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreAppointment
+Profile: FiBaseAppointment
Parent: Appointment
-Id: finnish-core-appointment
-Title: "Finnish Core Appointment"
-Description: "This is a profile for Finnish appointment."
\ No newline at end of file
+Id: fi-base-appointment
+Title: "FI Base Appointment"
+Description: "This is the Finnish base profile for the Appointment resource."
diff --git a/input/fsh/condition.fsh b/input/fsh/condition.fsh
index fb55477..dd1b3a8 100644
--- a/input/fsh/condition.fsh
+++ b/input/fsh/condition.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreCondition
-Parent: Condition
-Id: finnish-core-condition
-Title: "Finnish Core Condition"
-Description: "This is a base profile for Finnish condition resource."
\ No newline at end of file
+Profile: FiBaseCondition
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-condition
+Id: fi-base-condition
+Title: "FI Base Condition"
+Description: "This is the Finnish base profile for the Condition resource."
diff --git a/input/fsh/consent.fsh b/input/fsh/consent.fsh
index 6de93ed..9d371ff 100644
--- a/input/fsh/consent.fsh
+++ b/input/fsh/consent.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreConsent
+Profile: FiBaseConsent
Parent: Consent
-Id: Finnish-core-consent
-Title: "Finnish Core Consent Profile"
-Description: "This is a profile for finnish consent information"
\ No newline at end of file
+Id: fi-base-consent
+Title: "FI Base Consent"
+Description: "This is the Finnish base profile for the Consent resource."
diff --git a/input/fsh/device.fsh b/input/fsh/device.fsh
index 05b1397..8f8f45f 100644
--- a/input/fsh/device.fsh
+++ b/input/fsh/device.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreDevice
+Profile: FiBaseDevice
Parent: Device
-Id: finnish-core-device
-Title: "Finnish Core Device"
-Description: "This is base profile for Finnish device resource."
\ No newline at end of file
+Id: fi-base-device
+Title: "FI Base Device"
+Description: "This is the Finnish base profile for the Device resource."
diff --git a/input/fsh/diagnosticReport.fsh b/input/fsh/diagnosticReport.fsh
index 4a4df90..3bd9b56 100644
--- a/input/fsh/diagnosticReport.fsh
+++ b/input/fsh/diagnosticReport.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreDiagnosticReport
+Profile: FiBaseDiagnosticReport
Parent: DiagnosticReport
-Id: finnish-core-diagnostic-report
-Title: "Finnish Core Diagnostic Report"
-Description: "This is a base profile for Finnish DiagnosticReport resource."
\ No newline at end of file
+Id: fi-base-diagnostic-report
+Title: "FI Base DiagnosticReport"
+Description: "This is the Finnish base profile for the DiagnosticReport resource."
diff --git a/input/fsh/encounter.fsh b/input/fsh/encounter.fsh
index 3991640..433a124 100644
--- a/input/fsh/encounter.fsh
+++ b/input/fsh/encounter.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreEncounter
+Profile: FiBaseEncounter
Parent: Encounter
-Id: finnish-core-encounter
-Title: "Finnish Core Encounter"
-Description: "This is a profile for Finnish encounter."
\ No newline at end of file
+Id: fi-base-encounter
+Title: "FI Base Encounter"
+Description: "This is the Finnish base profile for the Encounter resource."
diff --git a/input/fsh/examples.fsh b/input/fsh/examples.fsh
deleted file mode 100644
index c7d57b4..0000000
--- a/input/fsh/examples.fsh
+++ /dev/null
@@ -1,20 +0,0 @@
-Instance: PatientExample
-InstanceOf: FinnishCorePatient
-Description: "An example of a finnish core patient."
-* id = "01234"
-* identifier.value = "010190-999Y"
-* identifier.system = #urn:oid:1.2.246.21
-* identifier.use = #official
-* gender = #male
-* birthDate = "1990-01-01"
-* name
- * given[0] = "Testi"
- * family = "Henkilö"
-* telecom[0].system = #phone
-* telecom[0].value = "+358401234657"
-* address[0].use = #home
-* address[0].line = "testikatu 1"
-* communication.language = #fi
-* extension[MunicipalityCode].valueCoding.code = #020
-* extension[MunicipalityCode].valueCoding.display = "Akaa"
-* extension[MunicipalityCode].valueCoding.system = #urn:oid:1.2.246.537.6.21.2003
\ No newline at end of file
diff --git a/input/fsh/examples/patientOfMunicipality.fsh b/input/fsh/examples/patientOfMunicipality.fsh
new file mode 100644
index 0000000..57040d6
--- /dev/null
+++ b/input/fsh/examples/patientOfMunicipality.fsh
@@ -0,0 +1,25 @@
+Instance: PatientOfMunicipality
+InstanceOf: FiBasePatient
+Title: "Patient - with the MunicipalityCode extension."
+Description: "An example of a FI Base patient with the MunicipalityCode extension."
+Usage: #example
+* id = "patient-of-municipality"
+* identifier.system = #urn:oid:1.2.246.21
+* identifier.use = #official
+* identifier.value = "010190-999Y"
+* gender = #male
+* birthDate = "1990-01-01"
+* name
+ * given = "Testi"
+ * family = "Henkilö"
+* telecom.system = #phone
+* telecom.value = "+358401234657"
+* address.use = #home
+* address.line[0] = "Testikatu 1"
+* address.line[+] = "37910 Akaa"
+* communication.language.coding.system = #urn:oid:2.16.840.1.113883.4.642.3.20
+* communication.language.coding.code = #fi
+* active = true
+* extension[MunicipalityCode].valueCoding.system = #urn:oid:1.2.246.537.6.21.2003
+* extension[MunicipalityCode].valueCoding.code = #020
+* extension[MunicipalityCode].valueCoding.display = "Akaa"
diff --git a/input/fsh/healthcareService.fsh b/input/fsh/healthcareService.fsh
index 46ec951..f7632cd 100644
--- a/input/fsh/healthcareService.fsh
+++ b/input/fsh/healthcareService.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreHealthcareService
+Profile: FiBaseHealthcareService
Parent: HealthcareService
-Id: finnish-core-healthcare-service
-Title: "Finnish Core Healthcare Service"
-Description: "This is a profile for Finnish healthcare service."
\ No newline at end of file
+Id: fi-base-healthcare-service
+Title: "FI Base HealthcareService"
+Description: "This is the Finnish base profile for the HealthcareService resource."
diff --git a/input/fsh/location.fsh b/input/fsh/location.fsh
index fabbe17..b556290 100644
--- a/input/fsh/location.fsh
+++ b/input/fsh/location.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreLocation
+Profile: FiBaseLocation
Parent: Location
-Id: finnish-core-location
-Title: "Finnish Core Location"
-Description: "This is a base profile for Finnish location resource."
\ No newline at end of file
+Id: fi-base-location
+Title: "FI Base Location"
+Description: "This is the Finnish base profile for the Location resource."
diff --git a/input/fsh/medication.fsh b/input/fsh/medication.fsh
new file mode 100644
index 0000000..c75ef24
--- /dev/null
+++ b/input/fsh/medication.fsh
@@ -0,0 +1,4 @@
+Profile: FiBaseMedication
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-medication
+Id: fi-base-medication
+Title: "FI Base Medication"
diff --git a/input/fsh/medicationAdministration.fsh b/input/fsh/medicationAdministration.fsh
new file mode 100644
index 0000000..6409af3
--- /dev/null
+++ b/input/fsh/medicationAdministration.fsh
@@ -0,0 +1,5 @@
+Profile: FiBaseMedicationAdministration
+Parent: MedicationAdministration
+Id: fi-base-medication-administration
+Title: "FI Base MedicationAdministration"
+Description: "This is the Finnish base profile for the MedicationAdministration resource."
diff --git a/input/fsh/medicationStatement.fsh b/input/fsh/medicationStatement.fsh
new file mode 100644
index 0000000..7c236f4
--- /dev/null
+++ b/input/fsh/medicationStatement.fsh
@@ -0,0 +1,5 @@
+Profile: FiBaseMedicationStatement
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-medicationstatement
+Id: fi-base-medication-statement
+Title: "FI Base MedicationStatement"
+Description: "This is the Finnish base profile for the MedicationStatement resource."
diff --git a/input/fsh/observation.fsh b/input/fsh/observation.fsh
index 1f73116..5f6a5d3 100644
--- a/input/fsh/observation.fsh
+++ b/input/fsh/observation.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreObservation
-Parent: Observation
-Id: finnish-core-observation
-Title: "Finnish Core Observation"
-Description: "This is a base profile for Finnish observation resource."
\ No newline at end of file
+Profile: FiBaseObservation
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-observation
+Id: fi-base-observation
+Title: "FI Base Observation"
+Description: "This is the Finnish base profile for the Observation resource."
diff --git a/input/fsh/organization.fsh b/input/fsh/organization.fsh
index 7181a12..d83632f 100644
--- a/input/fsh/organization.fsh
+++ b/input/fsh/organization.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreOrganization
+Profile: FiBaseOrganization
Parent: Organization
-Id: finnish-core-organization
-Title: "Finnish Core Organization"
-Description: "This is a profile for Finnish organization."
\ No newline at end of file
+Id: fi-base-organization
+Title: "FI Base Organization"
+Description: "This is the Finnish base profile for the Organization resource."
diff --git a/input/fsh/patient.fsh b/input/fsh/patient.fsh
index 0bfbaa3..4a5a539 100644
--- a/input/fsh/patient.fsh
+++ b/input/fsh/patient.fsh
@@ -1,6 +1,8 @@
-Profile: FinnishCorePatient
-Parent: Patient
-Description: "A finnish core profile of the Patient resource."
+Profile: FiBasePatient
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-patient
+Id: fi-base-patient
+Title: "FI Base Patient"
+Description: "This is the Finnish base profile for the Patient resource."
* id 1..1
* meta.security ^slicing.discriminator.type = #value
@@ -30,4 +32,4 @@ Title: "MunicipalityCode"
Description: "Extension for home municipality"
* value[x] only Coding
* valueCoding 1..1
- * system = #urn:oid:1.2.246.537.6.21.2003
\ No newline at end of file
+ * system = #urn:oid:1.2.246.537.6.21.2003
diff --git a/input/fsh/practitioner.fsh b/input/fsh/practitioner.fsh
index fd6aa5e..d4f18c0 100644
--- a/input/fsh/practitioner.fsh
+++ b/input/fsh/practitioner.fsh
@@ -1,8 +1,8 @@
-Profile: FinnishCorePractitioner
-Parent: Practitioner
-Id: Finnish-core-practitioner
-Title: "Finnish Core Practitioner Profile"
-Description: "This is a profile for finnish practitioner"
+Profile: FiBasePractitioner
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-practitioner
+Id: fi-base-practitioner
+Title: "FI Base Practitioner"
+Description: "This is the Finnish base profile for the Practitioner resource."
* id 1..1
* identifier ^slicing.discriminator.type = #value
@@ -17,4 +17,4 @@ Description: "This is a profile for finnish practitioner"
* identifier[Terhikki].system = #urn:oid:1.2.246.537.26
* identifier contains SV 0..1
-* identifier[SV].system = #urn:oid:1.2.246.537.25
\ No newline at end of file
+* identifier[SV].system = #urn:oid:1.2.246.537.25
diff --git a/input/fsh/practitionerRole.fsh b/input/fsh/practitionerRole.fsh
index e9ac9d5..d72938e 100644
--- a/input/fsh/practitionerRole.fsh
+++ b/input/fsh/practitionerRole.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCorePractitionerRole
-Parent: PractitionerRole
-Id: finnish-core-practitioner-role
-Title: "Finnish Core Practitioner Role Profile"
-Description: "This is core profile for Finnish practitioner role."
\ No newline at end of file
+Profile: FiBasePractitionerRole
+Parent: http://hl7.org/fhir/uv/ipa/StructureDefinition/ipa-practitionerrole
+Id: fi-base-practitioner-role
+Title: "FI Base PractitionerRole"
+Description: "This is the Finnish base profile for the PractitionerRole resource."
diff --git a/input/fsh/schedule.fsh b/input/fsh/schedule.fsh
index 81c6c0c..b411b61 100644
--- a/input/fsh/schedule.fsh
+++ b/input/fsh/schedule.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreSchedule
+Profile: FiBaseSchedule
Parent: Schedule
-Id: finnish-core-schedule
-Title: "Finnish Core Schedule"
-Description: "This profile is for Finnish core schedule."
\ No newline at end of file
+Id: fi-base-schedule
+Title: "FI Base Schedule"
+Description: "This is the Finnish base profile for the Schedule resource."
diff --git a/input/fsh/slot.fsh b/input/fsh/slot.fsh
index 3dfaf41..aaa9749 100644
--- a/input/fsh/slot.fsh
+++ b/input/fsh/slot.fsh
@@ -1,5 +1,5 @@
-Profile: FinnishCoreSlot
+Profile: FiBaseSlot
Parent: Slot
-Id: finnish-core-slot
-Title: "Finnish Core Slot"
-Description: "This is a profile for Finnish schedule slot."
\ No newline at end of file
+Id: fi-base-slot
+Title: "FI Base Slot"
+Description: "This is the Finnish base profile for the Slot resource."
diff --git a/input/includes/example-list-generator.html b/input/includes/example-list-generator.html
new file mode 100644
index 0000000..c427984
--- /dev/null
+++ b/input/includes/example-list-generator.html
@@ -0,0 +1,29 @@
+{% assign my_types = "" %}
+{%- for r_hash in site.data.artifacts -%}
+ {% assign r_type = r_hash[0] | split: '/' | first %}
+ {%- assign r = r_hash[1] -%}
+ {%- if r.example -%}
+ {% assign my_types = my_types | append: ","s | append: r_type %}
+ {%- endif -%}
+{% endfor %}
+{% assign my_array = my_types | split: "," %}
+{% assign my_array = my_array | sort | uniq %}
+
+{% assign lhtype = "" %}
+{% for i in my_array offset:1 %}
+ {% assign dhtype = i | split: '-' | first %}
+ {%- if lhtype != dhtype %}
+ {% assign lhtype = dhtype %}
+ {{ lhtype }}
+ {% endif %}
+
+ {%- for r_hash in site.data.pages -%}
+ {% assign r_type = r_hash[0] | split: '/' | first %}
+ {%- assign r = r_hash[1] -%}
+ {% assign dtype = r_type | split: '-' | first %}
+ {%- if r_type == i %}
+ - {{ r.title }}
+ {% endif %}
+ {%- endfor -%}
+
+{% endfor %}
diff --git a/input/includes/fragment-fi-base-profiles.html b/input/includes/fragment-fi-base-profiles.html
new file mode 100644
index 0000000..9e11b68
--- /dev/null
+++ b/input/includes/fragment-fi-base-profiles.html
@@ -0,0 +1,40 @@
+
+ {%- assign profiles = "" -%}
+ {%- for r_hash in site.data.structuredefinitions -%}
+ {%- assign r_type = r_hash[0] | split: "/"" | first -%}
+ {%- assign r = r_hash[1] -%}
+ {%- if r.kind == "resource" -%}
+ {%- unless r.example -%}
+ {%- unless r.type == "Extension" -%}
+ {%- assign prefix = r_type | slice: 0, 8 -%}
+ {%- if prefix == "fi-base-" -%}
+ {%- assign escaped_description = r.description | replace: "%", "%25" -%}
+ {%- assign escaped_description = escaped_description | replace: ",", "%20" -%}
+ {%- assign escaped_description = escaped_description | replace: ":", "%3A" -%}
+ {%- assign profiles = profiles | append: r.path | append: ":" | append: r.title | append: ":" | append: escaped_description -%}
+ {%- unless forloop.last -%}
+ {%- assign profiles = profiles | append: "," -%}
+ {%- endunless -%}
+ {%- endif -%}
+ {%- endunless -%}
+ {%- endunless -%}
+ {%- endif -%}
+ {%- endfor -%}
+ {%- assign profiles = profiles | split: "," -%}
+ {%- assign profiles = profiles | sort | uniq -%}
+
+ {%- for profile in profiles -%}
+ {%- assign properties = profile | split: ":" -%}
+ {%- assign pagepath = properties.first -%}
+ {%- assign pagetitle = properties[1] -%}
+ {%- assign description = properties.last -%}
+ {%- assign description = description | replace: "%3A", ":" -%}
+ {%- assign description = description | replace: "%20", "," -%}
+ {%- assign description = description | replace: "%25", "%" -%}
+ -
+ {{ pagetitle }}
+
{{ description }}
+
+ {%- endfor -%}
+
+
\ No newline at end of file
diff --git a/input/includes/fragment-footer.html b/input/includes/fragment-footer.html
new file mode 100644
index 0000000..f7ed252
--- /dev/null
+++ b/input/includes/fragment-footer.html
@@ -0,0 +1,11 @@
+Links: Table of Contents
+ | QA Report
+ {%- for feedbacklink in site.data.features.feedback -%}
+ {%- if feedbacklink.dashboard -%}
+ | {{feedbacklink.dashboard.label}}
+ {%- endif -%}
+ {%- endfor -%}
+ | Version History
+ |
+ | Source
+ | Propose a change
\ No newline at end of file
diff --git a/input/includes/fragment-other-profiles.html b/input/includes/fragment-other-profiles.html
new file mode 100644
index 0000000..c4f8e6c
--- /dev/null
+++ b/input/includes/fragment-other-profiles.html
@@ -0,0 +1,40 @@
+
+ {%- assign profiles = "" -%}
+ {%- for r_hash in site.data.structuredefinitions -%}
+ {%- assign r_type = r_hash[0] | split: "/"" | first -%}
+ {%- assign r = r_hash[1] -%}
+ {%- if r.kind == "resource" -%}
+ {%- unless r.example -%}
+ {%- unless r.type == "Extension" -%}
+ {%- assign prefix = r_type | slice: 0, 8 -%}
+ {%- unless prefix == "fi-base-" -%}
+ {%- assign escaped_description = r.description | replace: "%", "%25" -%}
+ {%- assign escaped_description = escaped_description | replace: ",", "%20" -%}
+ {%- assign escaped_description = escaped_description | replace: ":", "%3A" -%}
+ {%- assign profiles = profiles | append: r.path | append: ":" | append: r.title | append: ":" | append: escaped_description -%}
+ {%- unless forloop.last -%}
+ {%- assign profiles = profiles | append: "," -%}
+ {%- endunless -%}
+ {%- endunless -%}
+ {%- endunless -%}
+ {%- endunless -%}
+ {%- endif -%}
+ {%- endfor -%}
+ {%- assign profiles = profiles | split: "," -%}
+ {%- assign profiles = profiles | sort | uniq -%}
+
+ {%- for profile in profiles -%}
+ {%- assign properties = profile | split: ":" -%}
+ {%- assign pagepath = properties.first -%}
+ {%- assign pagetitle = properties[1] -%}
+ {%- assign description = properties.last -%}
+ {%- assign description = description | replace: "%3A", ":" -%}
+ {%- assign description = description | replace: "%20", "," -%}
+ {%- assign description = description | replace: "%25", "%" -%}
+ -
+ {{ pagetitle }}
+
{{ description }}
+
+ {%- endfor -%}
+
+
\ No newline at end of file
diff --git a/input/pagecontent/StructureDefinition-fi-base-medication-intro.md b/input/pagecontent/StructureDefinition-fi-base-medication-intro.md
new file mode 100644
index 0000000..f866027
--- /dev/null
+++ b/input/pagecontent/StructureDefinition-fi-base-medication-intro.md
@@ -0,0 +1,11 @@
+### Scope and Usage
+
+See also the [Medications Module](https://www.hl7.org/fhir/medications-module.html) of the main
+FHIR specification.
+
+### Kanta Prescription Project
+
+Please also note the [Prescription project](https://www.kanta.fi/en/system-developers/prescription)
+and the related [implementation guide](https://simplifier.net/guide/finnishkantamedicationr4) of
+the Kanta system. That project contains useful definitions, examples, and sequence descriptions.
+Unfortunately the implementation guide is only available in Finnish.
diff --git a/input/pagecontent/downloads.md b/input/pagecontent/downloads.md
new file mode 100644
index 0000000..6bdf6af
--- /dev/null
+++ b/input/pagecontent/downloads.md
@@ -0,0 +1,40 @@
+Download automatically generated assets for offline use.
+
+### This Implementation Guide
+
+This full IG as a single package:
+* [full-ig.zip](full-ig.zip)
+
+### NPM Package
+
+Profiles, valuesets, examples, and other assets used in this IG in npm format:
+* FHIR version R4 [package.tgz](package.tgz)
+* FHIR version R4B [package.r4b.tgz](package.r4b.tgz)
+
+### Definitions
+
+Profiles, valuesets, and other definitions included in this IG in different file formats:
+* Comma separated values (CSV) format: [csvs.zip](csvs.zip)
+* Excel spreadsheet files: [excels.zip](excels.zip)
+* Javascript Object Notation (JSON) format: [definitions.json.zip](definitions.json.zip)
+* Schematron XML validation language: [schematrons.zip](schematrons.zip)
+* Terse RDF Triple Language (TTL) format: [definitions.ttl.zip](definitions.ttl.zip)
+* Extensible Markup Language (XML) format: [definitions.xml.zip](definitions.xml.zip)
+
+### Expansions
+
+Expansions as FHIR Bundle resources:
+* JSON [expansions.json.zip](expansions.json.zip)
+* XML [expansions.xml.zip]()
+
+### Examples
+
+All example files included in this IG:
+* JSON [examples.json.zip](examples.json.zip)
+* TTL [examples.ttl.zip](examples.ttl.zip)
+* XML [examples.xml.zip](examples.xml.zip)
+
+### FHIR Tools
+For generic FHIR tools, frameworks, and supported programming languages, see
+[https://hl7.org/fhir/downloads.html](https://hl7.org/fhir/downloads.html)
+
diff --git a/input/pagecontent/examples.md b/input/pagecontent/examples.md
new file mode 100644
index 0000000..daad7fd
--- /dev/null
+++ b/input/pagecontent/examples.md
@@ -0,0 +1,11 @@
+This list includes the examples included in this implementation guide. Please note that the list
+contains examples of FI Base resources as well as examples from other known implementations from
+Finland. We hope listing many examples here promotes awareness of what has already been done and
+thereby increases interoperability.
+
+These example instances show what data produced and consumed by systems conforming with this
+implementation guide might look like. Every effort has been made to ensure that the examples are
+correct and useful, but they are not a normative part of the specification nor are they fully
+representative of real world examples.
+
+{% include example-list-generator.html %}
diff --git a/input/pagecontent/extensions.md b/input/pagecontent/extensions.md
new file mode 100644
index 0000000..291197a
--- /dev/null
+++ b/input/pagecontent/extensions.md
@@ -0,0 +1,15 @@
+The primary way to adapt the FHIR specification to specific requirements of a jurisdiction is
+through [extensions](http://hl7.org/fhir/R4/extensibility.html).
+
+This list includes the FI Base extensions as well as other known extesions used in Finland. We hope
+listing extensions here will promote their use and thereby increase interoperability.
+
+
+{% include list-extensions.xhtml %}
+
+
+In addition to this list, a
+[registry of standard extensions](http://hl7.org/fhir/R4/extensibility-registry.html) can
+be found in the FHIR specification and additional extensions may be registered on the HL7 FHIR
+registry at [http://hl7.org/fhir/registry](http://hl7.org/fhir/registry).
+
diff --git a/input/pagecontent/history.md b/input/pagecontent/history.md
new file mode 100644
index 0000000..d32db09
--- /dev/null
+++ b/input/pagecontent/history.md
@@ -0,0 +1,5 @@
+No versions of this IG have been published yet. This continuous integration build is the first
+version to be created.
+
+It is foreseen that the first version will be balloted (voted on by the HL7 Finland membership) on
+the first quarter of 2023 and published on the second quarter of 2023.
\ No newline at end of file
diff --git a/input/pagecontent/index.md b/input/pagecontent/index.md
index 1c0aeb5..23c8fca 100644
--- a/input/pagecontent/index.md
+++ b/input/pagecontent/index.md
@@ -1,43 +1,233 @@
-# Finnish FHIR Base Profiles
+### Welcome to the Finnish FHIR Base Profiles Specification
-This repo contains the source code for the Finnish FHIR base profiles.
+This implementation guide specifies the Finnish FHIR base profiles.
+
+It builds on top of the [International Patient Access](https://build.fhir.org/ig/HL7/fhir-ipa/)
+specification.
+
+The profiles are based on R4, [FHIR 4.0.1](http://hl7.org/fhir/R4/).
+
+
+ This documentation and set of artefacts are still undergoing development, and they are in
+ DRAFT mode. The working group of HL7 Finland and the different interested parties are
+ working on this specification. This is a DRAFT specification that has not yet been validated by
+ the community of users and implementers.
+
+
+#### Companion Specifications
+
+There is a separate [Finnish Implementation Guide for SMART App
+Launch](https://fhir.fi/finnish-smart/) that describes how the
+[SMART](https://hl7.org/fhir/smart-app-launch/) specification is applied in Finland.
+
+### Why Do We Need Finnish FHIR Base Profiles?
+
+Better flow of information between systems is one of the key enablers for digitalization and
+improved efficiency of healthcare systems. Better flow of information is facilitated by
+interoperability standards. HL7 FHIR® is one of the most important standards for interoperability
+and exchange of healthcare data.
+
+For many things in healthcare it is hard to achieve a global consensus over what data should be
+coded and communicated, and how. The base HL7 FHIR standard does an excellent job in defining the
+global consensus where it exists. At the same time, it specifically allows and encourages smaller
+communities to come up with more specific profiles and implementation guides.
+
+In many cases, the HL7 FHIR standard allows for several ways to implement a functionality. There
+are increasing concerns that without a coordinated approach implementers will choose different ways
+to implement some features, and this will lead to challenges for interoperability. This
+implementation guide attempts to define a consensus within the Finnish FHIR implementers on which
+ways we have considered the best fit for use cases in Finland.
+
+In this implementation guide we also describe the code systems and identifiers that are specific
+to the Finnish healthcare system.
+
+### Notable FHIR Implementations in Finland
+
+There are dozens of FHIR enabled systems and applications implemented and in use in Finland. This
+list does not attempt to be a complete list of all implementations. Rather, it is included here for
+readers not familiar with the Finnish healthcare system, as a quick glance to some of the most
+notable implementations at the time of writing of the first version of this guide.
+
+#### Kanta
+
+[Kanta](https://www.kanta.fi/) is the Finnish national central registry of health and social
+welfare information, with many services available for systems, providers, and citizens. Most of
+both the data and the APIs in Kanta system are based on HL7 V3 standards. However, there is
+ongoing work to open also FHIR based access to the information.
+
+The part where HL7 FHIR is used the most is the [Kanta PHR](https://www.kanta.fi/phr), a personal
+health record platform for storing and exchanging health and wellbeing data produced and governed
+by citizens. This part of Kanta is also the one most open to application developers.
+
+#### Omaolo
+
+[Omaolo](https://www.omaolo.fi) is a collection of services developed by DigiFinland, a publicly
+funded company. Omaolo has a fully HL7 FHIR based personal health record platform as its core.
+
+#### Terveyskylä / Health Village
+
+[Health Village](http://healthvillage.fi) is yet another publicly funded group of services. It has
+built in HL7 [SMART App Launch](https://www.hl7.org/fhir/smart-app-launch/) capability for
+interacting with third party apps.
+
+#### Apotti
+
+[Apotti](https://www.apotti.fi/) is a sizeable Epic installation in Finland.
+[Epic](https://www.epic.com) is one of the biggest electronic health record system vendors
+globally.
+
+#### CGI
+
+The [OMNI360](https://www.cgi.com/fi/fi/tuoteratkaisut/omni360) by CGI Finland is one of the
+prominent Finnish electronic health record systems and has several native FHIR APIs.
+
+#### EskoSystems
+
+The [Esko APTJ](https://eskosystems.fi/tuoteperhe/integraatiot/) by Esko Systems is also one of the
+prominent Finnish electronic health record systems. It uses several FHIR APIs internally, and
+offers a SMART App Launch method to interact with third party systems.
+
+#### Learn more
+
+The [FHIR Demo 2022](https://fhir.fi/en/demo2022/index.html) showcase presented integrations
+implemented between a dozen platforms and more than a dozen FHIR apps, all based on HL7 FHIR.
+
+Even that showcase did not cover the full extent to which HL7 FHIR is being used in Finland.
+There's a lot going on!
+
+To learn about the current status, please contact [HL7 Finland](https://www.hl7.fi/). We're happy
+to give you an overview.
+
+### Profiling Approach
+
+The base FHIR specification works on a global scope. It is hard to achieve consensus on many things
+globally. However, smaller regions and jurisdictions are in a better position to agree on tighter
+constraints.
+
+#### Local Considerations
+
+For instance, different coding systems and terminologies are used in different parts of the world.
+In this implementation guide, we document which code systems and terminologies are used in Finland
+and how they are applied in FHIR.
+
+The FHIR standard also allows implementers to implement many features in several ways. One example
+is scheduling. Some jurisdictions are working on scheduling API's based on FHIR operations. In
+Finland, existing solutions have chosen to go with a more fine grained approach with pure FHIR
+resources and the REST interface.
+
+#### International Aspects
+
+Our main intent is still to limit profiling specific to Finland. During the process, we actively
+monitor other national base profiles. We attempt to harmonize our base profiles with already
+published base profiles from other Nordic countries, specifically the Danish
+[DK Core](https://hl7.dk/fhir/core) and the Norwegian
+[no-basis-Profiles](https://simplifier.net/HL7Norwayno-basis/~introduction).
+
+The Finnish FHIR base profiles derive from the
+[International Patient Access (IPA) specification](https://build.fhir.org/ig/HL7/fhir-ipa/)
+and we will keep the specifications conformant. Should we find any constraints in IPA that we
+can't adhere to, the main resolution should be to affect the IPA specification and search for
+wider consensus and shared understanding.
+
+Other notable national base profiles under our radar are the
+[US Core](https://hl7.org/fhir/us/core/), the
+[Canadian baseline](https://build.fhir.org/ig/HL7-Canada/ca-baseline/), the Swiss
+[CH Core](http://fhir.ch/ig/ch-core/index.html), and the Australian
+[AU Base](http://hl7.org.au/fhir/4.0.0/).
+
+#### Profiles and Examples
+
+We publish profile resources that help implementers validate their implementations.
+
+We also publish examples, as we think they are another good way to interoperability.
+
+Also, where we cannot find consensus and agree on one single approach, we attempt to
+document all different approaches used.
+
+### Governance
The profiling work is performed in a project driven by [HL7 Finland](https://www.hl7.fi).
See the
-[announcement](https://www.hl7.fi/hl7-fhir-profilointityo-kaynnistyy-tule-mukaan-vaikuttamaan-kansalliseen-tekemiseen/),
-the [running
+[announcement](https://www.hl7.fi/hl7-fhir-profilointityo-kaynnistyy-tule-mukaan-vaikuttamaan-kansalliseen-tekemiseen/)
+(in Finnish), the [running
memo](https://docs.google.com/document/d/1yNq6XMLhWJqi6OELQtWC1DFwdtD9CQulzVOfz-zZCko/edit#), and
-[some more details](https://fhir.fi).
-
-The profiles will be based on R4, [FHIR 4.0.1](http://hl7.org/fhir/R4/).
-
-## Companion Specifications
-
-See also the repo for [Finnish Implementation Guide for SMART App
-Launch]([https://github.com/fhir-fi/finnish-base-profiles](https://github.com/fhir-fi/finnish-smart)).
-
-## Resources to be Profiled
-
-* Appointment
-* Condition
-* Device (?)
-* DiagnosticReport
-* Encounter
-* EpisodeOfCare
-* HealthcareService
-* Location
-* Medication (?)
-* MedicationRequest (?)
-* MedicationStatement (?)
-* MedicationAdministration (?)
-* Observation
-* Organization (*)
-* Patient (*)
-* Practitioner (*)
-* PractitionerRole
-* Schedule
-* Slot
-
-(*) The work has started with Patient, Practitioner, and Organization. These should support the implementation guide for SMART App Launch.
-
-(?) Profiling device and medication related resources will be started if we identify implementers who have used these resources and feel there is a need for profiling. Sensotrend uses MedicationAdministration, in Finland with the Kanta PHR, but sees no need for a Finnish profile.
+[some more details](https://fhir.fi). We warmly welcome new participants to the project. You may
+even be compensated for your efforts.
+
+### Collaboration
+
+We want this implementation guide to be useful for you.
+
+If you are implementing FHIR in a system or application that is meant to be used in Finland and are
+thinking of some implementation details, you are probably in the right place and this
+implementation guide should help you with those questions. If this implementation guide in any way
+fails to give you the answers you are looking for, we'd love to hear about it so we can make it
+better. Please do be in touch in one of the ways listed below.
+
+#### Open an Issue in GitHub
+
+The source code of this implementation guide is maintained in a
+[publicly accessible repository](https://github.com/fhir-fi/fi-base-profiles) in GitHub.
+Issues opened in that GitHub repo are very welcome. They help the team pick up any proposed changes
+or additions and to discuss them publicly.
+
+#### Open a Pull Request in GitHub
+
+Pull requests are even better. If you are in a position to suggest how exactly your proposal should
+be implemented in the specification, do it! It helps the team maintaining the implementation guide
+a great deal.
+
+#### Participate in IG Development and Maintenance
+
+Please also consider joining the development effort. This is the best way to affect the outcome of
+the profiling work. You may even be compensated for your efforts. Please be in touch with HL7
+Finland to discuss options, if this even remotely interesting for you.
+
+The best implementation guide is the one that reflects the views and the consensus of the whole
+FHIR community!
+
+### Safety Considerations
+This implementation guide defines data elements, resources, formats, and methods for exchanging
+healthcare data between different participants in the healthcare process. As such, clinical safety
+is a key concern. Additional guidance regarding safety for the specification’s many and various
+implementations is available at
+[https://www.hl7.org/FHIR/safety.html](https://www.hl7.org/FHIR/safety.html).
+
+Although the present specification does give users the opportunity to observe data protection and
+data security regulations, its use does not guarantee compliance with these regulations. Effective
+compliance must be ensured by appropriate measures during implementation projects and in daily
+operations. The corresponding implementation measures are explained in the standard. In addition,
+the present specification can only influence compliance with the security regulations in the
+technical area of standardisation. It cannot influence organisational and contractual matters.
+
+### License and Legal Terms
+
+This document is licensed under Creative Commons
+[CC0 1.0 Universal](https://creativecommons.org/publicdomain/zero/1.0/) Public Domain Dedication.
+
+HL7®, HEALTH LEVEL SEVEN®, FHIR® and the FHIR
® are trademarks owned
+by Health Level Seven International, registered with the United States Patent and Trademark Office.
+
+This implementation guide contains and references intellectual property owned by third parties
+("Third Party IP"). Acceptance of these License Terms does not grant any rights with respect to
+Third Party IP. The licensee alone is responsible for identifying and obtaining any necessary
+licenses or authorizations to utilize Third Party IP in connection with the specification or
+otherwise.
+
+See also [http://hl7.org/fhir/license.html](http://hl7.org/fhir/license.html).
+
+Following is a non-exhaustive list of third-party artifacts and terminologies that may require a
+separate license:
+
+**SNOMED Clinical Terms® (SNOMED CT®)**
+This material includes SNOMED Clinical Terms® (SNOMED CT®) which is used by permission of SNOMED
+International (former known as International Health Terminology Standards Development Organisation
+IHTSDO). All rights reserved. SNOMED CT®, was originally created by The College of American
+Pathologists. “SNOMED” and “SNOMED CT” are registered trademarks of SNOMED International.
+
+**Logical Observation Identifiers Names and Codes LOINC**
+This material contains content from LOINC® (http://loinc.org). The LOINC table, LOINC codes, and
+LOINC panels and forms file are copyright © 1995-2013, Regenstrief Institute, Inc. and the Logical
+Observation Identifiers Names and Codes (LOINC) Committee and available at no cost under the
+license at http://loinc.org/terms-of-use.
diff --git a/input/pagecontent/profiles.md b/input/pagecontent/profiles.md
new file mode 100644
index 0000000..fcf9d43
--- /dev/null
+++ b/input/pagecontent/profiles.md
@@ -0,0 +1,16 @@
+Below are two lists of Finnish FHIR profiles.
+
+### FI Base Profiles
+
+This is the list of FHIR resources profiled for use in Finland, published and maintained by HL7
+Finland.
+
+{% include fragment-fi-base-profiles.html %}
+
+### Kanta PHR Profiles
+
+This is the list of profiles from the Kanta PHR, where a lot of early profiling has been done.
+It is worth noting that these profiles are more restrictive than the national base profiles. They
+are still listed here, to increase awareness of work already done and to act as inspiration.
+
+{% include fragment-other-profiles.html %}
diff --git a/input/pagecontent/terminology.md b/input/pagecontent/terminology.md
new file mode 100644
index 0000000..edc4c1b
--- /dev/null
+++ b/input/pagecontent/terminology.md
@@ -0,0 +1,55 @@
+This page lists notable terminologies used in Finland.
+
+Many of these terminologies are not maintained by HL7 Finland, rather they are published and
+maintained elsewhere and included into this implementation guide to raise awareness of their
+existence.
+
+When terminologies are readily available in FHIR format, they are imported into this implementation
+guide. However, this is currently a manual process and there is no guarantee that the terminologies
+are kept up to date with official versions. Readers are encouraged to check the original source of
+the terminologies for up-to-date information.
+
+When terminologies are not available in FHIR format, this implementation guide links to the
+definitions published elsewhere.
+
+Also please note that most code systems used in this guide are defined in the base FHIR
+specification. They are not replicated here.
+
+### CodeSystems
+
+
+{% include list-simple-codesystems.xhtml %}
+
+
+See the [FHIR terminology section](https://hl7.org/fhir/terminologies-systems.html) for a complete
+discussion on code systems and a list of codes system names used in FHIR.
+
+### ValueSets
+
+
+{% include list-simple-valuesets.xhtml %}
+
+
+See also the
+[value sets defined in the FHIR specification](https://hl7.org/fhir/terminologies-valuesets.html).
+
+### ConceptMaps
+
+
+{% include list-simple-conceptmaps.xhtml %}
+
+
+See also the [mappings between value sets](https://hl7.org/fhir/terminologies-conceptmaps.html)
+defined in the main FHIR specification.
+
+### NamingSystems
+
+
+{% include list-simple-namingsystems.xhtml %}
+
+
+See also the [known identifier systems](https://hl7.org/fhir/identifier-registry.html) of the main
+FHIR specification.
+
+### Terminologies not available in FHIR format
+
diff --git a/sushi-config.yaml b/sushi-config.yaml
index cdfbc63..fc060c4 100644
--- a/sushi-config.yaml
+++ b/sushi-config.yaml
@@ -1,12 +1,11 @@
-# ╭─────────────────────────Commonly Used ImplementationGuide Properties───────────────────────────╮
-# │ The properties below are used to create the ImplementationGuide resource. The most commonly │
-# │ used properties are included. For a list of all supported properties and their functions, │
-# │ see: https://fshschool.org/docs/sushi/configuration/. │
+# ╭──────────────────────────────────────ImplementationGuide───────────────────────────────────────╮
+# │ The properties below are used to create the ImplementationGuide resource. For a list of │
+# │ supported properties, see: https://fshschool.org/sushi/configuration/ │
# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
id: fi.fhir.base
-canonical: http://fhir.fi/finnish-base-profiles
-name: FinnishBaseProfiles
-title: Finnish Base Profiles
+canonical: http://fhir.fi/fi-base-profiles
+name: FiBaseProfiles
+title: FI Base Profiles
description: A core set of FHIR resources profiled for use in Finland, published and maintained by HL7 Finland
status: draft # draft | active | retired | unknown
version: 0.1.0
@@ -18,193 +17,36 @@ jurisdiction: urn:iso:std:iso:3166#FI "Finland" # https://www.hl7.org/fhir/value
publisher:
name: HL7 Finland
url: https://www.hl7.fi/
- # email: test@example.org
-
-# The dependencies property corresponds to IG.dependsOn. The key is the
-# package id and the value is the version (or dev/current). For advanced
-# use cases, the value can be an object with keys for id, uri, and version.
-#
+ # email: mikael@sensotrend.com
dependencies:
hl7.fhir.uv.ipa: 0.1.0
-# hl7.fhir.us.core: 3.1.0
-# hl7.fhir.us.mcode:
-# id: mcode
-# uri: http://hl7.org/fhir/us/mcode/ImplementationGuide/hl7.fhir.us.mcode
-# version: 1.0.0
-#
-#
-# The pages property corresponds to IG.definition.page. SUSHI can
-# auto-generate the page list, but if the author includes pages in
-# this file, it is assumed that the author will fully manage the
-# pages section and SUSHI will not generate any page entries.
-# The page file name is used as the key. If title is not provided,
-# then the title will be generated from the file name. If a
-# generation value is not provided, it will be inferred from the
-# file name extension. Any subproperties that are valid filenames
-# with supported extensions (e.g., .md/.xml) will be treated as
-# sub-pages.
-#
-# pages:
-# index.md:
-# title: Example Home
-# implementation.xml:
-# examples.xml:
-# title: Examples Overview
-# simpleExamples.xml:
-# complexExamples.xml:
-#
-#
-# The parameters property represents IG.definition.parameter. Rather
-# than a list of code/value pairs (as in the ImplementationGuide
-# resource), the code is the YAML key. If a parameter allows repeating
-# values, the value in the YAML should be a sequence/array. For a
-# partial list of allowed parameters see:
-# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters
-#
-# parameters:
-# excludettl: true
-# validation: [allow-any-extensions, no-broken-links]
-#
-# ╭────────────────────────────────────────────menu.xml────────────────────────────────────────────╮
-# │ The menu property will be used to generate the input/menu.xml file. The menu is represented │
-# │ as a simple structure where the YAML key is the menu item name and the value is the URL. │
-# │ The IG publisher currently only supports one level deep on sub-menus. To provide a │
-# │ custom menu.xml file, do not include this property and include a `menu.xml` file in │
-# │ input/includes. To use a provided input/includes/menu.xml file, delete the "menu" │
-# │ property below. │
-# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
+pages:
+ index.md:
+ title: Home
+ profiles.md:
+ title: Profiles
+ extensions.md:
+ title: Extensions
+ terminology.md:
+ title: Terminology
+ examples.md:
+ title: Examples
+ downloads.md:
+ title: Downloads
+ history.md:
+ title: Version History
+
+parameters:
+ ipa-comparison: "{last}" # "{current}" | "{last}"
+
menu:
Home: index.html
- Artifacts: artifacts.html
-
-# ╭───────────────────────────Less Common Implementation Guide Properties──────────────────────────╮
-# │ Uncomment the properties below to configure additional properties on the ImplementationGuide │
-# │ resource. These properties are less commonly needed than those above. │
-# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
-#
-# Those who need more control or want to add additional details to the contact values can use
-# contact directly and follow the format outlined in the ImplementationGuide resource and
-# ContactDetail.
-#
-# contact:
-# - name: Bob Smith
-# telecom:
-# - system: email # phone | fax | email | pager | url | sms | other
-# value: bobsmith@example.org
-# use: work
-#
-#
-# The global property corresponds to the IG.global property, but it
-# uses the type as the YAML key and the profile as its value. Since
-# FHIR does not explicitly disallow more than one profile per type,
-# neither do we; the value can be a single profile URL or an array
-# of profile URLs. If a value is an id or name, SUSHI will replace
-# it with the correct canonical when generating the IG JSON.
-#
-# global:
-# Patient: http://example.org/fhir/StructureDefinition/my-patient-profile
-# Encounter: http://example.org/fhir/StructureDefinition/my-encounter-profile
-#
-#
-# The resources property corresponds to IG.definition.resource.
-# SUSHI can auto-generate all of the resource entries based on
-# the FSH definitions and/or information in any user-provided
-# JSON or XML resource files. If the generated entries are not
-# sufficient or complete, however, the author can add entries
-# here. If the reference matches a generated entry, it will
-# replace the generated entry. If it doesn't match any generated
-# entries, it will be added to the generated entries. The format
-# follows IG.definition.resource with the following differences:
-# * use IG.definition.resource.reference.reference as the YAML key.
-# * if the key is an id or name, SUSHI will replace it with the
-# correct URL when generating the IG JSON.
-# * specify "omit" to omit a FSH-generated resource from the
-# resource list.
-# * if the exampleCanonical is an id or name, SUSHI will replace
-# it with the correct canonical when generating the IG JSON.
-# * groupingId can be used, but top-level groups syntax may be a
-# better option (see below).
-# The following are simple examples to demonstrate what this might
-# look like:
-#
-# resources:
-# Patient/my-example-patient:
-# name: My Example Patient
-# description: An example Patient
-# exampleBoolean: true
-# Patient/bad-example: omit
-#
-#
-# Groups can control certain aspects of the IG generation. The IG
-# documentation recommends that authors use the default groups that
-# are provided by the templating framework, but if authors want to
-# use their own instead, they can use the mechanism below. This will
-# create IG.definition.grouping entries and associate the individual
-# resource entries with the corresponding groupIds. If a resource
-# is specified by id or name, SUSHI will replace it with the correct
-# URL when generating the IG JSON.
-#
-# groups:
-# GroupA:
-# name: Group A
-# description: The Alpha Group
-# resources:
-# - StructureDefinition/animal-patient
-# - StructureDefinition/arm-procedure
-# GroupB:
-# name: Group B
-# description: The Beta Group
-# resources:
-# - StructureDefinition/bark-control
-# - StructureDefinition/bee-sting
-#
-#
-# The ImplementationGuide resource defines several other properties
-# not represented above. These properties can be used as-is and
-# should follow the format defined in ImplementationGuide:
-# * date
-# * meta
-# * implicitRules
-# * language
-# * text
-# * contained
-# * extension
-# * modifierExtension
-# * experimental
-# * useContext
-# * copyright
-# * packageId
-#
-#
-# ╭──────────────────────────────────────────SUSHI flags───────────────────────────────────────────╮
-# │ The flags below configure aspects of how SUSHI processes FSH. │
-# ╰────────────────────────────────────────────────────────────────────────────────────────────────╯
-# The FSHOnly flag indicates if only FSH resources should be exported.
-# If set to true, no IG related content will be generated.
-# The default value for this property is false.
-#
-# FSHOnly: false
-#
-#
-# When set to true, the "short" and "definition" field on the root element of an Extension will
-# be set to the "Title" and "Description" of that Extension. Default is true.
-#
-# applyExtensionMetadataToRoot: true
-#
-#
-# The instanceOptions property is used to configure certain aspects of how SUSHI processes instances.
-# See the individual option definitions below for more detail.
-#
-# instanceOptions:
-# Determines for which types of Instances SUSHI will automatically set meta.profile
-# if InstanceOf references a profile:
-#
-# setMetaProfile: always # always | never | inline-only | standalone-only
-#
-#
-# Determines for which types of Instances SUSHI will automatically set id
-# if InstanceOf references a profile:
-#
-# setId: always # always | standalone-only
+# Table of Contents: toc.html
+ Profiles: profiles.html
+ Extensions: extensions.html
+ Terminology: terminology.html
+ Examples: examples.html
+# Artifacts: artifacts.html
+ Downloads: downloads.html