From b68c62ff57c2bbbc8c67f6c86f3387895d5c5539 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Fri, 25 Oct 2019 17:59:40 -0400 Subject: [PATCH 1/2] Refactor project to use external testcases --- org.hl7.fhir.validation/pom.xml | 10 +- .../validation/tests/ValidationTestSuite.java | 157 +- .../azatadha/example-bundle.xml | 13 - .../azatadha/example-params-1.xml | 22 - .../azatadha/example-params-2.xml | 15 - .../azatadha/param-profile.xml | 59 - .../azatadha/text-binary.xml | 25 - .../bad-bundle-reference-type.xml | 22 - .../validation-examples/bp-profile.xml | 4703 ---- .../resources/validation-examples/bp.json | 149 - .../validation-examples/bundle-bad-empty.json | 27 - .../validation-examples/bundle-doc-good.xml | 43 - .../validation-examples/bundle-good.json | 27 - .../validation-examples/bundle-good.ttl | 38 - .../validation-examples/bundle-good.xml | 27 - .../bundle-ips-examples-bundle-01.xml | 1133 - .../validation-examples/bundle-local-refs.xml | 45 - .../validation-examples/ccda-example-bad.xml | 966 - .../validation-examples/ccda-example.xml | 911 - .../validation-examples/ccda-profile.xml | 1222 - .../validation-examples/code-correct.xml | 10 - .../code-wrong-display.xml | 10 - .../code-wrong-system-vs.xml | 9 - .../validation-examples/code-wrong-system.xml | 9 - .../validation-examples/contained.json | 21 - .../document-bad-bad-sections.xml | 57 - .../document-bad-no-sections.xml | 17 - .../validation-examples/document-good.xml | 62 - .../document-section-library.xml | 104 - .../document-structure.xml | 84 - .../duplicate-security-tags.xml | 23 - .../entry-resource-bad1.xml | 12 - .../extension-slice-profile.xml | 47 - .../validation-examples/extension-slice.xml | 13 - .../validation-examples/fhirpath-bad.json | 14 - .../validation-examples/fhirpath-good.json | 14 - .../validation-examples/fhirpath-null.json | 14 - .../group-choice-bad1.json | 14 - .../validation-examples/group-choice-bad1.ttl | 21 - .../validation-examples/group-choice-bad1.xml | 11 - .../group-choice-bad2.json | 14 - .../validation-examples/group-choice-bad2.ttl | 21 - .../validation-examples/group-choice-bad2.xml | 11 - .../group-choice-bad3.json | 14 - .../validation-examples/group-choice-bad3.ttl | 22 - .../validation-examples/group-choice-bad3.xml | 11 - .../group-choice-empty.json | 12 - .../group-choice-empty.ttl | 20 - .../group-choice-empty.xml | 10 - .../group-choice-good.json | 14 - .../validation-examples/group-choice-good.ttl | 22 - .../validation-examples/group-choice-good.xml | 11 - .../group-minimal-tiny.json | 1 - .../group-minimal-tiny.ttl | 14 - .../validation-examples/group-minimal.json | 5 - .../validation-examples/group-minimal.ttl | 14 - .../validation-examples/group-minimal.xml | 4 - .../validation-examples/invariant.example.xml | 38 - .../validation-examples/invariant.profile.xml | 56 - .../validation-examples/list-bad-syntax.json | 14 - .../validation-examples/list-bad-syntax.xml | 8 - .../list-contained-bad.json | 15 - .../list-contained-bad.ttl | 23 - .../list-contained-bad.xml | 14 - .../validation-examples/list-contained.json | 15 - .../validation-examples/list-contained.ttl | 23 - .../validation-examples/list-contained.xml | 14 - .../validation-examples/list-empty1.json | 9 - .../validation-examples/list-empty1.ttl | 16 - .../validation-examples/list-empty1.xml | 9 - .../validation-examples/list-empty2.json | 8 - .../validation-examples/list-empty2.ttl | 15 - .../validation-examples/list-empty2.xml | 11 - .../validation-examples/list-extension.ttl | 22 - .../validation-examples/list-extension.xml | 12 - .../validation-examples/list-extension1.json | 22 - .../validation-examples/list-extension1.ttl | 22 - .../validation-examples/list-extension2.json | 22 - .../validation-examples/list-extension2.ttl | 21 - .../validation-examples/list-minimal.json | 14 - .../validation-examples/list-minimal.ttl | 15 - .../validation-examples/list-minimal.xml | 8 - .../validation-examples/list-text.ttl | 15 - .../validation-examples/list-text.xml | 8 - .../validation-examples/list-unknown-attr.ttl | 15 - .../validation-examples/list-unknown-attr.xml | 8 - .../list-unknown-element.ttl | 15 - .../list-unknown-element.xml | 9 - .../list-unknown-prop.json | 15 - .../validation-examples/list-unknown-prop.ttl | 15 - .../validation-examples/list-wrong-code.json | 6 - .../validation-examples/list-wrong-code.ttl | 15 - .../validation-examples/list-wrong-code.xml | 8 - .../validation-examples/list-wrong-ns.xml | 8 - .../validation-examples/list-wrong-ns1.ttl | 15 - .../validation-examples/list-wrong-ns1.xml | 8 - .../validation-examples/list-wrong-ns2.ttl | 15 - .../validation-examples/list-wrong-ns2.xml | 8 - .../validation-examples/list-wrong-order.json | 6 - .../validation-examples/list-wrong-order.ttl | 15 - .../validation-examples/list-wrong-order.xml | 5 - .../list-xhtml-attribute.json | 18 - .../list-xhtml-attribute.ttl | 18 - .../list-xhtml-attribute.xml | 14 - .../list-xhtml-correct1.json | 18 - .../list-xhtml-correct1.ttl | 18 - .../list-xhtml-correct1.xml | 14 - .../list-xhtml-correct2.json | 18 - .../list-xhtml-correct2.ttl | 18 - .../list-xhtml-correct2.xml | 14 - .../list-xhtml-element.json | 18 - .../list-xhtml-element.ttl | 18 - .../list-xhtml-element.xml | 15 - .../list-xhtml-syntax.json | 18 - .../validation-examples/list-xhtml-syntax.ttl | 18 - .../list-xhtml-wrongns1.json | 18 - .../list-xhtml-wrongns1.ttl | 18 - .../list-xhtml-wrongns1.xml | 14 - .../list-xhtml-wrongns2.json | 18 - .../list-xhtml-wrongns2.ttl | 18 - .../list-xhtml-wrongns2.xml | 14 - .../list-xhtml-wrongns3.ttl | 18 - .../list-xhtml-wrongns3.xml | 14 - .../validation-examples/list-xhtml-xxe.json | 10 - .../validation-examples/list-xhtml-xxe.ttl | 18 - .../validation-examples/list-xhtml-xxe1.xml | 14 - .../validation-examples/list-xhtml-xxe2.xml | 13 - .../validation-examples/loinc-lang-nl-1.xml | 19 - .../validation-examples/loinc-lang-nl-2.xml | 19 - .../validation-examples/loinc-lang-nl-3.xml | 20 - .../validation-examples/manifest.json | 937 - .../maxvalueset-profile.xml | 26 - .../validation-examples/medication-atc.json | 70 - .../message-infinite-loop.xml | 489 - .../multi-profile-same-resource-profile.xml | 80 - .../multi-profile-same-resource.xml | 17 - .../observation-bp-bad-onlydiastolic.xml | 250 - .../observation-bp-localcode.xml | 256 - ...bservation-bp-profile-twocodesrequired.xml | 256 - .../observation-bp-profile.xml | 243 - .../observation-bp-validationfails.xml | 253 - .../validation-examples/observation-bp.xml | 249 - ...d-referencerangehighfixedquantitywrong.xml | 97 - ...-cholesterol-bad-referencerangemissing.xml | 92 - .../observation-cholesterol-bad-wrongcode.xml | 100 - .../observation-cholesterol-good.xml | 97 - .../observation-maxvs-base.xml | 14 - .../observation-maxvs-ex.xml | 14 - .../observation-maxvs-text.xml | 10 - .../observation-maxvs-wrong.xml | 14 - ...observation-triglyceride-bad-wrongcode.xml | 103 - .../observation-triglyceride-good.xml | 103 - .../observation-triglyceride-good2.xml | 108 - .../observation-with-trailing-dot.json | 28 - .../validation-examples/observation102.json | 70 - .../validation-examples/observation301.xml | 66 - .../validation-examples/params-reference.xml | 22 - .../validation-examples/patient-au-5.json | 70 - .../patient-bad-gender.xml | 11 - .../patient-conform-profile.xml | 28 - .../patient-contained-org-profile.xml | 48 - .../patient-contained-org.xml | 20 - .../patient-duplicate.json | 10 - .../validation-examples/patient-example.json | 165 - .../validation-examples/patient-example.xml | 156 - .../validation-examples/patient-good.json | 8 - .../validation-examples/patient-good.xml | 9 - .../validation-examples/patient-lang1.json | 9 - .../validation-examples/patient-lang1.xml | 9 - .../validation-examples/patient-lang2.json | 9 - .../validation-examples/patient-lang2.xml | 9 - .../validation-examples/patient-lang3.json | 9 - .../validation-examples/patient-lang3.xml | 9 - .../patient-patternidentifier-bad.xml | 12 - .../patient-patternidentifier-badmultiple.xml | 22 - .../patient-patternidentifier-good.xml | 18 - .../patient-patternidentifier-profile.xml | 47 - .../patient-patternidentifierslice-bad.xml | 12 - .../patient-patternidentifierslice-good.xml | 18 - ...nt-patternidentifierslice-goodmultiple.xml | 22 - ...patient-patternidentifierslice-profile.xml | 48 - .../patient-translated-codes.profile.xml | 50 - .../patient-translated-codes.xml | 28 - .../patient-warning-maritalstatus.xml | 17 - .../validation-examples/patient102.xml | 140 - .../validation-examples/patient140.xml | 140 - .../validation-examples/patient301.xml | 156 - .../validation-examples/period-1.xml | 10 - .../validation-examples/practitioner-1.json | 33 - .../practitioner-notprac.json | 106 - .../primitive-bad-empty.xml | 228 - .../validation-examples/primitive-bad.xml | 147 - .../primitive-good-ws.json | 9 - .../validation-examples/primitive-good-ws.xml | 7 - .../validation-examples/primitive-good.xml | 248 - .../profile-patient-au.xml | 8702 ------- .../profile-slicing-bad-1.xml | 68 - .../profile-slicing-ok-1.xml | 68 - .../profile-slicing-profile-1.xml | 27 - .../profile-slicing-profile-2.xml | 27 - .../profile-slicing-profile-3.xml | 27 - .../profile-slicing-profile-closed.xml | 66 - .../profile-slicing-profile-open.xml | 66 - .../profile-slicing-profile-ordered.xml | 66 - .../resources/validation-examples/q-bp.xml | 467 - .../resources/validation-examples/q-ex.json | 55 - .../test/resources/validation-examples/q.xml | 40 - .../resources/validation-examples/qr-ex.json | 44 - .../test/resources/validation-examples/qr.xml | 37 - .../questionnaire-enableWhen-test-invalid.xml | 39 - .../questionnaire-enableWhen-test-nested.xml | 38 - .../questionnaire-enableWhen-test-order.xml | 33 - .../questionnaire-enableWhen-test.xml | 32 - .../questionnaire-enableWhen-test3.xml | 31 - ...onnaireResponse-enableWhen-test-nested.xml | 88 - .../questionnaireResponse-enableWhen-test.xml | 26 - ...questionnaireResponse-enableWhen-test3.xml | 28 - .../reference-bad-logical.xml | 13 - .../reference-bad-typed.xml | 10 - .../validation-examples/reference-bad.xml | 9 - .../reference-good-contained.xml | 17 - .../reference-good-logical-1.xml | 12 - .../reference-good-logical.xml | 12 - .../reference-good-typed.xml | 10 - .../validation-examples/reference-good.xml | 9 - .../validation-examples/simpl-example.json | 103 - .../validation-examples/simpl-profile.json | 20139 ---------------- .../slice-by-polymorphic-type-profile.xml | 94 - .../slice-by-polymorphic-type.xml | 12 - .../slice-by-polymorphic-type2-profile.xml | 40 - .../slice-by-polymorphic-type2.xml | 16 - .../slice-profile-and-local-patient.xml | 13 - .../slice-profile-and-local-profile.xml | 56 - .../slicing-example-uk.profile.xml | 13313 ---------- .../slicing-example-uk.xml | 809 - .../slicing-types-by-string-profile.xml | 48 - .../slicing-types-by-string.xml | 17 - ...ing-extensions-and-constraints-example.xml | 15 - ...ing-extensions-and-constraints-profile.xml | 65 - .../validation-examples/synthea.json | 36 - .../validation-examples/uk-nhs-pat.xml | 97 - .../validation-examples/uk-nhs-sd-pat.xml | 15085 ------------ .../value-slicing-bad-1.xml | 68 - .../value-slicing-ok-1.xml | 68 - .../value-slicing-profile-open.xml | 66 - .../valueset-slicing-med-cs.xml | 40 - .../valueset-slicing-med-profile.xml | 146 - .../valueset-slicing-meds-bad.xml | 19 - .../valueset-slicing-meds.xml | 19 - pom.xml | 1 + 250 files changed, 87 insertions(+), 78163 deletions(-) delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-bundle.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/param-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/text-binary.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bad-bundle-reference-type.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bp-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bp.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-bad-empty.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-doc-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-ips-examples-bundle-01.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-local-refs.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/code-correct.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-display.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system-vs.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/contained.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-bad-sections.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-no-sections.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/document-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/document-section-library.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/document-structure.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/duplicate-security-tags.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/entry-resource-bad1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-bad.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-good.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-null.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.example.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.ttl delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/manifest.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/maxvalueset-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/medication-atc.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/message-infinite-loop.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-bad-onlydiastolic.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-localcode.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile-twocodesrequired.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-validationfails.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangemissing.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-wrongcode.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-base.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-ex.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-text.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-wrong.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-bad-wrongcode.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation-with-trailing-dot.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation102.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/observation301.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/params-reference.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-au-5.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-bad-gender.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-conform-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-duplicate.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-badmultiple.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-goodmultiple.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient-warning-maritalstatus.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient102.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient140.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/patient301.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/period-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-1.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-notprac.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad-empty.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-patient-au.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-bad-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-ok-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-closed.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-open.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-ordered.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/q-bp.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/q-ex.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/q.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/qr-ex.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/qr.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-invalid.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-nested.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-order.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test-nested.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test3.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-logical.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-typed.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-contained.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-typed.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-example.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-profile.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-patient.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-example.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/synthea.json delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-pat.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-sd-pat.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-bad-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-ok-1.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-profile-open.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-cs.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-profile.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds-bad.xml delete mode 100644 org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds.xml diff --git a/org.hl7.fhir.validation/pom.xml b/org.hl7.fhir.validation/pom.xml index 71f898669..d645e2e00 100644 --- a/org.hl7.fhir.validation/pom.xml +++ b/org.hl7.fhir.validation/pom.xml @@ -98,7 +98,15 @@ ucum 1.0.2 - + + + + org.hl7.fhir.testcases + fhir-test-cases + ${validator_test_case_version} + test + + diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java index 732eff94c..aa23377b2 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java @@ -1,46 +1,26 @@ package org.hl7.fhir.validation.tests; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Collections; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Map.Entry; - -import javax.xml.parsers.ParserConfigurationException; - +import com.google.common.base.Charsets; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import org.apache.commons.io.IOUtils; import org.apache.commons.lang3.NotImplementedException; -import org.hl7.fhir.convertors.VersionConvertor_10_40; import org.hl7.fhir.convertors.VersionConvertor_10_50; -import org.hl7.fhir.convertors.VersionConvertor_14_40; import org.hl7.fhir.convertors.VersionConvertor_14_50; -import org.hl7.fhir.convertors.VersionConvertor_30_40; import org.hl7.fhir.convertors.VersionConvertor_30_50; import org.hl7.fhir.convertors.VersionConvertor_40_50; -import org.hl7.fhir.r5.elementmodel.Manager; import org.hl7.fhir.exceptions.DefinitionException; import org.hl7.fhir.exceptions.FHIRException; import org.hl7.fhir.exceptions.FHIRFormatError; import org.hl7.fhir.exceptions.PathEngineException; import org.hl7.fhir.r5.conformance.ProfileUtilities; import org.hl7.fhir.r5.elementmodel.Element; +import org.hl7.fhir.r5.elementmodel.Manager; import org.hl7.fhir.r5.elementmodel.Manager.FhirFormat; import org.hl7.fhir.r5.elementmodel.ObjectConverter; import org.hl7.fhir.r5.formats.JsonParser; import org.hl7.fhir.r5.formats.XmlParser; -import org.hl7.fhir.r5.model.Base; -import org.hl7.fhir.r5.model.CodeSystem; -import org.hl7.fhir.r5.model.Constants; -import org.hl7.fhir.r5.model.FhirPublication; -import org.hl7.fhir.r5.model.Patient; -import org.hl7.fhir.r5.model.Resource; -import org.hl7.fhir.r5.model.StructureDefinition; -import org.hl7.fhir.r5.model.TypeDetails; -import org.hl7.fhir.r5.model.ValueSet; +import org.hl7.fhir.r5.model.*; import org.hl7.fhir.r5.test.utils.TestingUtilities; import org.hl7.fhir.r5.utils.FHIRPathEngine.IEvaluationContext; import org.hl7.fhir.r5.utils.IResourceValidator; @@ -48,29 +28,28 @@ import org.hl7.fhir.r5.utils.IResourceValidator.IValidatorResourceFetcher; import org.hl7.fhir.r5.utils.IResourceValidator.ReferenceValidationPolicy; import org.hl7.fhir.r5.validation.InstanceValidator; import org.hl7.fhir.r5.validation.ValidationEngine; -import org.hl7.fhir.utilities.TextFile; -import org.hl7.fhir.utilities.Utilities; import org.hl7.fhir.utilities.validation.ValidationMessage; import org.hl7.fhir.utilities.validation.ValidationMessage.IssueSeverity; -import org.hl7.fhir.validation.tests.utilities.TestUtilities; import org.junit.Assert; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; -import org.xml.sax.SAXException; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; +import java.io.*; +import java.util.*; +import java.util.Map.Entry; @RunWith(Parameterized.class) public class ValidationTestSuite implements IEvaluationContext, IValidatorResourceFetcher { @Parameters(name = "{index}: id {0}") public static Iterable data() throws IOException { - + + String contents = loadFileFromClasspath("manifest.json"); + Map examples = new HashMap(); - JsonObject json = (JsonObject) new com.google.gson.JsonParser().parse(TextFile.fileToString(TestUtilities.resourceNameToFile("validation-examples", "manifest.json"))); + JsonObject json = (JsonObject) new com.google.gson.JsonParser().parse(contents); json = json.getAsJsonObject("validator-tests"); for (Entry e : json.getAsJsonObject("Json").entrySet()) { examples.put("Json."+e.getKey(), e.getValue().getAsJsonObject()); @@ -129,8 +108,11 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour if (content.has("use-test") && !content.get("use-test").getAsBoolean()) return; - - String path = TestUtilities.resourceNameToFile("validation-examples", name.substring(name.indexOf(".")+1)); + + // FIXME + //String path = TestUtilities.resourceNameToFile("validation-examples", name.substring(name.indexOf(".")+1)); + String testCaseContent = loadFileFromClasspath(name.substring(name.indexOf(".")+1)); + InstanceValidator val = ve.getValidator(); if (content.has("allowed-extension-domain")) val.getExtensionDomains().add(content.get("allowed-extension-domain").getAsString()); @@ -143,49 +125,50 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour val.setValidationLanguage(null); val.setFetcher(this); if (content.has("questionnaire")) { - ve.getContext().cacheResource(loadResource(TestUtilities.resourceNameToFile("validation-examples", content.get("questionnaire").getAsString()), v)); + String filename = content.get("questionnaire").getAsString(); + String contents = loadFileFromClasspath(filename); + ve.getContext().cacheResource(loadResource(filename, contents, v)); } if (content.has("codesystems")) { for (JsonElement je : content.getAsJsonArray("codesystems")) { - String p = je.getAsString(); - System.out.println("CodeSystem: " + p); - String filename = TestUtilities.resourceNameToFile("validation-examples", p); - CodeSystem sd = (CodeSystem) loadResource(filename, v); + String filename = je.getAsString(); + String contents = loadFileFromClasspath(filename); + CodeSystem sd = (CodeSystem) loadResource(filename, contents, v); val.getContext().cacheResource(sd); } } if (content.has("profiles")) { for (JsonElement je : content.getAsJsonArray("profiles")) { - String p = je.getAsString(); - System.out.println("Profile: " + p); - String filename = TestUtilities.resourceNameToFile("validation-examples", p); - StructureDefinition sd = loadProfile(filename, v, messages); + String filename = je.getAsString(); + String contents = loadFileFromClasspath(filename); + StructureDefinition sd = loadProfile(filename, contents, v, messages); val.getContext().cacheResource(sd); } } List errors = new ArrayList(); if (name.startsWith("Json.")) - val.validate(null, errors, new FileInputStream(path), FhirFormat.JSON); + val.validate(null, errors, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.JSON); else - val.validate(null, errors, new FileInputStream(path), FhirFormat.XML); + val.validate(null, errors, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.XML); checkOutcomes(errors, content); if (content.has("profile")) { List errorsProfile = new ArrayList(); JsonObject profile = content.getAsJsonObject("profile"); - String filename = TestUtilities.resourceNameToFile("validation-examples", profile.get("source").getAsString()); + String filename = profile.get("source").getAsString(); + String contents = loadFileFromClasspath(filename); System.out.println("Name: " + name+" - profile : "+profile.get("source").getAsString()); v = content.has("version") ? content.get("version").getAsString() : Constants.VERSION; - StructureDefinition sd = loadProfile(filename, v, messages); + StructureDefinition sd = loadProfile(filename, contents, v, messages); if (name.startsWith("Json.")) - val.validate(null, errorsProfile, new FileInputStream(path), FhirFormat.JSON, sd); + val.validate(null, errorsProfile, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.JSON, sd); else - val.validate(null, errorsProfile, new FileInputStream(path), FhirFormat.XML, sd); + val.validate(null, errorsProfile, IOUtils.toInputStream(testCaseContent, Charsets.UTF_8), FhirFormat.XML, sd); checkOutcomes(errorsProfile, profile); } } - public StructureDefinition loadProfile(String filename, String v, List messages) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException { - StructureDefinition sd = (StructureDefinition) loadResource(filename, v); + public StructureDefinition loadProfile(String filename, String contents, String v, List messages) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException { + StructureDefinition sd = (StructureDefinition) loadResource(filename, contents, v); ProfileUtilities pu = new ProfileUtilities(TestingUtilities.context(), messages, null); if (!sd.hasSnapshot()) { StructureDefinition base = TestingUtilities.context().fetchResource(StructureDefinition.class, sd.getBaseDefinition()); @@ -204,33 +187,35 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour return sd; } - public Resource loadResource(String filename, String v) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException { - if (filename.contains(".json")) { - if (Constants.VERSION.equals(v) || "5.0".equals(v)) - return new JsonParser().parse(new FileInputStream(filename)); - else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v)) - return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.JsonParser().parse(new FileInputStream(filename)), false); - else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v)) - return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.JsonParser().parse(new FileInputStream(filename))); - else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v)) - return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.JsonParser().parse(new FileInputStream(filename))); - else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v)) - return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.JsonParser().parse(new FileInputStream(filename))); - else - throw new FHIRException("unknown version "+v); - } else { - if (Constants.VERSION.equals(v) || "5.0".equals(v)) - return new XmlParser().parse(new FileInputStream(filename)); - else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v)) - return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.XmlParser().parse(new FileInputStream(filename)), false); - else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v)) - return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.XmlParser().parse(new FileInputStream(filename))); - else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v)) - return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.XmlParser().parse(new FileInputStream(filename))); - else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v)) - return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.XmlParser().parse(new FileInputStream(filename))); - else - throw new FHIRException("unknown version "+v); + public Resource loadResource(String filename, String contents, String v) throws IOException, FHIRFormatError, FileNotFoundException, FHIRException, DefinitionException { + try (InputStream inputStream = IOUtils.toInputStream(contents, Charsets.UTF_8)) { + if (filename.contains(".json")) { + if (Constants.VERSION.equals(v) || "5.0".equals(v)) + return new JsonParser().parse(inputStream); + else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v)) + return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.JsonParser().parse(inputStream), false); + else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v)) + return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.JsonParser().parse(inputStream)); + else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v)) + return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.JsonParser().parse(inputStream)); + else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v)) + return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.JsonParser().parse(inputStream)); + else + throw new FHIRException("unknown version "+v); + } else { + if (Constants.VERSION.equals(v) || "5.0".equals(v)) + return new XmlParser().parse(inputStream); + else if (org.hl7.fhir.dstu3.model.Constants.VERSION.equals(v) || "3.0".equals(v)) + return VersionConvertor_30_50.convertResource(new org.hl7.fhir.dstu3.formats.XmlParser().parse(inputStream), false); + else if (org.hl7.fhir.dstu2016may.model.Constants.VERSION.equals(v) || "1.4".equals(v)) + return VersionConvertor_14_50.convertResource(new org.hl7.fhir.dstu2016may.formats.XmlParser().parse(inputStream)); + else if (org.hl7.fhir.dstu2.model.Constants.VERSION.equals(v) || "1.0".equals(v)) + return new VersionConvertor_10_50(null).convertResource(new org.hl7.fhir.dstu2.formats.XmlParser().parse(inputStream)); + else if (org.hl7.fhir.r4.model.Constants.VERSION.equals(v) || "4.0".equals(v)) + return VersionConvertor_40_50.convertResource(new org.hl7.fhir.r4.formats.XmlParser().parse(inputStream)); + else + throw new FHIRException("unknown version " + v); + } } } @@ -342,4 +327,16 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour return ve.getContext().fetchResource(ValueSet.class, url); } + private static String loadFileFromClasspath(String thePath) throws IOException { + String contents; + String classpath = "/org/hl7/fhir/testcases/validator/" + thePath; + try (InputStream inputStream = ValidationTestSuite.class.getResourceAsStream(classpath)) { + if (inputStream == null) { + throw new IOException("Can't find file on classpath: " + classpath); + } + contents = IOUtils.toString(inputStream, Charsets.UTF_8); + } + return contents; + } + } diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-bundle.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-bundle.xml deleted file mode 100644 index 4149a1784..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-bundle.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-1.xml deleted file mode 100644 index 73b4e4cfc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-1.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-2.xml deleted file mode 100644 index 9fadc8256..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/example-params-2.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/param-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/param-profile.xml deleted file mode 100644 index fc5114502..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/param-profile.xml +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/text-binary.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/text-binary.xml deleted file mode 100644 index 873160a3d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/azatadha/text-binary.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bad-bundle-reference-type.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bad-bundle-reference-type.xml deleted file mode 100644 index 9c4b97872..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bad-bundle-reference-type.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bp-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bp-profile.xml deleted file mode 100644 index 0319e60b7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bp-profile.xml +++ /dev/null @@ -1,4703 +0,0 @@ - - - - - - -
to do
-
- - - - - - - - - - - - - - - - - <status value="draft"/> - <experimental value="false"/> - <date value="2018-08-11"/> - <publisher value="Health Level Seven International (Orders and Observations Workgroup)"/> - <contact> - <telecom> - <system value="url"/> - <value value="http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations"/> - </telecom> - </contact> - <description value="FHIR Blood Pressure Profile"/> - <fhirVersion value="4.0.0"/> - <mapping> - <identity value="workflow"/> - <uri value="http://hl7.org/fhir/workflow"/> - <name value="Workflow Pattern"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <uri value="http://snomed.info/conceptdomain"/> - <name value="SNOMED CT Concept Domain Binding"/> - </mapping> - <mapping> - <identity value="v2"/> - <uri value="http://hl7.org/v2"/> - <name value="HL7 v2 Mapping"/> - </mapping> - <mapping> - <identity value="rim"/> - <uri value="http://hl7.org/v3"/> - <name value="RIM Mapping"/> - </mapping> - <mapping> - <identity value="w5"/> - <uri value="http://hl7.org/fhir/fivews"/> - <name value="FiveWs Pattern Mapping"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <uri value="http://snomed.org/attributebinding"/> - <name value="SNOMED CT Attribute Binding"/> - </mapping> - <kind value="resource"/> - <abstract value="false"/> - <type value="Observation"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/vitalsigns"/> - <derivation value="constraint"/> - <snapshot> - <element id="Observation"> - <path value="Observation"/> - <short value="FHIR Blood Pressure Profile"/> - <definition value="This profile defines how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure. This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic)."/> - <comment value="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 value="Vital Signs"/> - <alias value="Measurement"/> - <alias value="Results"/> - <alias value="Tests"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation"/> - <min value="0"/> - <max value="*"/> - </base> - <constraint> - <key value="dom-2"/> - <severity value="error"/> - <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> - <expression value="contained.contained.empty()"/> - <xpath value="not(parent::f:contained and f:contained)"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-4"/> - <severity value="error"/> - <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> - <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> - <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-3"/> - <severity value="error"/> - <human value="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 value="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 value="not(exists(for $contained in f:contained return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice"> - <valueBoolean value="true"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation"> - <valueMarkdown value="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."/> - </extension> - <key value="dom-6"/> - <severity value="warning"/> - <human value="A resource should have narrative for robust management"/> - <expression value="text.div.exists()"/> - <xpath value="exists(f:text/h:div)"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-5"/> - <severity value="error"/> - <human value="If a resource is contained in another resource, it SHALL NOT have a security label"/> - <expression value="contained.meta.security.empty()"/> - <xpath value="not(exists(f:contained/*/f:meta/f:security))"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="obs-7"/> - <severity value="error"/> - <human value="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="value.empty() or component.code.where( (coding.code = %resource.code.coding.code) and (coding.system = %resource.code.coding.system)).empty()"/> - <xpath value="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 value="Observation"/> - </constraint> - <constraint> - <key value="obs-6"/> - <severity value="error"/> - <human value="dataAbsentReason SHALL only be present if Observation.value[x] is not present"/> - <expression value="dataAbsentReason.empty() or value.empty()"/> - <xpath value="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))"/> - <source value="Observation"/> - </constraint> - <constraint> - <key value="vs-2"/> - <severity value="error"/> - <human value="If there is no component or hasMember element then either a value[x] or a data absent reason must be present."/> - <expression value="(component.empty() and hasMember.empty()) implies (dataAbsentReason or value)"/> - <xpath value="f:component or f:memberOF or f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"/> - <source value="Observation"/> - </constraint> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="Entity. Role, or Act"/> - </mapping> - <mapping> - <identity value="workflow"/> - <map value="Event"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 363787002 |Observable entity|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Observation[classCode=OBS, moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.id"> - <path value="Observation.id"/> - <short value="Logical id of this artifact"/> - <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="id"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - </element> - <element id="Observation.meta"> - <path value="Observation.meta"/> - <short value="Metadata about the resource"/> - <definition value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.meta"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Meta"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - </element> - <element id="Observation.implicitRules"> - <path value="Observation.implicitRules"/> - <short value="A set of rules under which this content was created"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.implicitRules"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <isModifier value="true"/> - <isModifierReason value="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 value="true"/> - </element> - <element id="Observation.language"> - <path value="Observation.language"/> - <short value="Language of the resource content"/> - <definition value="The base language in which the resource is written."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.language"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueCanonical value="http://hl7.org/fhir/ValueSet/all-languages"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Language"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="preferred"/> - <description value="A human language."/> - <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> - </binding> - </element> - <element id="Observation.text"> - <path value="Observation.text"/> - <short value="Text summary of the resource, for human interpretation"/> - <definition value="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 value="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 value="narrative"/> - <alias value="html"/> - <alias value="xhtml"/> - <alias value="display"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Narrative"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="Act.text?"/> - </mapping> - </element> - <element id="Observation.contained"> - <path value="Observation.contained"/> - <short value="Contained, inline Resources"/> - <definition value="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 value="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 value="inline resources"/> - <alias value="anonymous resources"/> - <alias value="contained resources"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.contained"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Resource"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.extension"> - <path value="Observation.extension"/> - <short value="Additional content defined by implementations"/> - <definition value="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 value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.modifierExtension"> - <path value="Observation.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition value="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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <requirements value="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 value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.identifier"> - <path value="Observation.identifier"/> - <short value="Business Identifier for observation"/> - <definition value="A unique identifier assigned to this observation."/> - <requirements value="Allows observations to be distinguished and referenced."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.identifier"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.identifier"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="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."/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - </element> - <element id="Observation.basedOn"> - <path value="Observation.basedOn"/> - <short value="Fulfills plan, proposal or order"/> - <definition value="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."/> - <requirements value="Allows tracing of authorization for the event and tracking whether proposals/recommendations were acted upon."/> - <alias value="Fulfills"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.basedOn"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/CarePlan"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceRequest"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationRequest"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/NutritionOrder"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/ServiceRequest"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.basedOn"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="ORC"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".inboundRelationship[typeCode=COMP].source[moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.partOf"> - <path value="Observation.partOf"/> - <short value="Part of referenced event"/> - <definition value="A larger event of which this particular Observation is a component or step. For example, an observation as part of a procedure."/> - <comment value="To link an Observation to an Encounter use `encounter`. See the [Notes](observation.html#obsgrouping) below for guidance on referencing another Observation."/> - <alias value="Container"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.partOf"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationAdministration"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationDispense"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MedicationStatement"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.partOf"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Varies by domain"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".outboundRelationship[typeCode=FLFS].target"/> - </mapping> - </element> - <element id="Observation.status"> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint"> - <valueString value="default: final"/> - </extension> - <path value="Observation.status"/> - <short value="registered | preliminary | final | amended +"/> - <definition value="The status of the result value."/> - <comment value="This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid."/> - <requirements value="Need to track the status of individual results. Some results are finalized before the whole report is finalized."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.status"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <mustSupport value="true"/> - <isModifier value="true"/> - <isModifierReason value="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 value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Status"/> - </extension> - <strength value="required"/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-status|4.0.0"/> - </binding> - <mapping> - <identity value="workflow"/> - <map value="Event.status"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.status"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 445584004 |Report by finality status|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="status Amended & Final are differentiated by whether it is the subject of a ControlAct event with a type of "revise""/> - </mapping> - </element> - <element id="Observation.category"> - <path value="Observation.category"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="coding.code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="coding.system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Classification of type of observation"/> - <definition value="A code that classifies the general type of observation being made."/> - <comment value="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 value="Used for filtering what observations are retrieved and displayed."/> - <min value="1"/> - <max value="*"/> - <base> - <path value="Observation.category"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationCategory"/> - </extension> - <strength value="preferred"/> - <description value="Codes for high level observation categories."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-category"/> - </binding> - <mapping> - <identity value="w5"/> - <map value="FiveWs.class"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> - </mapping> - </element> - <element id="Observation.category:VSCat"> - <path value="Observation.category"/> - <sliceName value="VSCat"/> - <short value="Classification of type of observation"/> - <definition value="A code that classifies the general type of observation being made."/> - <comment value="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 value="Used for filtering what observations are retrieved and displayed."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.category"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationCategory"/> - </extension> - <strength value="preferred"/> - <description value="Codes for high level observation categories."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-category"/> - </binding> - <mapping> - <identity value="w5"/> - <map value="FiveWs.class"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".outboundRelationship[typeCode="COMP].target[classCode="LIST", moodCode="EVN"].code"/> - </mapping> - </element> - <element id="Observation.category:VSCat.id"> - <path value="Observation.category.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.category:VSCat.extension"> - <path value="Observation.category.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding"> - <path value="Observation.category.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="1"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.id"> - <path value="Observation.category.coding.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.extension"> - <path value="Observation.category.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.system"> - <path value="Observation.category.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.version"> - <path value="Observation.category.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.code"> - <path value="Observation.category.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="vital-signs"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.category.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Observation.category:VSCat.coding.userSelected"> - <path value="Observation.category.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Observation.category:VSCat.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.category.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Observation.code"> - <path value="Observation.code"/> - <short value="Blood Pressure"/> - <definition value="Blood Pressure."/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - <requirements value="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 value="Name"/> - <alias value="Test"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.code"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSigns"/> - </extension> - <strength value="extensible"/> - <description value="This identifies the vital sign result type."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-vitalsignresult"/> - </binding> - <mapping> - <identity value="workflow"/> - <map value="Event.code"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.what[x]"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="116680003 |Is a|"/> - </mapping> - </element> - <element id="Observation.code.id"> - <path value="Observation.code.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.code.extension"> - <path value="Observation.code.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.code.coding"> - <path value="Observation.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode"> - <path value="Observation.code.coding"/> - <sliceName value="BPCode"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.id"> - <path value="Observation.code.coding.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.extension"> - <path value="Observation.code.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.system"> - <path value="Observation.code.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.version"> - <path value="Observation.code.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.code"> - <path value="Observation.code.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="85354-9"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.code.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Observation.code.coding:BPCode.userSelected"> - <path value="Observation.code.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Observation.code.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.code.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Observation.subject"> - <path value="Observation.subject"/> - <short value="Who and/or what the observation is about"/> - <definition value="The patient, or group of patients, location, or device this observation is about and into whose record the observation is placed. If the actual focus of the observation is different from the subject (or a sample of, part, or region of the subject), the `focus` element or the `code` itself specifies the actual focus of the observation."/> - <comment value="One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated."/> - <requirements value="Observations have no value if you don't know who or what they're about."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.subject"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.subject"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.subject[x]"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=RTGT] "/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.subject"/> - </mapping> - </element> - <element id="Observation.focus"> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> - <valueCode value="trial-use"/> - </extension> - <path value="Observation.focus"/> - <short value="What the observation is about, when it is not about the subject of record"/> - <definition value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.focus"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Resource"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="w5"/> - <map value="FiveWs.subject[x]"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=SBJ]"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.subject"/> - </mapping> - </element> - <element id="Observation.encounter"> - <path value="Observation.encounter"/> - <short value="Healthcare event during which this observation is made"/> - <definition value="The healthcare event (e.g. a patient and healthcare provider interaction) during which this observation is made."/> - <comment value="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 value="For some observations it may be important to know the link between an observation and a particular encounter."/> - <alias value="Context"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.encounter"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Encounter"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.context"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.context"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PV1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.effective[x]"> - <path value="Observation.effective[x]"/> - <short value="Often just a dateTime for Vital Signs"/> - <definition value="Often just a dateTime for Vital Signs."/> - <comment value="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 value="Knowing when an observation was deemed true is important to its relevance as well as determining trends."/> - <alias value="Occurrence"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.effective[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <type> - <code value="Period"/> - </type> - <constraint> - <key value="vs-1"/> - <severity value="error"/> - <human value="if Observation.effective[x] is dateTime and has a value then that value shall be precise to the day"/> - <expression value="($this as dateTime).toString().length() >= 8"/> - <xpath value="f:effectiveDateTime[matches(@value, '^\d{4}-\d{2}-\d{2}')]"/> - </constraint> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.occurrence[x]"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.done[x]"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="effectiveTime"/> - </mapping> - </element> - <element id="Observation.issued"> - <path value="Observation.issued"/> - <short value="Date/Time this version was made available"/> - <definition value="The date and time this version of the observation was made available to providers, typically after the results have been reviewed and verified."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Observation.issued"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="instant"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="w5"/> - <map value="FiveWs.recorded"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=AUT].time"/> - </mapping> - </element> - <element id="Observation.performer"> - <path value="Observation.performer"/> - <short value="Who is responsible for the observation"/> - <definition value="Who was responsible for asserting the observed value as "true"."/> - <requirements value="May give a degree of confidence in the observation and also indicates where follow-up questions should be directed."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.performer"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="workflow"/> - <map value="Event.performer.actor"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="FiveWs.actor"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="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'"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=PRF]"/> - </mapping> - </element> - <element id="Observation.value[x]"> - <path value="Observation.value[x]"/> - <short value="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 value="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 value="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 value="9. SHALL contain exactly one [1..1] value with @xsi:type="PQ" (CONF:7305)."/> - <min value="0"/> - <max value="0"/> - <base> - <path value="Observation.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - </type> - <type> - <code value="CodeableConcept"/> - </type> - <type> - <code value="string"/> - </type> - <type> - <code value="boolean"/> - </type> - <type> - <code value="integer"/> - </type> - <type> - <code value="Range"/> - </type> - <type> - <code value="Ratio"/> - </type> - <type> - <code value="SampledData"/> - </type> - <type> - <code value="time"/> - </type> - <type> - <code value="dateTime"/> - </type> - <type> - <code value="Period"/> - </type> - <condition value="obs-7"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="sct-concept"/> - <map value="< 441742003 |Evaluation finding|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX.2, OBX.5, OBX.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363714003 |Interprets|"/> - </mapping> - </element> - <element id="Observation.dataAbsentReason"> - <path value="Observation.dataAbsentReason"/> - <short value="Why the result is missing"/> - <definition value="Provides a reason why the expected value in the element Observation.value[x] is missing."/> - <comment value="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". The 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 value="For many results it is necessary to handle exceptional values in measurements."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.dataAbsentReason"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="obs-6"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationValueAbsentReason"/> - </extension> - <strength value="extensible"/> - <description value="Codes specifying why the result (`Observation.value[x]`) is missing."/> - <valueSet value="http://hl7.org/fhir/ValueSet/data-absent-reason"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value.nullFlavor"/> - </mapping> - </element> - <element id="Observation.interpretation"> - <path value="Observation.interpretation"/> - <short value="High, low, normal, etc."/> - <definition value="A categorical assessment of an observation value. For example, high, low, normal."/> - <comment value="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 value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result."/> - <alias value="Abnormal Flag"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.interpretation"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationInterpretation"/> - </extension> - <strength value="extensible"/> - <description value="Codes identifying interpretations of observations."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-interpretation"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363713009 |Has interpretation|"/> - </mapping> - </element> - <element id="Observation.note"> - <path value="Observation.note"/> - <short value="Comments about the observation"/> - <definition value="Comments about the observation or the results."/> - <comment value="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 value="Need to be able to provide free text additional information."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.note"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Annotation"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="subjectOf.observationEvent[code="annotation"].value"/> - </mapping> - </element> - <element id="Observation.bodySite"> - <path value="Observation.bodySite"/> - <short value="Observed body part"/> - <definition value="Indicates the site on the subject's body where the observation was made (i.e. the target site)."/> - <comment value="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. If 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 value="0"/> - <max value="1"/> - <base> - <path value="Observation.bodySite"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="BodySite"/> - </extension> - <strength value="example"/> - <description value="Codes describing anatomical locations. May include laterality."/> - <valueSet value="http://hl7.org/fhir/ValueSet/body-site"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 123037004 |Body structure|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-20"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="targetSiteCode"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="718497002 |Inherent location|"/> - </mapping> - </element> - <element id="Observation.method"> - <path value="Observation.method"/> - <short value="How it was done"/> - <definition value="Indicates the mechanism used to perform the observation."/> - <comment value="Only used if not implicit in code for Observation.code."/> - <requirements value="In some cases, method can impact results and is thus used for determining whether results can be compared or determining significance of results."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.method"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationMethod"/> - </extension> - <strength value="example"/> - <description value="Methods for simple observations."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-methods"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="OBX-17"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="methodCode"/> - </mapping> - </element> - <element id="Observation.specimen"> - <path value="Observation.specimen"/> - <short value="Specimen used for this observation"/> - <definition value="The specimen that was used when this observation was made."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Observation.specimen"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Specimen"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="sct-concept"/> - <map value="< 123038009 |Specimen|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="SPM segment"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=SPC].specimen"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="704319004 |Inherent in|"/> - </mapping> - </element> - <element id="Observation.device"> - <path value="Observation.device"/> - <short value="(Measurement) Device"/> - <definition value="The device used to generate the observation data."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Observation.device"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/DeviceMetric"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="sct-concept"/> - <map value="< 49062001 |Device|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-17 / PRT -10"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="participation[typeCode=DEV]"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="424226004 |Using device|"/> - </mapping> - </element> - <element id="Observation.referenceRange"> - <path value="Observation.referenceRange"/> - <short value="Provides guide for interpretation"/> - <definition value="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 value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.referenceRange"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() or (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="obs-3"/> - <severity value="error"/> - <human value="Must have at least a low or a high or text"/> - <expression value="low.exists() or high.exists() or text.exists()"/> - <xpath value="(exists(f:low) or exists(f:high)or exists(f:text))"/> - </constraint> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.referenceRange.id"> - <path value="Observation.referenceRange.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.referenceRange.extension"> - <path value="Observation.referenceRange.extension"/> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.referenceRange.modifierExtension"> - <path value="Observation.referenceRange.modifierExtension"/> - <short value="Extensions that cannot be ignored even if unrecognized"/> - <definition value="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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <requirements value="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 value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.referenceRange.low"> - <path value="Observation.referenceRange.low"/> - <short value="Low Range, if relevant"/> - <definition value="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)."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.referenceRange.low"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/> - </type> - <condition value="obs-3"/> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX-7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value:IVL_PQ.low"/> - </mapping> - </element> - <element id="Observation.referenceRange.high"> - <path value="Observation.referenceRange.high"/> - <short value="High Range, if relevant"/> - <definition value="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)."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.referenceRange.high"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - <profile value="http://hl7.org/fhir/StructureDefinition/SimpleQuantity"/> - </type> - <condition value="obs-3"/> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX-7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value:IVL_PQ.high"/> - </mapping> - </element> - <element id="Observation.referenceRange.type"> - <path value="Observation.referenceRange.type"/> - <short value="Reference range qualifier"/> - <definition value="Codes to indicate the what part of the targeted reference population it applies to. For example, the normal or therapeutic range."/> - <comment value="This SHOULD be populated if there is more than one range. If this element is not present then the normal range is assumed."/> - <requirements value="Need to be able to say what kind of reference range this is - normal, recommended, therapeutic, etc., - for proper interpretation."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.referenceRange.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationRangeMeaning"/> - </extension> - <strength value="preferred"/> - <description value="Code for the meaning of a reference range."/> - <valueSet value="http://hl7.org/fhir/ValueSet/referencerange-meaning"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values| OR < 365860008 |General clinical state finding| OR < 250171008 |Clinical history or observation findings| OR < 415229000 |Racial group| OR < 365400002 |Finding of puberty stage| OR < 443938003 |Procedure carried out on subject|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-10"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - </element> - <element id="Observation.referenceRange.appliesTo"> - <path value="Observation.referenceRange.appliesTo"/> - <short value="Reference range population"/> - <definition value="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 value="This SHOULD be populated if there is more than one range. If this element is not present then the normal population is assumed."/> - <requirements value="Need to be able to identify the target population for proper interpretation."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.referenceRange.appliesTo"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationRangeType"/> - </extension> - <strength value="example"/> - <description value="Codes identifying the population the reference range applies to."/> - <valueSet value="http://hl7.org/fhir/ValueSet/referencerange-appliesto"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values| OR < 365860008 |General clinical state finding| OR < 250171008 |Clinical history or observation findings| OR < 415229000 |Racial group| OR < 365400002 |Finding of puberty stage| OR < 443938003 |Procedure carried out on subject|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-10"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - </element> - <element id="Observation.referenceRange.age"> - <path value="Observation.referenceRange.age"/> - <short value="Applicable age range, if relevant"/> - <definition value="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."/> - <requirements value="Some analytes vary greatly over age."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.referenceRange.age"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Range"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="outboundRelationship[typeCode=PRCN].targetObservationCriterion[code="age"].value"/> - </mapping> - </element> - <element id="Observation.referenceRange.text"> - <path value="Observation.referenceRange.text"/> - <short value="Text based reference range in an observation"/> - <definition value="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"."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.referenceRange.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX-7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value:ST"/> - </mapping> - </element> - <element id="Observation.hasMember"> - <path value="Observation.hasMember"/> - <short value="Used when reporting vital signs panel components"/> - <definition value="Used when reporting vital signs panel components."/> - <comment value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.hasMember"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/vitalsigns"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Relationships established by OBX-4 usage"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outBoundRelationship"/> - </mapping> - </element> - <element id="Observation.derivedFrom"> - <path value="Observation.derivedFrom"/> - <short value="Related measurements the observation is made from"/> - <definition value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.derivedFrom"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/DocumentReference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/ImagingStudy"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Media"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/MolecularSequence"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/vitalsigns"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Relationships established by OBX-4 usage"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".targetObservation"/> - </mapping> - </element> - <element id="Observation.component"> - <path value="Observation.component"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code.coding.code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="code.coding.system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Used when reporting systolic and diastolic blood pressure."/> - <definition value="Used when reporting systolic and diastolic blood pressure."/> - <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below."/> - <requirements value="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 value="2"/> - <max value="*"/> - <base> - <path value="Observation.component"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() or (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="vs-3"/> - <severity value="error"/> - <human value="If there is no a value a data absent reason must be present"/> - <expression value="value.exists() or dataAbsentReason.exists()"/> - <xpath value="f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"/> - <source value="Observation.component"/> - </constraint> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="containment by OBX-4?"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outBoundRelationship[typeCode=COMP]"/> - </mapping> - </element> - <element id="Observation.component.id"> - <path value="Observation.component.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component.extension"> - <path value="Observation.component.extension"/> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component.modifierExtension"> - <path value="Observation.component.modifierExtension"/> - <short value="Extensions that cannot be ignored even if unrecognized"/> - <definition value="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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <requirements value="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 value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.component.code"> - <path value="Observation.component.code"/> - <short value="Type of component observation (code / type)"/> - <definition value="Describes what was observed. Sometimes this is called the observation "code"."/> - <comment value="*All* code-value and component.code-component.value pairs need to be taken into account to correctly understand the meaning of the observation."/> - <requirements value="Knowing what kind of observation is being made is essential to understanding the observation."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.component.code"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSigns"/> - </extension> - <strength value="extensible"/> - <description value="This identifies the vital sign result type."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-vitalsignresult"/> - </binding> - <mapping> - <identity value="w5"/> - <map value="FiveWs.what[x]"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - </element> - <element id="Observation.component.value[x]"> - <path value="Observation.component.value[x]"/> - <short value="Vital Sign Value recorded with UCUM"/> - <definition value="Vital Sign Value recorded with UCUM."/> - <comment value="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 value="9. SHALL contain exactly one [1..1] value with @xsi:type="PQ" (CONF:7305)."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - </type> - <type> - <code value="CodeableConcept"/> - </type> - <type> - <code value="string"/> - </type> - <type> - <code value="boolean"/> - </type> - <type> - <code value="integer"/> - </type> - <type> - <code value="Range"/> - </type> - <type> - <code value="Ratio"/> - </type> - <type> - <code value="SampledData"/> - </type> - <type> - <code value="time"/> - </type> - <type> - <code value="dateTime"/> - </type> - <type> - <code value="Period"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSignsUnits"/> - </extension> - <strength value="required"/> - <description value="Common UCUM units for recording Vital Signs."/> - <valueSet value="http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.0"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="363714003 |Interprets| < 441742003 |Evaluation finding|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX.2, OBX.5, OBX.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363714003 |Interprets|"/> - </mapping> - </element> - <element id="Observation.component.dataAbsentReason"> - <path value="Observation.component.dataAbsentReason"/> - <short value="Why the component result is missing"/> - <definition value="Provides a reason why the expected value in the element Observation.component.value[x] is missing."/> - <comment value=""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". The 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 value="For many results it is necessary to handle exceptional values in measurements."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.dataAbsentReason"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="obs-6"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationValueAbsentReason"/> - </extension> - <strength value="extensible"/> - <description value="Codes specifying why the result (`Observation.value[x]`) is missing."/> - <valueSet value="http://hl7.org/fhir/ValueSet/data-absent-reason"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value.nullFlavor"/> - </mapping> - </element> - <element id="Observation.component.interpretation"> - <path value="Observation.component.interpretation"/> - <short value="High, low, normal, etc."/> - <definition value="A categorical assessment of an observation value. For example, high, low, normal."/> - <comment value="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 value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result."/> - <alias value="Abnormal Flag"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.interpretation"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationInterpretation"/> - </extension> - <strength value="extensible"/> - <description value="Codes identifying interpretations of observations."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-interpretation"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363713009 |Has interpretation|"/> - </mapping> - </element> - <element id="Observation.component.referenceRange"> - <path value="Observation.component.referenceRange"/> - <short value="Provides guide for interpretation of component result"/> - <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range."/> - <comment value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.referenceRange"/> - <min value="0"/> - <max value="*"/> - </base> - <contentReference value="#Observation.referenceRange"/> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP"> - <path value="Observation.component"/> - <sliceName value="SystolicBP"/> - <short value="Used when reporting systolic and diastolic blood pressure."/> - <definition value="Used when reporting systolic and diastolic blood pressure."/> - <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below."/> - <requirements value="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 value="1"/> - <max value="1"/> - <base> - <path value="Observation.component"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() or (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="vs-3"/> - <severity value="error"/> - <human value="If there is no a value a data absent reason must be present"/> - <expression value="value.exists() or dataAbsentReason.exists()"/> - <xpath value="f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"/> - <source value="Observation.component"/> - </constraint> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="containment by OBX-4?"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outBoundRelationship[typeCode=COMP]"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.id"> - <path value="Observation.component.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.extension"> - <path value="Observation.component.extension"/> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.modifierExtension"> - <path value="Observation.component.modifierExtension"/> - <short value="Extensions that cannot be ignored even if unrecognized"/> - <definition value="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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <requirements value="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 value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code"> - <path value="Observation.component.code"/> - <short value="Type of component observation (code / type)"/> - <definition value="Describes what was observed. Sometimes this is called the observation "code"."/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - <requirements value="Knowing what kind of observation is being made is essential to understanding the observation."/> - <alias value="Component Test"/> - <alias value="Component Name"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.component.code"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSigns"/> - </extension> - <strength value="extensible"/> - <description value="This identifies the vital sign result type."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-vitalsignresult"/> - </binding> - <mapping> - <identity value="w5"/> - <map value="FiveWs.what[x]"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.id"> - <path value="Observation.component.code.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.extension"> - <path value="Observation.component.code.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding"> - <path value="Observation.component.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Systolic Blood Pressure"/> - <definition value="Systolic Blood Pressure."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode"> - <path value="Observation.component.code.coding"/> - <sliceName value="SBPCode"/> - <short value="Systolic Blood Pressure"/> - <definition value="Systolic Blood Pressure."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.id"> - <path value="Observation.component.code.coding.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.extension"> - <path value="Observation.component.code.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.system"> - <path value="Observation.component.code.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.version"> - <path value="Observation.component.code.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.code"> - <path value="Observation.component.code.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="8480-6"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.code.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.userSelected"> - <path value="Observation.component.code.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.code.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.code.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity"/> - <short value="Vital Sign Value recorded with UCUM"/> - <definition value="Vital Sign Value recorded with UCUM."/> - <comment value="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 value="9. SHALL contain exactly one [1..1] value with @xsi:type="PQ" (CONF:7305)."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSignsUnits"/> - </extension> - <strength value="required"/> - <description value="Common UCUM units for recording Vital Signs."/> - <valueSet value="http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.0"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="363714003 |Interprets| < 441742003 |Evaluation finding|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX.2, OBX.5, OBX.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363714003 |Interprets|"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.id"> - <path value="Observation.component.valueQuantity.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.extension"> - <path value="Observation.component.valueQuantity.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value"/> - <short value="Numerical value (with implicit precision)"/> - <definition value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/> - <comment value="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="Precision is handled implicitly in almost all cases of measurement."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="decimal"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="SN.2 / CQ - N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.comparator"> - <path value="Observation.component.valueQuantity.comparator"/> - <short value="< | <= | >= | > - how to understand the value"/> - <definition value="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."/> - <requirements value="Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Quantity.comparator"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <meaningWhenMissing value="If there is no comparator, then there is no modification of the value"/> - <isModifier value="true"/> - <isModifierReason value="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 value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="QuantityComparator"/> - </extension> - <strength value="required"/> - <description value="How the Quantity should be understood and represented."/> - <valueSet value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.0"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="SN.1 / CQ.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL properties"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.unit"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.valueQuantity.unit"/> - <short value="Unit representation"/> - <definition value="A human-readable form of the unit."/> - <requirements value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.unit"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.unit"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system"/> - <short value="System that defines coded unit form"/> - <definition value="The identification of the system that provides the coded form of the unit."/> - <requirements value="Need to know the system that defines the coded form of the unit."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://unitsofmeasure.org"/> - <condition value="qty-3"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CO.codeSystem, PQ.translation.codeSystem"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code"/> - <short value="Coded responses from the common UCUM units for vital signs value set."/> - <definition value="Coded responses from the common UCUM units for vital signs value set."/> - <comment value="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 value="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 value="1"/> - <max value="1"/> - <base> - <path value="Quantity.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="mm[Hg]"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.code, MO.currency, PQ.translation.code"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.dataAbsentReason"> - <path value="Observation.component.dataAbsentReason"/> - <short value="Why the component result is missing"/> - <definition value="Provides a reason why the expected value in the element Observation.component.value[x] is missing."/> - <comment value=""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". The 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 value="For many results it is necessary to handle exceptional values in measurements."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.dataAbsentReason"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="obs-6"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationValueAbsentReason"/> - </extension> - <strength value="extensible"/> - <description value="Codes specifying why the result (`Observation.value[x]`) is missing."/> - <valueSet value="http://hl7.org/fhir/ValueSet/data-absent-reason"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value.nullFlavor"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.interpretation"> - <path value="Observation.component.interpretation"/> - <short value="High, low, normal, etc."/> - <definition value="A categorical assessment of an observation value. For example, high, low, normal."/> - <comment value="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 value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result."/> - <alias value="Abnormal Flag"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.interpretation"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationInterpretation"/> - </extension> - <strength value="extensible"/> - <description value="Codes identifying interpretations of observations."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-interpretation"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363713009 |Has interpretation|"/> - </mapping> - </element> - <element id="Observation.component:SystolicBP.referenceRange"> - <path value="Observation.component.referenceRange"/> - <short value="Provides guide for interpretation of component result"/> - <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range."/> - <comment value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.referenceRange"/> - <min value="0"/> - <max value="*"/> - </base> - <contentReference value="#Observation.referenceRange"/> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component"/> - <sliceName value="DiastolicBP"/> - <short value="Used when reporting systolic and diastolic blood pressure."/> - <definition value="Used when reporting systolic and diastolic blood pressure."/> - <comment value="For a discussion on the ways Observations can be assembled in groups together see [Notes](observation.html#notes) below."/> - <requirements value="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 value="1"/> - <max value="1"/> - <base> - <path value="Observation.component"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() or (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="vs-3"/> - <severity value="error"/> - <human value="If there is no a value a data absent reason must be present"/> - <expression value="value.exists() or dataAbsentReason.exists()"/> - <xpath value="f:*[starts-with(local-name(.), 'value')] or f:dataAbsentReason"/> - <source value="Observation.component"/> - </constraint> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="containment by OBX-4?"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outBoundRelationship[typeCode=COMP]"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.id"> - <path value="Observation.component.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.extension"> - <path value="Observation.component.extension"/> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.modifierExtension"> - <path value="Observation.component.modifierExtension"/> - <short value="Extensions that cannot be ignored even if unrecognized"/> - <definition value="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. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <requirements value="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 value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isModifierReason value="Modifier extensions are expected to modify the meaning or interpretation of the element that contains them"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code"> - <path value="Observation.component.code"/> - <short value="Type of component observation (code / type)"/> - <definition value="Describes what was observed. Sometimes this is called the observation "code"."/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - <requirements value="Knowing what kind of observation is being made is essential to understanding the observation."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Observation.component.code"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSigns"/> - </extension> - <strength value="extensible"/> - <description value="This identifies the vital sign result type."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-vitalsignresult"/> - </binding> - <mapping> - <identity value="w5"/> - <map value="FiveWs.what[x]"/> - </mapping> - <mapping> - <identity value="sct-concept"/> - <map value="< 363787002 |Observable entity| OR < 386053000 |Evaluation procedure|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.id"> - <path value="Observation.component.code.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.extension"> - <path value="Observation.component.code.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding"> - <path value="Observation.component.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Diastolic Blood Pressure"/> - <definition value="Diastolic Blood Pressure."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode"> - <path value="Observation.component.code.coding"/> - <sliceName value="DBPCode"/> - <short value="Diastolic Blood Pressure"/> - <definition value="Diastolic Blood Pressure."/> - <comment value="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 value="Allows for alternative encodings within a code system, and translations to other code systems."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.id"> - <path value="Observation.component.code.coding.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.extension"> - <path value="Observation.component.code.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.system"> - <path value="Observation.component.code.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.version"> - <path value="Observation.component.code.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.code"> - <path value="Observation.component.code.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="8462-4"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.code.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.userSelected"> - <path value="Observation.component.code.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.code.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.code.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity"/> - <short value="Vital Sign Value recorded with UCUM"/> - <definition value="Vital Sign Value recorded with UCUM."/> - <comment value="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 value="9. SHALL contain exactly one [1..1] value with @xsi:type="PQ" (CONF:7305)."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Quantity"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="VitalSignsUnits"/> - </extension> - <strength value="required"/> - <description value="Common UCUM units for recording Vital Signs."/> - <valueSet value="http://hl7.org/fhir/ValueSet/ucum-vitals-common|4.0.0"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="363714003 |Interprets| < 441742003 |Evaluation finding|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX.2, OBX.5, OBX.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363714003 |Interprets|"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.id"> - <path value="Observation.component.valueQuantity.id"/> - <representation value="xmlAttr"/> - <short value="Unique id for inter-element referencing"/> - <definition value="Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.extension"> - <path value="Observation.component.valueQuantity.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value"/> - <short value="Numerical value (with implicit precision)"/> - <definition value="The value of the measured amount. The value includes an implicit precision in the presentation of the value."/> - <comment value="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="Precision is handled implicitly in almost all cases of measurement."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="decimal"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="SN.2 / CQ - N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.value, CO.value, MO.value, IVL.high or IVL.low depending on the value"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.comparator"> - <path value="Observation.component.valueQuantity.comparator"/> - <short value="< | <= | >= | > - how to understand the value"/> - <definition value="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."/> - <requirements value="Need a framework for handling measures where the value is <5ug/L or >400mg/L due to the limitations of measuring methodology."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Quantity.comparator"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <meaningWhenMissing value="If there is no comparator, then there is no modification of the value"/> - <isModifier value="true"/> - <isModifierReason value="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 value="true"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="QuantityComparator"/> - </extension> - <strength value="required"/> - <description value="How the Quantity should be understood and represented."/> - <valueSet value="http://hl7.org/fhir/ValueSet/quantity-comparator|4.0.0"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="SN.1 / CQ.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL properties"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.unit"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Observation.component.valueQuantity.unit"/> - <short value="Unit representation"/> - <definition value="A human-readable form of the unit."/> - <requirements value="There are many representations for units of measure and in many contexts, particular representations are fixed and required. I.e. mcg for micrograms."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.unit"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.unit"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system"/> - <short value="System that defines coded unit form"/> - <definition value="The identification of the system that provides the coded form of the unit."/> - <requirements value="Need to know the system that defines the coded form of the unit."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Quantity.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://unitsofmeasure.org"/> - <condition value="qty-3"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CO.codeSystem, PQ.translation.codeSystem"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code"/> - <short value="Coded responses from the common UCUM units for vital signs value set."/> - <definition value="Coded responses from the common UCUM units for vital signs value set."/> - <comment value="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 value="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 value="1"/> - <max value="1"/> - <base> - <path value="Quantity.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="mm[Hg]"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="(see OBX.6 etc.) / CQ.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="PQ.code, MO.currency, PQ.translation.code"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.dataAbsentReason"> - <path value="Observation.component.dataAbsentReason"/> - <short value="Why the component result is missing"/> - <definition value="Provides a reason why the expected value in the element Observation.component.value[x] is missing."/> - <comment value=""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". The 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 value="For many results it is necessary to handle exceptional values in measurements."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Observation.component.dataAbsentReason"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="obs-6"/> - <mustSupport value="true"/> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationValueAbsentReason"/> - </extension> - <strength value="extensible"/> - <description value="Codes specifying why the result (`Observation.value[x]`) is missing."/> - <valueSet value="http://hl7.org/fhir/ValueSet/data-absent-reason"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="value.nullFlavor"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.interpretation"> - <path value="Observation.component.interpretation"/> - <short value="High, low, normal, etc."/> - <definition value="A categorical assessment of an observation value. For example, high, low, normal."/> - <comment value="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 value="For some results, particularly numeric results, an interpretation is necessary to fully understand the significance of a result."/> - <alias value="Abnormal Flag"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.interpretation"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isModifier value="false"/> - <isSummary value="false"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ObservationInterpretation"/> - </extension> - <strength value="extensible"/> - <description value="Codes identifying interpretations of observations."/> - <valueSet value="http://hl7.org/fhir/ValueSet/observation-interpretation"/> - </binding> - <mapping> - <identity value="sct-concept"/> - <map value="< 260245000 |Findings values|"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="interpretationCode"/> - </mapping> - <mapping> - <identity value="sct-attr"/> - <map value="363713009 |Has interpretation|"/> - </mapping> - </element> - <element id="Observation.component:DiastolicBP.referenceRange"> - <path value="Observation.component.referenceRange"/> - <short value="Provides guide for interpretation of component result"/> - <definition value="Guidance on how to interpret the value by comparison to a normal or recommended range."/> - <comment value="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 value="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 value="0"/> - <max value="*"/> - <base> - <path value="Observation.component.referenceRange"/> - <min value="0"/> - <max value="*"/> - </base> - <contentReference value="#Observation.referenceRange"/> - <isModifier value="false"/> - <isSummary value="false"/> - <mapping> - <identity value="v2"/> - <map value="OBX.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outboundRelationship[typeCode=REFV]/target[classCode=OBS, moodCode=EVN]"/> - </mapping> - </element> - </snapshot> - <differential> - <element id="Observation"> - <path value="Observation"/> - <short value="FHIR Blood Pressure Profile"/> - <definition value="This profile defines how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure. This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic)."/> - <min value="0"/> - <max value="*"/> - </element> - <element id="Observation.code"> - <path value="Observation.code"/> - <short value="Blood Pressure"/> - <definition value="Blood Pressure."/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - <alias value="Test"/> - <alias value="Name"/> - </element> - <element id="Observation.code.coding"> - <path value="Observation.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - </element> - <element id="Observation.code.coding:BPCode"> - <path value="Observation.code.coding"/> - <sliceName value="BPCode"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Observation.code.coding:BPCode.system"> - <path value="Observation.code.coding.system"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - </element> - <element id="Observation.code.coding:BPCode.code"> - <path value="Observation.code.coding.code"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="code"/> - </type> - <fixedCode value="85354-9"/> - </element> - <element id="Observation.valueQuantity"> - <path value="Observation.valueQuantity"/> - <min value="0"/> - <max value="0"/> - </element> - <element id="Observation.component"> - <path value="Observation.component"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code.coding.code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="code.coding.system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <min value="2"/> - <max value="*"/> - </element> - <element id="Observation.component:SystolicBP"> - <path value="Observation.component"/> - <sliceName value="SystolicBP"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Observation.component:SystolicBP.code"> - <path value="Observation.component.code"/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - <alias value="Component Test"/> - <alias value="Component Name"/> - </element> - <element id="Observation.component:SystolicBP.code.coding"> - <path value="Observation.component.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Systolic Blood Pressure"/> - <definition value="Systolic Blood Pressure."/> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode"> - <path value="Observation.component.code.coding"/> - <sliceName value="SBPCode"/> - <short value="Systolic Blood Pressure"/> - <definition value="Systolic Blood Pressure."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.system"> - <path value="Observation.component.code.coding.system"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - </element> - <element id="Observation.component:SystolicBP.code.coding:SBPCode.code"> - <path value="Observation.component.code.coding.code"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="code"/> - </type> - <fixedCode value="8480-6"/> - </element> - <element id="Observation.component:SystolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity"/> - <type> - <code value="Quantity"/> - </type> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="decimal"/> - </type> - <mustSupport value="true"/> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="string"/> - </type> - <mustSupport value="true"/> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://unitsofmeasure.org"/> - <mustSupport value="true"/> - </element> - <element id="Observation.component:SystolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code"/> - <short value="Coded responses from the common UCUM units for vital signs value set."/> - <definition value="Coded responses from the common UCUM units for vital signs value set."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="code"/> - </type> - <fixedCode value="mm[Hg]"/> - <mustSupport value="true"/> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component"/> - <sliceName value="DiastolicBP"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Observation.component:DiastolicBP.code"> - <path value="Observation.component.code"/> - <comment value="additional codes that translate or map to this code are allowed. For example a more granular LOINC code or code that is used locally in a system."/> - </element> - <element id="Observation.component:DiastolicBP.code.coding"> - <path value="Observation.component.code.coding"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - <short value="Diastolic Blood Pressure"/> - <definition value="Diastolic Blood Pressure."/> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode"> - <path value="Observation.component.code.coding"/> - <sliceName value="DBPCode"/> - <short value="Diastolic Blood Pressure"/> - <definition value="Diastolic Blood Pressure."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.system"> - <path value="Observation.component.code.coding.system"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://loinc.org"/> - </element> - <element id="Observation.component:DiastolicBP.code.coding:DBPCode.code"> - <path value="Observation.component.code.coding.code"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="code"/> - </type> - <fixedCode value="8462-4"/> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity"/> - <type> - <code value="Quantity"/> - </type> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="decimal"/> - </type> - <mustSupport value="true"/> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="string"/> - </type> - <mustSupport value="true"/> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://unitsofmeasure.org"/> - <mustSupport value="true"/> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code"/> - <short value="Coded responses from the common UCUM units for vital signs value set."/> - <definition value="Coded responses from the common UCUM units for vital signs value set."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="code"/> - </type> - <fixedCode value="mm[Hg]"/> - <mustSupport value="true"/> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bp.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/bp.json deleted file mode 100644 index 984ffc7fb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bp.json +++ /dev/null @@ -1,149 +0,0 @@ -{ - "resourceType": "Observation", - "id": "blood-pressure", - "meta": { - "profile": [ - "http://hl7.org/fhir/StructureDefinition/vitalsigns" - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: blood-pressure</p><p><b>meta</b>: </p><p><b>identifier</b>: urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281</p><p><b>basedOn</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span></p><p><b>code</b>: Blood pressure systolic & diastolic <span>(Details : {LOINC code '85354-9' = 'Blood pressure panel with all children optional', given as 'Blood pressure panel with all children optional'})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>effective</b>: 17/09/2012</p><p><b>performer</b>: <a>Practitioner/example</a></p><p><b>interpretation</b>: Below low normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'L' = 'Low', given as 'low'})</span></p><p><b>bodySite</b>: Right arm <span>(Details : {SNOMED CT code '368209003' = 'Right upper arm', given as 'Right arm'})</span></p><blockquote><p><b>component</b></p><p><b>code</b>: Systolic blood pressure <span>(Details : {LOINC code '8480-6' = 'Systolic blood pressure', given as 'Systolic blood pressure'}; {SNOMED CT code '271649006' = 'Systolic blood pressure', given as 'Systolic blood pressure'}; {http://acme.org/devices/clinical-codes code 'bp-s' = 'bp-s', given as 'Systolic Blood pressure'})</span></p><p><b>value</b>: 107 mmHg<span> (Details: UCUM code mm[Hg] = 'mmHg')</span></p><p><b>interpretation</b>: Normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'N' = 'Normal', given as 'normal'})</span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: Diastolic blood pressure <span>(Details : {LOINC code '8462-4' = 'Diastolic blood pressure', given as 'Diastolic blood pressure'})</span></p><p><b>value</b>: 60 mmHg<span> (Details: UCUM code mm[Hg] = 'mmHg')</span></p><p><b>interpretation</b>: Below low normal <span>(Details : {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation code 'L' = 'Low', given as 'low'})</span></p></blockquote></div>" - }, - "identifier": [ - { - "system": "urn:ietf:rfc:3986", - "value": "urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" - } - ], - "basedOn": [ - { - "identifier": { - "system": "https://acme.org/identifiers", - "value": "1234" - } - } - ], - "status": "final", - "category": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/observation-category", - "code": "vital-signs", - "display": "Vital Signs" - } - ] - } - ], - "code": { - "coding": [ - { - "system": "http://loinc.org", - "code": "85354-9", - "display": "Blood pressure panel with all children optional" - } - ], - "text": "Blood pressure systolic & diastolic" - }, - "subject": { - "reference": "Patient/example" - }, - "effectiveDateTime": "2012-09-17", - "performer": [ - { - "reference": "Practitioner/example" - } - ], - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "L", - "display": "low" - } - ], - "text": "Below low normal" - } - ], - "bodySite": { - "coding": [ - { - "system": "http://snomed.info/sct", - "code": "368209003", - "display": "Right arm" - } - ] - }, - "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" - }, - { - "system": "http://acme.org/devices/clinical-codes", - "code": "bp-s", - "display": "Systolic Blood pressure" - } - ] - }, - "valueQuantity": { - "value": 107, - "unit": "mmHg", - "system": "http://unitsofmeasure.org", - "code": "mm[Hg]" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "N", - "display": "normal" - } - ], - "text": "Normal" - } - ] - }, - { - "code": { - "coding": [ - { - "system": "http://loinc.org", - "code": "8462-4", - "display": "Diastolic blood pressure" - } - ] - }, - "valueQuantity": { - "value": 60, - "unit": "mmHg", - "system": "http://unitsofmeasure.org", - "code": "mm[Hg]" - }, - "interpretation": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation", - "code": "L", - "display": "low" - } - ], - "text": "Below low normal" - } - ] - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-bad-empty.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-bad-empty.json deleted file mode 100644 index 508916484..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-bad-empty.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "resourceType": "Bundle", - "id": "bundle", - "type": "collection", - "entry": [ - { - "fullUrl": "", - "resource": { - "resourceType": "Patient", - "id" : "pat1", - "link" : [{ - "type" : "refer", - "other" : { - "reference" : "Patient/pat2" - } - }] - } - }, - { - "fullUrl": "http://acme.com/Patient/pat2", - "resource": { - "resourceType": "Patient", - "id" : "pat2" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-doc-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-doc-good.xml deleted file mode 100644 index c9bf0d54c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-doc-good.xml +++ /dev/null @@ -1,43 +0,0 @@ -<Bundle xmlns="http://hl7.org/fhir"> - <id value="bundle" /> - <meta> - <lastUpdated value="2019-05-29T15:00:54.948+02:00" /> - </meta> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="urn:uuid:8a1d50f3-3f0c-471d-954d-dca1182dbcf3" /> - </identifier> - <type value="document" /> - <entry> - <fullUrl value="http://acme.com/Composition/1" /> - <resource> - <Composition> - <id value="1" /> - <status value="final" /> - <type> - <coding> - <system value="http://loinc.org" /> - <code value="11488-4" /> - </coding> - </type> - <subject> - <reference value="http://acme.com/Patient/pat2" /> - </subject> - <date value="2016-09-12T11:46:09+02:00" /> - <author> - <reference value="Patient/pat2" /> - </author> - <title value="testreferencesubject" /> - </Composition> - </resource> - </entry> - <entry> - <fullUrl value="http://acme.com/Patient/pat2" /> - <resource> - <Patient> - <id value="pat2" /> - </Patient> - </resource> - </entry> -</Bundle> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.json deleted file mode 100644 index c70a8ceac..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "resourceType": "Bundle", - "id": "bundle", - "type": "collection", - "entry": [ - { - "fullUrl": "http://acme.com/Patient/pat1", - "resource": { - "resourceType": "Patient", - "id" : "pat1", - "link" : [{ - "type" : "refer", - "other" : { - "reference" : "Patient/pat2" - } - }] - } - }, - { - "fullUrl": "http://acme.com/Patient/pat2", - "resource": { - "resourceType": "Patient", - "id" : "pat2" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.ttl deleted file mode 100644 index f40316480..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.ttl +++ /dev/null @@ -1,38 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Bundle; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "bundle"]; - fhir:Bundle.type [ fhir:value "collection"]; - fhir:Bundle.entry [ - fhir:index 0; - fhir:Bundle.entry.fullUrl [ fhir:value "http://acme.com/Patient/pat1" ]; - fhir:Bundle.entry.resource <http://acme.com/Patient/pat1> - ], [ - fhir:index 1; - fhir:Bundle.entry.fullUrl [ fhir:value "http://acme.com/Patient/pat2" ]; - fhir:Bundle.entry.resource <http://acme.com/Patient/pat2> - ]]. - -<http://acme.com/Patient/pat1> a fhir:Patient; - fhir:index 0; - fhir:Resource.id [ fhir:value "pat1"]; - fhir:Patient.link [ - fhir:index 0; - fhir:Patient.link.other [ - fhir:Reference.reference [ fhir:value "Patient/pat2" ] - ]; - fhir:Patient.link.type [ fhir:value "refer" ] - ]. - -<http://acme.com/Patient/pat2> a fhir:Patient; - fhir:index 0; - fhir:Resource.id [ fhir:value "pat2"]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.xml deleted file mode 100644 index a4b0047b4..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-good.xml +++ /dev/null @@ -1,27 +0,0 @@ -<Bundle xmlns="http://hl7.org/fhir"> - <id value="bundle"/> - <type value="collection"/> - <entry> - <fullUrl value="http://acme.com/Patient/pat1"/> - <resource> - <Patient> - <id value="pat1"/> - <link> - <other> - <reference value="Patient/pat2"/> - </other> - <type value="refer"/> - </link> - </Patient> - </resource> - </entry> - <entry> - <fullUrl value="http://acme.com/Patient/pat2"/> - <resource> - <Patient> - <id value="pat2"/> - </Patient> - </resource> - </entry> -</Bundle> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-ips-examples-bundle-01.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-ips-examples-bundle-01.xml deleted file mode 100644 index ad4ce0e5c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-ips-examples-bundle-01.xml +++ /dev/null @@ -1,1133 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<Bundle xmlns="http://hl7.org/fhir"> - <id value="IPS-examples-Bundle-01"/> - <meta> - <lastUpdated value="2017-07-20T14:30:00+01:00"/> - </meta> - <language value="en-GB"/> - <identifier> - <system value="urn:oid:2.16.724.4.8.10.200.10"/> - <value value="175bd032-8b00-4728-b2dc-748bb1501aed"/> - </identifier> - <type value="document"/> -<!-- e0 --> - <entry> - <fullUrl value="urn:uuid:30551ce1-5a28-4356-b684-1e639094ad4d"/> - <resource> - <Composition> - <id value="30551ce1-5a28-4356-b684-1e639094ad4d"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Composition-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 30551ce1-5a28-4356-b684-1e639094ad4d</p><p><b>meta</b>: </p><p><b>identifier</b>: 3f69e0a5-2177-4540-baab-7a5d0877428f</p><p><b>status</b>: final</p><p><b>type</b>: Patient summary Document <span style="background: LightGoldenRodYellow">(Details : {LOINC code '60591-5' = 'Patient summary Document', given as 'Patient summary Document'})</span></p><p><b>date</b>: Jul 20, 2017, 1:30:00 PM</p><p><b>author</b>: <a href="Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef">Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef</a></p><p><b>title</b>: Patient Summary as of July 20, 2017 14:30</p><p><b>confidentiality</b>: N</p><blockquote><p><b>attester</b></p><p><b>mode</b>: legal</p><p><b>time</b>: Jul 20, 2017, 1:30:00 PM</p><p><b>party</b>: <a href="Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef">Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef</a></p></blockquote><blockquote><p><b>attester</b></p><p><b>mode</b>: legal</p><p><b>time</b>: Jul 20, 2017, 1:30:00 PM</p><p><b>party</b>: <a href="Organization/890751f4-2924-4636-bab7-efffc7f3cf15">Organization/890751f4-2924-4636-bab7-efffc7f3cf15</a></p></blockquote><p><b>custodian</b>: <a href="Organization/890751f4-2924-4636-bab7-efffc7f3cf15">Organization/890751f4-2924-4636-bab7-efffc7f3cf15</a></p><h3>RelatesTos</h3><table class="grid"><tr><td>-</td><td><b>Code</b></td><td><b>Target[x]</b></td></tr><tr><td>*</td><td>appends</td><td>c2277753-9f90-4a95-8ddb-a0b3f6e7d292</td></tr></table><h3>Events</h3><table class="grid"><tr><td>-</td><td><b>Code</b></td><td><b>Period</b></td></tr><tr><td>*</td><td>care provision <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/v3-ActClass code 'PCPR' = 'care provision)</span></td><td>?? --> Jul 20, 2017, 1:30:00 PM</td></tr></table></div> - </text> - <identifier> - <system value="urn:oid:2.16.724.4.8.10.200.10"/> - <value value="3f69e0a5-2177-4540-baab-7a5d0877428f"/> - </identifier> - <status value="final"/> - <type> - <coding> - <system value="http://loinc.org"/> - <code value="60591-5"/> - <display value="Patient summary Document"/> - </coding> - </type> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <date value="2017-07-20T14:30:00+01:00"/> - <author> - <reference value="Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef"/> - </author> - <title value="Patient Summary as of July 20, 2017 14:30"/> - <confidentiality value="N"/> - <attester> - <mode value="legal"/> - <time value="2017-07-20T14:30:00+01:00"/> - <party> - <reference value="Practitioner/1c616b24-3895-48c4-9a02-9a64110351ef"/> - </party> - </attester> - <attester> - <mode value="legal"/> - <time value="2017-07-20T14:30:00+01:00"/> - <party> - <reference value="Organization/890751f4-2924-4636-bab7-efffc7f3cf15"/> - </party> - </attester> - <custodian> - <reference value="Organization/890751f4-2924-4636-bab7-efffc7f3cf15"/> - </custodian> - <relatesTo> - <code value="appends"/> - <targetIdentifier> - <system value="urn:oid:2.16.724.4.8.10.200.10"/> - <value value="c2277753-9f90-4a95-8ddb-a0b3f6e7d292"/> - </targetIdentifier> - </relatesTo> - <event> - <code> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v3-ActClass"/> - <code value="PCPR"/> - </coding> - </code> - <period> - <end value="2017-07-20T14:30:00+01:00"/> - </period> - </event> - <section> - <title value="Active Problems"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11450-4"/> - <display value="Problem list Reported"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">Hot flushes</div> - </text> - <entry> - <reference value="Condition/c64139e7-f02d-409c-bf34-75e8bf23bc80"/> - </entry> - </section> - <section> - <title value="Medication"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10160-0"/> - <display value="History of Medication use Narrative"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"> - <table> - <thead> - <tr> - <th>Medication</th> - <th>Strength</th> - <th>Form</th> - <th>Dosage</th> - <th>Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>Anastrozole</td> - <td>1 mg</td> - <td>tablet</td> - <td>once daily</td> - <td>treatment for breast cancer</td> - </tr> - <tr> - <td>Black Cohosh Extract</td> - <td> </td> - <td>pil</td> - <td> </td> - <td>herbal supplement</td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="MedicationStatement/c220e36c-eb67-4fc4-9ba1-2fabc52acec6"/> - </entry> - <entry> - <reference value="MedicationStatement/47524493-846a-4a26-bae2-4ab03e60f02e"/> - </entry> - </section> - <section> - <title value="Allergies and Intolerances"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="48765-2"/> - <display value="Allergies and adverse reactions Document"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">Allergy to penicillin, high criticality, active - No known food allergies - </div> - </text> - <entry> - <reference value="AllergyIntolerance/72884cad-ebe6-4f43-a51a-2f978275f132"/> - </entry> - <entry> - <reference value="AllergyIntolerance/c7781f44-6df8-4a8b-9e06-0b34263a47c5"/> - </entry> - </section> - <section> - <title value="History of Past Illness"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11348-0"/> - <display value="Hx of Past illness"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">Breast cancer Stage II with no evidence of recurrence following treatment</div> - </text> - <entry> - <reference value="Condition/c4597aa2-688a-401b-a658-70acc6de28c6"/> - </entry> - </section> - <section> - <title value="Plan of Treatment"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="18776-5"/> - <display value="Plan of care note"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml">Continue hormone medication with Anastrozole for total of 5 years and monitor for potential breast cancer recurrence</div> - </text> - </section> - <section> - <title value="Results"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="30954-2"/> - <display value="Relevant diagnostic tests/laboratory data Narrative"/> - </coding> - </code> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"> - <table> - <thead> - <tr> - <th colspan="3">Blood typing</th> - </tr> - </thead> - <tbody> - <tr> - <td>Blood group</td> - <td>A+</td> - <td/> - </tr> - <tr> - <td>C Ab [Presence] in Serum or Plasma</td> - <td>Positive</td> - <td/> - </tr> - <tr> - <td>E Ab [Presence] in Serum or Plasma</td> - <td>Positive</td> - <td/> - </tr> - <tr> - <td>Little c Ab [Presence] in Serum or Plasma</td> - <td>Negative</td> - <td/> - </tr> - </tbody> - </table> - <table> - <thead> - <tr> - <th colspan="3">Hemoglobin A1c monitoring</th> - </tr> - </thead> - <tbody> - <tr> - <td>Hemoglobin A1c/Hemoglobin.total in Blood by HPLC</td> - <td>7.5 %</td> - <td/> - </tr> - </tbody> - </table> - <table> - <thead> - <tr> - <th colspan="3">Bacteriology</th> - </tr> - </thead> - <tbody> - <tr> - <td colspan="3">Methicillin resistant Staphylococcus aureus</td> - </tr> - <tr> - <td colspan="3">Healthy carrier of MRSA</td> - </tr> - </tbody> - </table> - </div> - </text> - <!-- member obseravtions - <entry> - <reference value="Observation/aa11a2be-3e36-4be7-b58a-6fc3dace2741"/> - </entry> - <entry> - <reference value="Observation/6e39ccf3-f997-4a2b-8f28-b4b71c778c70"/> - </entry> - <entry> - <reference value="Observation/b4916505-a06b-460c-9be8-011609282457"/> - </entry> - <entry> - <reference value="Observation/a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4"/> - </entry> - --> - <entry> - <reference value="Observation/2639657a-c19a-48e2-82cc-471e13b8ad94"/> - </entry> - <entry> - <reference value="Observation/cc354e00-a419-47ea-8b6c-1768b2a01646"/> - </entry> - <entry> - <reference value="Observation/26bee0a9-5997-4557-ab9d-c6adbb05b572"/> - </entry> - </section> - </Composition> - </resource> - </entry> -<!-- e1 --> - <entry> - <fullUrl value="urn:uuid:2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - <resource> - <Patient> - <id value="2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Patient-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 2b90dd2b-2dab-4c75-9bb9-a355e07401e8</p><p><b>meta</b>: </p><p><b>identifier</b>: 574687583</p><p><b>active</b>: true</p><p><b>name</b>: Martha DeLarosa </p><p><b>telecom</b>: ph: +31788700800(HOME)</p><p><b>gender</b>: female</p><p><b>birthDate</b>: May 1, 1972</p><p><b>address</b>: Laan Van Europa 1600 Dordrecht 3317 DB Netherlands </p><h3>Contacts</h3><table class="grid"><tr><td>-</td><td><b>Relationship</b></td><td><b>Name</b></td><td><b>Telecom</b></td><td><b>Address</b></td></tr><tr><td>*</td><td>mother <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/v3-RoleCode code 'MTH' = 'mother)</span></td><td>Martha Mum </td><td>ph: +33-555-20036(HOME)</td><td>Promenade des Anglais 111 Lyon 69001 France </td></tr></table></div> - </text> - <identifier> - <system value="urn:oid:2.16.840.1.113883.2.4.6.3"/> - <value value="574687583"/> - </identifier> - <active value="true"/> - <name> - <family value="DeLarosa"/> - <given value="Martha"/> - </name> - <telecom> - <system value="phone"/> - <value value="+31788700800"/> - <use value="home"/> - </telecom> - <gender value="female"/> - <birthDate value="1972-05-01"/> - <address> - <line value="Laan Van Europa 1600"/> - <city value="Dordrecht"/> - <postalCode value="3317 DB"/> - <country value="Netherlands"/> - </address> - <contact> - <relationship> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v3-RoleCode"/> - <code value="MTH"/> - </coding> - </relationship> - <name> - <family value="Mum"/> - <given value="Martha"/> - </name> - <telecom> - <system value="phone"/> - <value value="+33-555-20036"/> - <use value="home"/> - </telecom> - <address> - <line value="Promenade des Anglais 111"/> - <city value="Lyon"/> - <postalCode value="69001"/> - <country value="France"/> - </address> - </contact> - </Patient> - </resource> - </entry> -<!-- e2 --> - <entry> - <fullUrl value="urn:uuid:1c616b24-3895-48c4-9a02-9a64110351ef"/> - <resource> - <Practitioner> - <id value="1c616b24-3895-48c4-9a02-9a64110351ef"/> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 1c616b24-3895-48c4-9a02-9a64110351ef</p><p><b>identifier</b>: 129854633</p><p><b>active</b>: true</p><p><b>name</b>: Beetje van Hulp </p><h3>Qualifications</h3><table class="grid"><tr><td>-</td><td><b>Code</b></td></tr><tr><td>*</td><td>Doctor of Medicine <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/v2-0360|2.7 code 'MD' = 'Doctor of Medicine', given as 'Doctor of Medicine'})</span></td></tr></table></div> - </text> - <identifier> - <system value="urn:oid:2.16.528.1.1007.3.1"/> - <value value="129854633"/> - <assigner> - <display value="CIBG"/> - </assigner> - </identifier> - <active value="true"/> - <name> - <family value="van Hulp"/> - <given value="Beetje"/> - </name> - <qualification> - <code> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0360|2.7"/> - <code value="MD"/> - <display value="Doctor of Medicine"/> - </coding> - </code> - </qualification> - </Practitioner> - </resource> - </entry> -<!-- e3 --> - <entry> - <fullUrl value="urn:uuid:890751f4-2924-4636-bab7-efffc7f3cf15"/> - <resource> - <Organization> - <id value="890751f4-2924-4636-bab7-efffc7f3cf15"/> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 890751f4-2924-4636-bab7-efffc7f3cf15</p><p><b>identifier</b>: 564738757</p><p><b>active</b>: true</p><p><b>name</b>: Anorg Aniza Tion BV / The best custodian ever</p><p><b>telecom</b>: ph: +31-51-34343400(WORK)</p><p><b>address</b>: Houttuinen 27 Dordrecht 3311 CE Netherlands (WORK)</p></div> - </text> - <identifier> - <system value="urn:oid:2.16.528.1.1007.3.3"/> - <value value="564738757"/> - </identifier> - <active value="true"/> - <name value="Anorg Aniza Tion BV / The best custodian ever"/> - <telecom> - <system value="phone"/> - <value value="+31-51-34343400"/> - <use value="work"/> - </telecom> - <address> - <use value="work"/> - <line value="Houttuinen 27"/> - <city value="Dordrecht"/> - <postalCode value="3311 CE"/> - <country value="Netherlands"/> - </address> - </Organization> - </resource> - </entry> -<!-- e4 --> - <entry> - <fullUrl value="urn:uuid:c64139e7-f02d-409c-bf34-75e8bf23bc80"/> - <resource> - <Condition> - <id value="c64139e7-f02d-409c-bf34-75e8bf23bc80"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Condition-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: c64139e7-f02d-409c-bf34-75e8bf23bc80</p><p><b>meta</b>: </p><p><b>identifier</b>: c87bf51c-e53c-4bfe-b8b7-aa62bdd93002</p><p><b>clinicalStatus</b>: Active <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/condition-clinical code 'active' = 'Active)</span></p><p><b>verificationStatus</b>: Confirmed <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/condition-ver-status code 'confirmed' = 'Confirmed)</span></p><p><b>category</b>: Problem <span style="background: LightGoldenRodYellow">(Details : {LOINC code '75326-9' = 'Problem', given as 'Problem'})</span></p><p><b>severity</b>: Moderate <span style="background: LightGoldenRodYellow">(Details : {LOINC code 'LA6751-7' = 'Moderate', given as 'Moderate'})</span></p><p><b>code</b>: Menopausal flushing (finding) <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '198436008' = 'Hot flush', given as 'Menopausal flushing (finding)'}; {http://hl7.org/fhir/sid/icd-10 code 'N95.1' = 'Menopausal and female climacteric states', given as 'Menopausal and female climacteric states'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>onset</b>: Jan 1, 2015, 12:00:00 AM</p><p><b>recordedDate</b>: Oct 1, 2016, 12:00:00 AM</p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="c87bf51c-e53c-4bfe-b8b7-aa62bdd93002"/> - </identifier> - <clinicalStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/> - <code value="active"/> - </coding> - </clinicalStatus> - <verificationStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/> - <code value="confirmed"/> - </coding> - </verificationStatus> - <category> - <coding> - <system value="http://loinc.org"/> - <code value="75326-9"/> - <display value="Problem"/> - </coding> - </category> - <severity> - <coding> - <system value="http://loinc.org"/> - <code value="LA6751-7"/> - <display value="Moderate"/> - </coding> - </severity> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="198436008"/> - <display value="Menopausal flushing (finding)"> - <extension url="http://hl7.org/fhir/StructureDefinition/translation"> - <extension url="lang"> - <valueCode value="nl-NL"/> - </extension> - <extension url="content"> - <valueString value="opvliegers"/> - </extension> - </extension> - </display> - </coding> - <coding> - <system value="http://hl7.org/fhir/sid/icd-10"/> - <code value="N95.1"/> - <display value="Menopausal and female climacteric states"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <onsetDateTime value="2015"/> - <recordedDate value="2016-10"/> - </Condition> - </resource> - </entry> -<!-- e5 --> - <entry> - <fullUrl value="urn:uuid:c220e36c-eb67-4fc4-9ba1-2fabc52acec6"/> - <resource> - <MedicationStatement> - <id value="c220e36c-eb67-4fc4-9ba1-2fabc52acec6"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationStatement-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: c220e36c-eb67-4fc4-9ba1-2fabc52acec6</p><p><b>meta</b>: </p><p><b>identifier</b>: b75f92cb-61d4-469a-9387-df5ef70d25f0</p><p><b>status</b>: active</p><p><b>medication</b>: <a href="Medication/976d0804-cae0-45ae-afe3-a19f3ceba6bc">Medication/976d0804-cae0-45ae-afe3-a19f3ceba6bc</a></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Mar 1, 2015, 12:00:00 AM --> (ongoing)</p><p><b>dosage</b>: </p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="b75f92cb-61d4-469a-9387-df5ef70d25f0"/> - </identifier> - <status value="active"/> - <medicationReference> - <reference value="Medication/976d0804-cae0-45ae-afe3-a19f3ceba6bc"/> - </medicationReference> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectivePeriod> - <start value="2015-03"/> - </effectivePeriod> - <dosage> - <timing> - <repeat> - <count value="1"/> - <periodUnit value="d"/> - </repeat> - </timing> - <route> - <coding> - <system value="http://standardterms.edqm.eu"/> - <code value="20053000"/> - <display value="Oral use"/> - </coding> - </route> - <doseAndRate> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/dose-rate-type"/> - <code value="ordered"/> - <display value="Ordered"/> - </coding> - </type> - <doseQuantity> - <value value="1"/> - <unit value="tablet"/> - <system value="http://unitsofmeasure.org"/> - <code value="1"/> - </doseQuantity> - </doseAndRate> - </dosage> - </MedicationStatement> - </resource> - </entry> -<!-- e6 --> - <entry> - <fullUrl value="urn:uuid:47524493-846a-4a26-bae2-4ab03e60f02e"/> - <resource> - <MedicationStatement> - <id value="47524493-846a-4a26-bae2-4ab03e60f02e"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/MedicationStatement-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 47524493-846a-4a26-bae2-4ab03e60f02e</p><p><b>meta</b>: </p><p><b>identifier</b>: 9e312d6b-c6b6-439a-a730-6efaa5dcf8bc</p><p><b>status</b>: active</p><p><b>medication</b>: <a href="Medication/8adc0999-9468-4ac9-9557-680fa133d626">Medication/8adc0999-9468-4ac9-9557-680fa133d626</a></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Jan 1, 2016, 12:00:00 AM --> (ongoing)</p><p><b>dosage</b>: </p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="9e312d6b-c6b6-439a-a730-6efaa5dcf8bc"/> - </identifier> - <status value="active"/> - <medicationReference> - <reference value="Medication/8adc0999-9468-4ac9-9557-680fa133d626"/> - </medicationReference> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectivePeriod> - <start value="2016-01"/> - </effectivePeriod> - <dosage> - <route> - <coding> - <system value="http://standardterms.edqm.eu"/> - <code value="20053000"/> - <display value="Oral use"/> - </coding> - </route> - </dosage> - </MedicationStatement> - </resource> - </entry> -<!-- e7 --> - <entry> - <fullUrl value="urn:uuid:976d0804-cae0-45ae-afe3-a19f3ceba6bc"/> - <resource> - <Medication> - <id value="976d0804-cae0-45ae-afe3-a19f3ceba6bc"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Medication-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 976d0804-cae0-45ae-afe3-a19f3ceba6bc</p><p><b>meta</b>: </p><p><b>code</b>: Product containing anastrozole (medicinal product) <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '108774000' = 'Product containing anastrozole (medicinal product)', given as 'Product containing anastrozole (medicinal product)'}; {urn:oid:2.16.840.1.113883.2.4.4.1 code '99872' = '99872', given as 'ANASTROZOL 1MG TABLET'}; {urn:oid:2.16.840.1.113883.2.4.4.7 code '2076667' = '2076667', given as 'ANASTROZOL CF TABLET FILMOMHULD 1MG'}; {http://www.whocc.no/atc code 'L02BG03' = 'anastrozole', given as 'anastrozole'})</span></p></div> - </text> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="108774000"/> - <display value="Product containing anastrozole (medicinal product)"/> - </coding> - <coding> - <system value="urn:oid:2.16.840.1.113883.2.4.4.1"/> - <code value="99872"/> - <display value="ANASTROZOL 1MG TABLET"/> - </coding> - <coding> - <system value="urn:oid:2.16.840.1.113883.2.4.4.7"/> - <code value="2076667"/> - <display value="ANASTROZOL CF TABLET FILMOMHULD 1MG"/> - </coding> - <coding> - <system value="http://www.whocc.no/atc"/> - <code value="L02BG03"/> - <display value="anastrozole"/> - </coding> - </code> - </Medication> - </resource> - </entry> -<!-- e8 --> - <entry> - <fullUrl value="urn:uuid:8adc0999-9468-4ac9-9557-680fa133d626"/> - <resource> - <Medication> - <id value="8adc0999-9468-4ac9-9557-680fa133d626"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Medication-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 8adc0999-9468-4ac9-9557-680fa133d626</p><p><b>meta</b>: </p><p><b>code</b>: Black Cohosh Extract herbal supplement <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '412588001' = 'Cimicifuga racemosa extract (substance)', given as 'Cimicifuga racemosa extract (substance)'}; {http://www.whocc.no/atc code 'G02CX04' = 'Cimicifugae rhizoma', given as 'Cimicifugae rhizoma'})</span></p></div> - </text> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="412588001"/> - <display value="Cimicifuga racemosa extract (substance)"> - <extension url="http://hl7.org/fhir/StructureDefinition/translation"> - <extension url="lang"> - <valueCode value="nl-NL"/> - </extension> - <extension url="content"> - <valueString value="Zwarte Cohosh Extract"/> - </extension> - </extension> - </display> - </coding> - <coding> - <system value="http://www.whocc.no/atc"/> - <code value="G02CX04"/> - <display value="Cimicifugae rhizoma"/> - </coding> - <text value="Black Cohosh Extract herbal supplement"/> - </code> - </Medication> - </resource> - </entry> -<!-- e9 --> - <entry> - <fullUrl value="urn:uuid:72884cad-ebe6-4f43-a51a-2f978275f132"/> - <resource> - <AllergyIntolerance> - <id value="72884cad-ebe6-4f43-a51a-2f978275f132"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 72884cad-ebe6-4f43-a51a-2f978275f132</p><p><b>meta</b>: </p><p><b>identifier</b>: 3a462598-009c-484a-965c-d6b24a821424</p><p><b>clinicalStatus</b>: Active <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical code 'active' = 'Active)</span></p><p><b>verificationStatus</b>: Confirmed <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/allergyintolerance-verification code 'confirmed' = 'Confirmed)</span></p><p><b>type</b>: allergy</p><p><b>category</b>: medication</p><p><b>criticality</b>: high</p><p><b>code</b>: Penicillin -class of antibiotic- (substance) <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '373270004' = 'Substance with penicillin structure and antibacterial mechanism of action', given as 'Penicillin -class of antibiotic- (substance)'})</span></p><p><b>patient</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>onset</b>: Jan 1, 2010, 12:00:00 AM</p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="3a462598-009c-484a-965c-d6b24a821424"/> - </identifier> - <clinicalStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"/> - <code value="active"/> - </coding> - </clinicalStatus> - <verificationStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"/> - <code value="confirmed"/> - </coding> - </verificationStatus> - <type value="allergy"/> - <category value="medication"/> - <criticality value="high"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="373270004"/> - <display value="Penicillin -class of antibiotic- (substance)"/> - </coding> - </code> - <patient> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </patient> - <onsetDateTime value="2010"/> - </AllergyIntolerance> - </resource> - </entry> -<!-- e10 --> - <entry> - <fullUrl value="urn:uuid:c4597aa2-688a-401b-a658-70acc6de28c6"/> - <resource> - <Condition> - <id value="c4597aa2-688a-401b-a658-70acc6de28c6"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Condition-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: c4597aa2-688a-401b-a658-70acc6de28c6</p><p><b>meta</b>: </p><p><b>identifier</b>: 66d4a8c7-9081-43e0-a63f-489c2ae6edd6</p><p><b>clinicalStatus</b>: Remission <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/condition-clinical code 'remission' = 'Remission)</span></p><p><b>verificationStatus</b>: Confirmed <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/condition-ver-status code 'confirmed' = 'Confirmed)</span></p><p><b>category</b>: Problem <span style="background: LightGoldenRodYellow">(Details : {LOINC code '75326-9' = 'Problem', given as 'Problem'})</span></p><p><b>severity</b>: Severe <span style="background: LightGoldenRodYellow">(Details : {LOINC code 'LA6750-9' = 'Severe', given as 'Severe'})</span></p><p><b>code</b>: Malignant tumor of breast <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '254837009' = 'Malignant neoplasm of breast (disorder)', given as 'Malignant tumor of breast'}; {urn:oid:2.16.840.1.113883.6.43.1 code '8500/3' = 'Infiltrating duct carcinoma, NOS', given as 'Infiltrating duct carcinoma, NOS'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>onset</b>: Jan 1, 2015, 12:00:00 AM</p><p><b>abatement</b>: Mar 1, 2015, 12:00:00 AM</p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="66d4a8c7-9081-43e0-a63f-489c2ae6edd6"/> - </identifier> - <clinicalStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/condition-clinical"/> - <code value="remission"/> - </coding> - </clinicalStatus> - <verificationStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/condition-ver-status"/> - <code value="confirmed"/> - </coding> - </verificationStatus> - <category> - <coding> - <system value="http://loinc.org"/> - <code value="75326-9"/> - <display value="Problem"/> - </coding> - </category> - <severity> - <coding> - <system value="http://loinc.org"/> - <code value="LA6750-9"/> - <display value="Severe"/> - </coding> - </severity> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="254837009"/> - <display value="Malignant tumor of breast"> - <extension url="http://hl7.org/fhir/StructureDefinition/translation"> - <extension url="lang"> - <valueCode value="nl-NL"/> - </extension> - <extension url="content"> - <valueString value="Borstkanker stadium II zonder aanwijzingen van recidieven na behandeling"/> - </extension> - </extension> - </display> - </coding> - <coding> - <system value="urn:oid:2.16.840.1.113883.6.43.1"/> - <code value="8500/3"/> - <display value="Infiltrating duct carcinoma, NOS"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <onsetDateTime value="2015-01"/> - <abatementDateTime value="2015-03"/> - </Condition> - </resource> - </entry> -<!-- e11 --> - <entry> - <fullUrl value="urn:uuid:45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7"/> - <resource> - <Organization> - <id value="45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7"/> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7</p><p><b>active</b>: true</p><p><b>type</b>: Other <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/organization-type code 'other' = 'Other)</span></p><p><b>name</b>: Laboratoire de charme</p></div> - </text> - <active value="true"/> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/organization-type"/> - <code value="other"/> - </coding> - </type> - <name value="Laboratoire de charme"/> - </Organization> - </resource> - </entry> -<!-- e12 --> - <entry> - <fullUrl value="urn:uuid:aa11a2be-3e36-4be7-b58a-6fc3dace2741"/> - <resource> - <Observation> - <id value="aa11a2be-3e36-4be7-b58a-6fc3dace2741"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-member-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: aa11a2be-3e36-4be7-b58a-6fc3dace2741</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: ABO and Rh group [Type] in Blood <span style="background: LightGoldenRodYellow">(Details : {LOINC code '882-1' = 'ABO and Rh group [Type] in Blood', given as 'ABO and Rh group [Type] in Blood'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Oct 10, 2015, 8:15:00 AM</p><p><b>value</b>: Blood group A Rh(D) positive <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '278149003' = 'Blood group A Rh(D) positive', given as 'Blood group A Rh(D) positive'})</span></p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="882-1"/> - <display value="ABO and Rh group [Type] in Blood"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2015-10-10T09:15:00+01:00"/> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct"/> - <code value="278149003"/> - <display value="Blood group A Rh(D) positive"/> - </coding> - </valueCodeableConcept> - </Observation> - </resource> - </entry> -<!-- e13 --> - <entry> - <fullUrl value="urn:uuid:6e39ccf3-f997-4a2b-8f28-b4b71c778c70"/> - <resource> - <Observation> - <id value="6e39ccf3-f997-4a2b-8f28-b4b71c778c70"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-member-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 6e39ccf3-f997-4a2b-8f28-b4b71c778c70</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: C Ab [Presence] in Serum or Plasma <span style="background: LightGoldenRodYellow">(Details : {LOINC code '945-6' = 'C Ab [Presence] in Serum or Plasma', given as 'C Ab [Presence] in Serum or Plasma'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Oct 10, 2015, 8:35:00 AM</p><p><b>value</b>: Positive <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '10828004' = 'Positive', given as 'Positive'})</span></p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="945-6"/> - <display value="C Ab [Presence] in Serum or Plasma"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2015-10-10T09:35:00+01:00"/> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct"/> - <code value="10828004"/> - <display value="Positive"/> - </coding> - </valueCodeableConcept> - </Observation> - </resource> - </entry> -<!-- e14 --> - <entry> - <fullUrl value="urn:uuid:b4916505-a06b-460c-9be8-011609282457"/> - <resource> - <Observation> - <id value="b4916505-a06b-460c-9be8-011609282457"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-member-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: b4916505-a06b-460c-9be8-011609282457</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: E Ab [Presence] in Serum or Plasma <span style="background: LightGoldenRodYellow">(Details : {LOINC code '1018-1' = 'E Ab [Presence] in Serum or Plasma', given as 'E Ab [Presence] in Serum or Plasma'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Oct 10, 2015, 8:35:00 AM</p><p><b>value</b>: Positive <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '10828004' = 'Positive', given as 'Positive'})</span></p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="1018-1"/> - <display value="E Ab [Presence] in Serum or Plasma"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2015-10-10T09:35:00+01:00"/> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct"/> - <code value="10828004"/> - <display value="Positive"/> - </coding> - </valueCodeableConcept> - </Observation> - </resource> - </entry> -<!-- e15 --> - <entry> - <fullUrl value="urn:uuid:a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4"/> - <resource> - <Observation> - <id value="a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-member-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: little c Ab [Presence] in Serum or Plasma <span style="background: LightGoldenRodYellow">(Details : {LOINC code '1156-9' = 'little c Ab [Presence] in Serum or Plasma', given as 'little c Ab [Presence] in Serum or Plasma'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Oct 10, 2015, 8:35:00 AM</p><p><b>value</b>: Negative <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '260385009' = 'Negative', given as 'Negative'})</span></p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="1156-9"/> - <display value="little c Ab [Presence] in Serum or Plasma"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2015-10-10T09:35:00+01:00"/> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct"/> - <code value="260385009"/> - <display value="Negative"/> - </coding> - </valueCodeableConcept> - </Observation> - </resource> - </entry> -<!-- e16 --> - <entry> - <fullUrl value="urn:uuid:2639657a-c19a-48e2-82cc-471e13b8ad94"/> - <resource> - <Observation> - <id value="2639657a-c19a-48e2-82cc-471e13b8ad94"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 2639657a-c19a-48e2-82cc-471e13b8ad94</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: Blood typing <span style="background: LightGoldenRodYellow">(Details )</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Oct 10, 2015, 12:00:00 AM</p><p><b>performer</b>: <a href="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7">Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7</a></p><p><b>hasMember</b>: </p><ul><li><a href="Observation/aa11a2be-3e36-4be7-b58a-6fc3dace2741">Observation/aa11a2be-3e36-4be7-b58a-6fc3dace2741</a></li><li><a href="Observation/6e39ccf3-f997-4a2b-8f28-b4b71c778c70">Observation/6e39ccf3-f997-4a2b-8f28-b4b71c778c70</a></li><li><a href="Observation/b4916505-a06b-460c-9be8-011609282457">Observation/b4916505-a06b-460c-9be8-011609282457</a></li><li><a href="Observation/a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4">Observation/a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4</a></li></ul></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <text value="Blood typing"/> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2015-10-10"/> - <performer> - <reference value="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7"/> - </performer> - <hasMember> - <reference value="Observation/aa11a2be-3e36-4be7-b58a-6fc3dace2741"/> - </hasMember> - <hasMember> - <reference value="Observation/6e39ccf3-f997-4a2b-8f28-b4b71c778c70"/> - </hasMember> - <hasMember> - <reference value="Observation/b4916505-a06b-460c-9be8-011609282457"/> - </hasMember> - <hasMember> - <reference value="Observation/a6a5a1d5-c896-4c7e-b922-888fcc7e6ae4"/> - </hasMember> - </Observation> - </resource> - </entry> -<!-- e17 --> - <entry> - <fullUrl value="urn:uuid:cc354e00-a419-47ea-8b6c-1768b2a01646"/> - <resource> - <Observation> - <id value="cc354e00-a419-47ea-8b6c-1768b2a01646"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: cc354e00-a419-47ea-8b6c-1768b2a01646</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: Hemoglobin A1c/Hemoglobin.total in Blood by HPLC <span style="background: LightGoldenRodYellow">(Details : {LOINC code '17856-6' = 'Hemoglobin A1c/Hemoglobin.total in Blood by HPLC', given as 'Hemoglobin A1c/Hemoglobin.total in Blood by HPLC'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Nov 10, 2017, 7:20:00 AM</p><p><b>performer</b>: <a href="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7">Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7</a></p><p><b>value</b>: 7.5 %<span style="background: LightGoldenRodYellow"> (Details: UCUM code % = '%')</span></p><p><b>note</b>: Above stated goal of 7.0 %</p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="17856-6"/> - <display value="Hemoglobin A1c/Hemoglobin.total in Blood by HPLC"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2017-11-10T08:20:00+01:00"/> - <performer> - <reference value="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7"/> - </performer> - <valueQuantity> - <value value="7.5"/> - <unit value="%"/> - <system value="http://unitsofmeasure.org"/> - <code value="%"/> - </valueQuantity> - <note> - <text value="Above stated goal of 7.0 %"/> - </note> - </Observation> - </resource> - </entry> -<!-- e18 --> - <entry> - <fullUrl value="urn:uuid:26bee0a9-5997-4557-ab9d-c6adbb05b572"/> - <resource> - <Observation> - <id value="26bee0a9-5997-4557-ab9d-c6adbb05b572"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/Observation-laboratory-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: 26bee0a9-5997-4557-ab9d-c6adbb05b572</p><p><b>meta</b>: </p><p><b>status</b>: final</p><p><b>category</b>: Laboratory <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/observation-category code 'laboratory' = 'Laboratory)</span></p><p><b>code</b>: Bacteria identified in Isolate <span style="background: LightGoldenRodYellow">(Details : {LOINC code '42803-7' = 'Bacteria identified in Isolate', given as 'Bacteria identified in Isolate'})</span></p><p><b>subject</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>effective</b>: Dec 10, 2017, 7:20:00 AM</p><p><b>performer</b>: <a href="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7">Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7</a></p><p><b>value</b>: Methicillin resistant Staphylococcus aureus <span style="background: LightGoldenRodYellow">(Details : {SNOMED CT code '115329001' = 'MRSA', given as 'Methicillin resistant Staphylococcus aureus'})</span></p><p><b>note</b>: Healthy carrier of MRSA</p></div> - </text> - <status value="final"/> - <category> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/observation-category"/> - <code value="laboratory"/> - </coding> - </category> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="42803-7"/> - <display value="Bacteria identified in Isolate"/> - </coding> - </code> - <subject> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </subject> - <effectiveDateTime value="2017-12-10T08:20:00+01:00"/> - <performer> - <reference value="Organization/45a5c5b1-4ec1-4d60-b4b2-ff5a84a41fd7"/> - </performer> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct"/> - <code value="115329001"/> - <display value="Methicillin resistant Staphylococcus aureus"/> - </coding> - </valueCodeableConcept> - <note> - <text value="Healthy carrier of MRSA"/> - </note> - </Observation> - </resource> - </entry> -<!-- e19 --> - <entry> - <fullUrl value="urn:uuid:c7781f44-6df8-4a8b-9e06-0b34263a47c5"/> - <resource> - <AllergyIntolerance> - <id value="c7781f44-6df8-4a8b-9e06-0b34263a47c5"/> - <meta> - <profile value="http://hl7.org/fhir/uv/ips/StructureDefinition/AllergyIntolerance-uv-ips"/> - </meta> - <text> - <status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: c7781f44-6df8-4a8b-9e06-0b34263a47c5</p><p><b>meta</b>: </p><p><b>identifier</b>: 3a462598-009c-484a-965c-d6b24a821424</p><p><b>clinicalStatus</b>: Active <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical code 'active' = 'Active)</span></p><p><b>verificationStatus</b>: Confirmed <span style="background: LightGoldenRodYellow">(Details : {http://terminology.hl7.org/CodeSystem/allergyintolerance-verification code 'confirmed' = 'Confirmed)</span></p><p><b>type</b>: allergy</p><p><b>category</b>: medication</p><p><b>criticality</b>: high</p><p><b>code</b>: No known food allergies <span style="background: LightGoldenRodYellow">(Details : {http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips code 'no-known-food-allergies' = 'No known food allergies)</span></p><p><b>patient</b>: <a href="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8">Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8</a></p><p><b>onset</b>: Jan 1, 2010, 12:00:00 AM</p></div> - </text> - <identifier> - <system value="urn:oid:1.2.3.999"/> - <value value="3a462598-009c-484a-965c-d6b24a821424"/> - </identifier> - <clinicalStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-clinical"/> - <code value="active"/> - </coding> - </clinicalStatus> - <verificationStatus> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/allergyintolerance-verification"/> - <code value="confirmed"/> - </coding> - </verificationStatus> - <type value="allergy"/> - <category value="medication"/> - <criticality value="high"/> - <code> - <coding> - <system value="http://hl7.org/fhir/uv/ips/CodeSystem/absent-unknown-uv-ips"/> - <code value="no-known-food-allergies"/> - </coding> - </code> - <patient> - <reference value="Patient/2b90dd2b-2dab-4c75-9bb9-a355e07401e8"/> - </patient> - <onsetDateTime value="2010"/> - </AllergyIntolerance> - </resource> - </entry> -</Bundle> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-local-refs.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-local-refs.xml deleted file mode 100644 index 5e123eddf..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/bundle-local-refs.xml +++ /dev/null @@ -1,45 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Bundle xmlns="http://hl7.org/fhir"> - <id value="bundle-local-refs"/> - <meta> - <lastUpdated value="2019-07-21T11:01:00+05:00"/> - </meta> - <identifier> - <system value="http://example.org/documentIDs"/> - <value value="A12345"/> - </identifier> - <type value="document"/> - <timestamp value="2019-07-21T11:01:00+05:00"/> - <entry> - <fullUrl value="http://example.org/fhir/Composition/1"/> - <resource> - <Composition> - <id value="1"/> - <status value="final"/> - <type> - <text value="foo"/> - </type> - <subject> - <reference value="Patient/1"/> - </subject> - <date value="2019-07-21T23:09:00+07:00"/> - <author> - <display value="foo"/> - </author> - <title value="Example with local references"/> - </Composition> - </resource> - </entry> - <entry> - <fullUrl value="http://example.org/fhir/Patient/1"/> - <resource> - <Patient> - <id value="1"/> - <name> - <family value="SMITH"/> - <given value="JOE"/> - </name> - </Patient> - </resource> - </entry> -</Bundle> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example-bad.xml deleted file mode 100644 index 7f390f34f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example-bad.xml +++ /dev/null @@ -1,966 +0,0 @@ -<Composition - xmlns="http://hl7.org/fhir"> - <id value="CCDA-on-FHIR-Referral-Note-Example"/> - <meta> - <versionId value="1"/> - <lastUpdated value="2016-06-15T08:16:14Z"/> - <profile value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA-on-FHIR-Referral-Note"/> - </meta> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Referral Note document for Amy Shaw</p> - <p>Managed by Community Health and Hospitals</p> - </div> - </text> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-data-enterer-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-informant-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-information-recipient-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-participant-extension"> - <valueUri value="http://hl7.org/fhir/relatedperson-example-peter.xml.html"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-performer-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-authorization-extension"> - <valueUri value="http://hl7.org/fhir/ccda/StructureDefinition/ccda-consent"/> - </extension> - <identifier> - <system value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA_on_FHIR_Referral_Note"/> - <value value="1"/> - </identifier> - <status value="preliminary"/> - <type> - <coding> - <system value="http://loinc.org"/> - <code value="57133-1"/> - <display value="Referral Note"/> - </coding> - </type> - <!-- Patient Resource --> - <subject> - <reference value="http://hl7.org/fhir/us/core/Patient-example.xml"/> - <display value="Amy V. Shaw"/> - </subject> - <date value="2016-02-28T09:10:14Z"/> - <!-- Practitioner Resource --> - <author> - <reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - <display value="Ronald Boone, MD"/> - </author> - <title value="Referral Note"/> - <confidentiality value="N"/> - <attester> - <mode value="legal"/> - <time value="2012-01-04T09:10:14Z"/> - <party> - <reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - <display value="Ronald Boone, MD"/> - </party> - </attester> - <!-- Organization Resource --> - <custodian> - <reference value="http://hl7.org/fhir/us/core/Organization-acme-lab.xml"/> - <display value="Acme Labs"/> - </custodian> - <event> - <code> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v3-ActClass"/> - <code value="PCPR"/> - <display value="Care Provision"/> - </coding> - </code> - <period> - <start value="2015-11-18"/> - <end value="2015-12-12"/> - </period> - </event> - <!-- Encounter Resource --> - <!--<encounter><reference value="http://fhirtest.uhn.ca/baseDstu3/Encounter/117630"/></encounter>--> - <!-- Allergies and Intolerances Section Narrative --> - <section> - <title value="Allergies and Intolerances Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="48765-2"/> - <display value="Allergies and Adverse Reactions"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Substance</b> - </td> - <td> - <b>Overall Severity</b> - </td> - <td> - <b>Reaction</b> - </td> - <td> - <b>Reaction Severity</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Cashew Nut</td> - <td>Severe</td> - <td>Anaphylactic reaction</td> - <td>Mild</td> - <td>Active</td> - </tr> - </table> - </div> - </text> - <mode value="snapshot"/> - <orderedBy> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/list-order"/> - <code value="event-date"/> - <display value="Sorted by Event Date"/> - </coding> - </orderedBy> - <!-- Allergies and Intolerance Section Resource--> - <entry> - <reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/> - </entry> - </section> - <!-- SPM duplicate for error: Allergies and Intolerances Section Narrative --> - <section> - <title value="Allergies and Intolerances Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="48765-2"/> - <display value="Allergies and Adverse Reactions"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Substance</b> - </td> - <td> - <b>Overall Severity</b> - </td> - <td> - <b>Reaction</b> - </td> - <td> - <b>Reaction Severity</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Cashew Nut</td> - <td>Severe</td> - <td>Anaphylactic reaction</td> - <td>Mild</td> - <td>Active</td> - </tr> - </table> - </div> - </text> - <mode value="snapshot"/> - <orderedBy> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/list-order"/> - <code value="event-date"/> - <display value="Sorted by Event Date"/> - </coding> - </orderedBy> - <!-- Allergies and Intolerance Section Resource--> - <entry> - <reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/> - </entry> - </section> - <!-- Advance Directives Section Narrative --> - <section> - <title value="Advance Directives Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="42348-3"/> - <display value="Advance directives"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Name</b> - </td> - <td> - <b>Applies Period</b> - </td> - </tr> - <tr> - <td>Resuscitation</td> - <td>2015/01/01 - 2016/12/31</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Assessment Section Narrative --> - <section> - <title value=" Assessment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="51848-0"/> - <display value="Assessment (evaluation)"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Obesity.</p> - <p>Uncontrolled brittle Type II diabetic.</p> - <p>Shortness of breath, mild wheezing.</p> - <p>Pressure ulder on left knee.</p> - </div> - </text> - </section> - <!-- Assessment and Plan Section Narrative --> - <section> - <title value="Assessment and Plan Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="51847-2"/> - <display value="Assessment (evaluation) and plan"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Recurrent GI bleed of unknown etiology; hypotension perhaps - secondary to this but as likely secondary to polypharmacy</p> - <p>Acute on chronic anemia secondary to #1.</p> - <p>Azotemia, acute renal failure with volume loss secondary tom#1.</p> - <p>Hyperkalemia secondary to #3 and on ACE and K+ supplement.</p> - <p>Other chronic diagnoses as noted above, currently stable.</p> - </div> - </text> - </section> - <!-- Family History Section Narrative --> - <section> - <title value="Family History Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10157-6"/> - <display value="History of family member diseases"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Relationship</b> - </td> - <td> - <b>Diagnosis</b> - </td> - <td> - <b>Age at Onset</b> - </td> - </tr> - <tr> - <td>Father</td> - <td>Myocardial Infarction(cause of Death)</td> - <td>57</td> - </tr> - <tr> - <td>Father</td> - <td>Diabetes</td> - <td>40</td> - </tr> - </table> - </div> - </text> - <!-- Family History Section Resource --> - <!-- <entry><reference value="http://fhirtest.uhn.ca/baseDstu3/FamilyMemberHistory/117652"/></entry>--> - </section> - <!-- History of Past Illness Section Narrative --> - <section> - <title value="History of Past Illness Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11348-0"/> - <display value="History of past illness"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>See History of Present Illness</p> - </div> - </text> - </section> - <!-- History of Present Illness Section Narrative --> - <section> - <title value="History of Present Illness Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10164-2"/> - <display value="History of present illness"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>This patient was only recently discharged for a recurrent GI bleed as described below. </p> - <p>He presented to the ER today c/o a dark stool yesterday but a normal brown - stool today. On exam he was hypotensive in the 80?s resolved after .... .... .... </p> - <p>Lab at discharge: Glucose 112, BUN 16, creatinine 1.1, electrolytes normal. - H. pylori antibody pending. Admission hematocrit 16%, discharge hematocrit 29%. WBC - 7300, platelet count 256,000. Urinalysis normal. Urine culture: No growth. INR 1.1, - PTT 40. </p> - <p>He was transfused with 6 units of packed red blood cells with .... .... .... </p> - <p>GI evaluation 12 September: Colonoscopy showed single red clot in .... ........ </p> - </div> - </text> - </section> - <!-- Social History Section Narrative --> - <section> - <title value="Social History Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="29762-2"/> - <display value="Social history"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Social History Element</b> - </td> - <td> - <b>Description</b> - </td> - <td> - <b>Effective Dates</b> - </td> - </tr> - <tr> - <td>Smoking</td> - <td>1 pack tobacco per day</td> - <td>2005/05/01 - 2010/02/28</td> - </tr> - </table> - </div> - </text> - <!-- Social History Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-some-day-smoker.xml"/> - </entry> - </section> - <!-- General Status Section Narrative --> - <section> - <title value=" General Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10210-3"/> - <display value="Physical findings of General status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Alert and in good spirits, no acute distress.</p> - </div> - </text> - </section> - <!-- Functional Status Section Narrative --> - <section> - <title value="Functional Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="47420-5"/> - <display value="Functional status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Functional or Cognitive Finding</b> - </td> - <td> - <b>Observation</b> - </td> - <td> - <b>Observation Date</b> - </td> - <td> - <b>Condition Status</b> - </td> - </tr> - <tr> - <td>Ambulation (Dependent to Independent</td> - <td>Independently able</td> - <td>2010/03/11</td> - <td>Active</td> - </tr> - <tr> - <td>Finding of Functional Performance and Activity</td> - <td>Dyspnea</td> - <td>2008/02/16</td> - <td>Active</td> - </tr> - <tr> - <td>Cognitive Function Finding</td> - <td>Memory Impairment</td> - <td>2014/04/29</td> - <td>Active</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Mental Status Section Narrative --> - <section> - <title value="Mental Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10190-7"/> - <display value="Mental status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table border="1" width="100%"> - <thead> - <tr> - <td> - <b>Mental Status Findings</b> - </td> - <td> - <b>Effective Dates</b> - </td> - <td> - <b>Condition Status</b> - </td> - </tr> - </thead> - <tr> - <td>Mental Function</td> - <td>July 31, 2013</td> - <td>Impaired</td> - </tr> - <tr> - <td>Cognitive Abilities</td> - <td>July 31, 2013</td> - <td>Judgement, Intact</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Aggressive Behavior</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Difficulty understanding own emotions</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Difficulty communicating Thoughts </td> - </tr> - </table> - </div> - </text> - </section> - <!-- Immunization Section Narrative --> - <section> - <title value="Immunizations Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11369-6"/> - <display value="History of immunization"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Vaccine</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Fluvax (Influenza)</td> - <td>2016-04-05</td> - <td>Completed</td> - </tr> - </table> - </div> - </text> - <!-- Immunization Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Immunization-imm-1.xml"/> - </entry> - </section> - <!-- Nutrition Section Narrative --> - <section> - <title value=" Nutrition Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="61144-2"/> - <display value="Diet and nutrition"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Date</b> - </td> - <td> - <b>Nutritional Status</b> - </td> - <td> - <b>Diet</b> - </td> - </tr> - <tr> - <td>2005/12/29</td> - <td>Well nourished</td> - <td>Low sodium diet, excessive carbohydrate</td> - </tr> - <tr> - <td>2010/05/26</td> - <td>Slight dehydration</td> - <td>High protein, low fibre</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Reason for Referral Section Narrative --> - <section> - <title value="Reason for Referral Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="42349-1"/> - <display value="Reason for Referral"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Colonoscopy</p> - </div> - </text> - </section> - <!-- Physical Exam Section Narrative --> - <section> - <title value="Physical Exam Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="29545-1"/> - <display value="Physical findings"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>HEENT: All normal to examination.</p> - <p>>HEART: RRR, no murmur.</p> - <p>THORAX & LUNGS: Clear without rhonchi or wheeze.</p> - <p>ABDOMEN: Marked distension and tenderness, slightly obese, pos bowelsounds.</p> - <p>BACK: Normal to inspection and palpation, without tenderness; no presacral edema.</p> - <p>EXTREMITIES: Doughy edema bilaterally, chronic stasis changes, no asymmetrical swelling.</p> - </div> - </text> - </section> - <!-- Review of Systems Section Narrative --> - <section> - <title value="Review of Systems Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10187-3"/> - <display value="Review of systems"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Patient denies recent history of fever or malaise. Positive for weakness and - shortness of breath. Several episodes of abdominal tenderness. No recent headaches. - Positive for osteoarthritis in hips, knees and hands. </p> - </div> - </text> - </section> - <!-- Medication Section Narrative --> - <section> - <title value="Medication Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10160-0"/> - <display value="History of Medication Use"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Medication</b> - </td> - <td> - <b>Directions</b> - </td> - <td> - <b>Start Date</b> - </td> - <td> - <b>Status</b> - </td> - <td> - <b>Indications</b> - </td> - <td> - <b>Fill Instructions</b> - </td> - </tr> - <tr> - <td>Amoxicillin</td> - <td>Amoxicillin Powder, for Suspension 250mg/5ml</td> - <td>20160401</td> - <td>Active</td> - <td>Pneumonia</td> - <td>Generic substitution allowed</td> - </tr> - </table> - </div> - </text> - <!-- Medication Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/MedicationStatement-uscore-ms1.xml"/> - </entry> - </section> - <!-- Medical Equipment Section Narrative --> - <section> - <title value="Medical Equipment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="46264-8"/> - <display value="Medical equipment"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Supply/Device</b> - </td> - <td> - <b>Date Supplied</b> - </td> - </tr> - <tr> - <td>Automatic Implantable cardioverter/defbrillator</td> - <td>2008/11/16</td> - </tr> - <tr> - <td>Wheelchair</td> - <td>1999/12/01</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Plan of Treatment Section Narrative --> - <section> - <title value="Plan of Treatment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="18776-5"/> - <display value="Plan of treatment"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Planned Activity</b> - </td> - <td> - <b>Period</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Colonoscopy</td> - <td>2010/08/16 - 2010/08/16</td> - <td>Completed</td> - </tr> - <tr> - <td>Recommendation to Exercise</td> - <td>2015/10/29</td> - <td>Ongoing</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Problem Section Narrative --> - <section> - <title value="Problem Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11450-4"/> - <display value="Problem List"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Problem Name</b> - </td> - <td> - <b>Type</b> - </td> - <td> - <b>Onset Date</b> - </td> - <td> - <b>Abatement Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Fever</td> - <td>Condition</td> - <td>2016-04-01</td> - <td>2016-04-14</td> - <td>Complete</td> - </tr> - </table> - </div> - </text> - <!-- Problem Section Condition Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Condition-hc1.xml"/> - </entry> - </section> - <!-- Procedures Section Narrative --> - <section> - <title value="Procedures Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="47519-4"/> - <display value="History of procedures"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Procedure Name</b> - </td> - <td> - <b>Body Site</b> - </td> - <td> - <b>Performer</b> - </td> - <td> - <b>Date Performed</b> - </td> - <td> - <b>Reason</b> - </td> - </tr> - <tr> - <td>Appendectomy (Procedure)</td> - <td>Abdomen</td> - <td>Dr. Adam Everyman</td> - <td>20160405</td> - <td>Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding</td> - </tr> - </table> - </div> - </text> - <!-- Procedures Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Procedure-rehab.xml"/> - </entry> - </section> - <!-- Results Section Narrative --> - <section> - <title value="Results Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="30954-2"/> - <display value="Relevant diagnostic tests and laboratory data"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Result Type</b> - </td> - <td> - <b>Quantity Value</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Glucose [Moles/volume] in Blood</td> - <td>6.3 mmol/l</td> - <td>2016/04/01</td> - <td>Final</td> - </tr> - </table> - </div> - </text> - <!-- Results Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-usg.xml"/> - </entry> - </section> - <!-- Vital Signs Section Narrative --> - <section> - <title value="Vital Signs Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="8716-3"/> - <display value="Vital signs"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Vital Sign</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Value</b> - </td> - </tr> - <tr> - <td>Temperature</td> - <td>2016/04/05</td> - <td>39 Degrees Celcius</td> - </tr> - </table> - </div> - </text> - <!-- Vital Signs Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-temperature.xml"/> - </entry> - </section> -</Composition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example.xml deleted file mode 100644 index 99c1dfebc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-example.xml +++ /dev/null @@ -1,911 +0,0 @@ -<Composition - xmlns="http://hl7.org/fhir"> - <id value="CCDA-on-FHIR-Referral-Note-Example"/> - <meta> - <versionId value="1"/> - <lastUpdated value="2016-06-15T08:16:14Z"/> - <profile value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA-on-FHIR-Referral-Note"/> - </meta> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Referral Note document for Amy Shaw</p> - <p>Managed by Community Health and Hospitals</p> - </div> - </text> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-data-enterer-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-informant-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-information-recipient-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-participant-extension"> - <valueUri value="http://hl7.org/fhir/relatedperson-example-peter.xml.html"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-performer-extension"> - <valueUri value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - </extension> - <extension url="http://hl7.org/fhir/ccda/StructureDefinition/ccda-authorization-extension"> - <valueUri value="http://hl7.org/fhir/ccda/StructureDefinition/ccda-consent"/> - </extension> - <identifier> - <system value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA_on_FHIR_Referral_Note"/> - <value value="1"/> - </identifier> - <status value="preliminary"/> - <type> - <coding> - <system value="http://loinc.org"/> - <code value="57133-1"/> - <display value="Referral Note"/> - </coding> - </type> - <!-- Patient Resource --> - <subject> - <reference value="http://hl7.org/fhir/us/core/Patient-example.xml"/> - <display value="Amy V. Shaw"/> - </subject> - <date value="2016-02-28T09:10:14Z"/> - <!-- Practitioner Resource --> - <author> - <reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - <display value="Ronald Boone, MD"/> - </author> - <title value="Referral Note"/> - <confidentiality value="N"/> - <attester> - <mode value="legal"/> - <time value="2012-01-04T09:10:14Z"/> - <party> - <reference value="http://hl7.org/fhir/us/core/Practitioner-practitioner-1.xml"/> - <display value="Ronald Boone, MD"/> - </party> - </attester> - <!-- Organization Resource --> - <custodian> - <reference value="http://hl7.org/fhir/us/core/Organization-acme-lab.xml"/> - <display value="Acme Labs"/> - </custodian> - <event> - <code> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v3-ActClass"/> - <code value="PCPR"/> - <display value="Care Provision"/> - </coding> - </code> - <period> - <start value="2015-11-18"/> - <end value="2015-12-12"/> - </period> - </event> - <!-- Encounter Resource --> - <!--<encounter><reference value="http://fhirtest.uhn.ca/baseDstu3/Encounter/117630"/></encounter>--> - <!-- Allergies and Intolerances Section Narrative --> - <section> - <title value="Allergies and Intolerances Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="48765-2"/> - <display value="Allergies and Adverse Reactions"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Substance</b> - </td> - <td> - <b>Overall Severity</b> - </td> - <td> - <b>Reaction</b> - </td> - <td> - <b>Reaction Severity</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Cashew Nut</td> - <td>Severe</td> - <td>Anaphylactic reaction</td> - <td>Mild</td> - <td>Active</td> - </tr> - </table> - </div> - </text> - <mode value="snapshot"/> - <orderedBy> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/list-order"/> - <code value="event-date"/> - <display value="Sorted by Event Date"/> - </coding> - </orderedBy> - <!-- Allergies and Intolerance Section Resource--> - <entry> - <reference value="http://hl7.org/fhir/us/core/AllergyIntolerance-example.xml"/> - </entry> - </section> - <!-- Advance Directives Section Narrative --> - <section> - <title value="Advance Directives Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="42348-3"/> - <display value="Advance directives"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Name</b> - </td> - <td> - <b>Applies Period</b> - </td> - </tr> - <tr> - <td>Resuscitation</td> - <td>2015/01/01 - 2016/12/31</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Assessment Section Narrative --> - <section> - <title value=" Assessment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="51848-0"/> - <display value="Assessment (evaluation)"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Obesity.</p> - <p>Uncontrolled brittle Type II diabetic.</p> - <p>Shortness of breath, mild wheezing.</p> - <p>Pressure ulder on left knee.</p> - </div> - </text> - </section> - <!-- Assessment and Plan Section Narrative --> - <section> - <title value="Assessment and Plan Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="51847-2"/> - <display value="Assessment (evaluation) and plan"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Recurrent GI bleed of unknown etiology; hypotension perhaps - secondary to this but as likely secondary to polypharmacy</p> - <p>Acute on chronic anemia secondary to #1.</p> - <p>Azotemia, acute renal failure with volume loss secondary tom#1.</p> - <p>Hyperkalemia secondary to #3 and on ACE and K+ supplement.</p> - <p>Other chronic diagnoses as noted above, currently stable.</p> - </div> - </text> - </section> - <!-- Family History Section Narrative --> - <section> - <title value="Family History Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10157-6"/> - <display value="History of family member diseases"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Relationship</b> - </td> - <td> - <b>Diagnosis</b> - </td> - <td> - <b>Age at Onset</b> - </td> - </tr> - <tr> - <td>Father</td> - <td>Myocardial Infarction(cause of Death)</td> - <td>57</td> - </tr> - <tr> - <td>Father</td> - <td>Diabetes</td> - <td>40</td> - </tr> - </table> - </div> - </text> - <!-- Family History Section Resource --> - <!-- <entry><reference value="http://fhirtest.uhn.ca/baseDstu3/FamilyMemberHistory/117652"/></entry>--> - </section> - <!-- History of Past Illness Section Narrative --> - <section> - <title value="History of Past Illness Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11348-0"/> - <display value="History of past illness"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>See History of Present Illness</p> - </div> - </text> - </section> - <!-- History of Present Illness Section Narrative --> - <section> - <title value="History of Present Illness Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10164-2"/> - <display value="History of present illness"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>This patient was only recently discharged for a recurrent GI bleed as described below. </p> - <p>He presented to the ER today c/o a dark stool yesterday but a normal brown - stool today. On exam he was hypotensive in the 80?s resolved after .... .... .... </p> - <p>Lab at discharge: Glucose 112, BUN 16, creatinine 1.1, electrolytes normal. - H. pylori antibody pending. Admission hematocrit 16%, discharge hematocrit 29%. WBC - 7300, platelet count 256,000. Urinalysis normal. Urine culture: No growth. INR 1.1, - PTT 40. </p> - <p>He was transfused with 6 units of packed red blood cells with .... .... .... </p> - <p>GI evaluation 12 September: Colonoscopy showed single red clot in .... ........ </p> - </div> - </text> - </section> - <!-- Social History Section Narrative --> - <section> - <title value="Social History Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="29762-2"/> - <display value="Social history"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Social History Element</b> - </td> - <td> - <b>Description</b> - </td> - <td> - <b>Effective Dates</b> - </td> - </tr> - <tr> - <td>Smoking</td> - <td>1 pack tobacco per day</td> - <td>2005/05/01 - 2010/02/28</td> - </tr> - </table> - </div> - </text> - <!-- Social History Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-some-day-smoker.xml"/> - </entry> - </section> - <!-- General Status Section Narrative --> - <section> - <title value=" General Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10210-3"/> - <display value="Physical findings of General status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Alert and in good spirits, no acute distress.</p> - </div> - </text> - </section> - <!-- Functional Status Section Narrative --> - <section> - <title value="Functional Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="47420-5"/> - <display value="Functional status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Functional or Cognitive Finding</b> - </td> - <td> - <b>Observation</b> - </td> - <td> - <b>Observation Date</b> - </td> - <td> - <b>Condition Status</b> - </td> - </tr> - <tr> - <td>Ambulation (Dependent to Independent</td> - <td>Independently able</td> - <td>2010/03/11</td> - <td>Active</td> - </tr> - <tr> - <td>Finding of Functional Performance and Activity</td> - <td>Dyspnea</td> - <td>2008/02/16</td> - <td>Active</td> - </tr> - <tr> - <td>Cognitive Function Finding</td> - <td>Memory Impairment</td> - <td>2014/04/29</td> - <td>Active</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Mental Status Section Narrative --> - <section> - <title value="Mental Status Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10190-7"/> - <display value="Mental status"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table border="1" width="100%"> - <thead> - <tr> - <td> - <b>Mental Status Findings</b> - </td> - <td> - <b>Effective Dates</b> - </td> - <td> - <b>Condition Status</b> - </td> - </tr> - </thead> - <tr> - <td>Mental Function</td> - <td>July 31, 2013</td> - <td>Impaired</td> - </tr> - <tr> - <td>Cognitive Abilities</td> - <td>July 31, 2013</td> - <td>Judgement, Intact</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Aggressive Behavior</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Difficulty understanding own emotions</td> - </tr> - <tr> - <td>Cognitive Function</td> - <td>July 31, 2013</td> - <td>Difficulty communicating Thoughts </td> - </tr> - </table> - </div> - </text> - </section> - <!-- Immunization Section Narrative --> - <section> - <title value="Immunizations Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11369-6"/> - <display value="History of immunization"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Vaccine</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Fluvax (Influenza)</td> - <td>2016-04-05</td> - <td>Completed</td> - </tr> - </table> - </div> - </text> - <!-- Immunization Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Immunization-imm-1.xml"/> - </entry> - </section> - <!-- Nutrition Section Narrative --> - <section> - <title value=" Nutrition Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="61144-2"/> - <display value="Diet and nutrition"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Date</b> - </td> - <td> - <b>Nutritional Status</b> - </td> - <td> - <b>Diet</b> - </td> - </tr> - <tr> - <td>2005/12/29</td> - <td>Well nourished</td> - <td>Low sodium diet, excessive carbohydrate</td> - </tr> - <tr> - <td>2010/05/26</td> - <td>Slight dehydration</td> - <td>High protein, low fibre</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Reason for Referral Section Narrative --> - <section> - <title value="Reason for Referral Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="42349-1"/> - <display value="Reason for Referral"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Colonoscopy</p> - </div> - </text> - </section> - <!-- Physical Exam Section Narrative --> - <section> - <title value="Physical Exam Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="29545-1"/> - <display value="Physical findings"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>HEENT: All normal to examination.</p> - <p>>HEART: RRR, no murmur.</p> - <p>THORAX & LUNGS: Clear without rhonchi or wheeze.</p> - <p>ABDOMEN: Marked distension and tenderness, slightly obese, pos bowelsounds.</p> - <p>BACK: Normal to inspection and palpation, without tenderness; no presacral edema.</p> - <p>EXTREMITIES: Doughy edema bilaterally, chronic stasis changes, no asymmetrical swelling.</p> - </div> - </text> - </section> - <!-- Review of Systems Section Narrative --> - <section> - <title value="Review of Systems Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10187-3"/> - <display value="Review of systems"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <p>Patient denies recent history of fever or malaise. Positive for weakness and - shortness of breath. Several episodes of abdominal tenderness. No recent headaches. - Positive for osteoarthritis in hips, knees and hands. </p> - </div> - </text> - </section> - <!-- Medication Section Narrative --> - <section> - <title value="Medication Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="10160-0"/> - <display value="History of Medication Use"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Medication</b> - </td> - <td> - <b>Directions</b> - </td> - <td> - <b>Start Date</b> - </td> - <td> - <b>Status</b> - </td> - <td> - <b>Indications</b> - </td> - <td> - <b>Fill Instructions</b> - </td> - </tr> - <tr> - <td>Amoxicillin</td> - <td>Amoxicillin Powder, for Suspension 250mg/5ml</td> - <td>20160401</td> - <td>Active</td> - <td>Pneumonia</td> - <td>Generic substitution allowed</td> - </tr> - </table> - </div> - </text> - <!-- Medication Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/MedicationStatement-uscore-ms1.xml"/> - </entry> - </section> - <!-- Medical Equipment Section Narrative --> - <section> - <title value="Medical Equipment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="46264-8"/> - <display value="Medical equipment"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Supply/Device</b> - </td> - <td> - <b>Date Supplied</b> - </td> - </tr> - <tr> - <td>Automatic Implantable cardioverter/defbrillator</td> - <td>2008/11/16</td> - </tr> - <tr> - <td>Wheelchair</td> - <td>1999/12/01</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Plan of Treatment Section Narrative --> - <section> - <title value="Plan of Treatment Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="18776-5"/> - <display value="Plan of treatment"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Planned Activity</b> - </td> - <td> - <b>Period</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Colonoscopy</td> - <td>2010/08/16 - 2010/08/16</td> - <td>Completed</td> - </tr> - <tr> - <td>Recommendation to Exercise</td> - <td>2015/10/29</td> - <td>Ongoing</td> - </tr> - </table> - </div> - </text> - </section> - <!-- Problem Section Narrative --> - <section> - <title value="Problem Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="11450-4"/> - <display value="Problem List"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Problem Name</b> - </td> - <td> - <b>Type</b> - </td> - <td> - <b>Onset Date</b> - </td> - <td> - <b>Abatement Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Fever</td> - <td>Condition</td> - <td>2016-04-01</td> - <td>2016-04-14</td> - <td>Complete</td> - </tr> - </table> - </div> - </text> - <!-- Problem Section Condition Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Condition-hc1.xml"/> - </entry> - </section> - <!-- Procedures Section Narrative --> - <section> - <title value="Procedures Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="47519-4"/> - <display value="History of procedures"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Procedure Name</b> - </td> - <td> - <b>Body Site</b> - </td> - <td> - <b>Performer</b> - </td> - <td> - <b>Date Performed</b> - </td> - <td> - <b>Reason</b> - </td> - </tr> - <tr> - <td>Appendectomy (Procedure)</td> - <td>Abdomen</td> - <td>Dr. Adam Everyman</td> - <td>20160405</td> - <td>Generalized abdominal pain 24 hours. Localized in RIF with rebound and guarding</td> - </tr> - </table> - </div> - </text> - <!-- Procedures Section Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Procedure-rehab.xml"/> - </entry> - </section> - <!-- Results Section Narrative --> - <section> - <title value="Results Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="30954-2"/> - <display value="Relevant diagnostic tests and laboratory data"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Result Type</b> - </td> - <td> - <b>Quantity Value</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Status</b> - </td> - </tr> - <tr> - <td>Glucose [Moles/volume] in Blood</td> - <td>6.3 mmol/l</td> - <td>2016/04/01</td> - <td>Final</td> - </tr> - </table> - </div> - </text> - <!-- Results Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-usg.xml"/> - </entry> - </section> - <!-- Vital Signs Section Narrative --> - <section> - <title value="Vital Signs Section"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="8716-3"/> - <display value="Vital signs"/> - </coding> - </code> - <text> - <status value="generated"/> - <div - xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tr> - <td> - <b>Vital Sign</b> - </td> - <td> - <b>Date</b> - </td> - <td> - <b>Value</b> - </td> - </tr> - <tr> - <td>Temperature</td> - <td>2016/04/05</td> - <td>39 Degrees Celcius</td> - </tr> - </table> - </div> - </text> - <!-- Vital Signs Section Observation Resource --> - <entry> - <reference value="http://hl7.org/fhir/us/core/Observation-temperature.xml"/> - </entry> - </section> -</Composition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-profile.xml deleted file mode 100644 index 4b3003c70..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/ccda-profile.xml +++ /dev/null @@ -1,1222 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="CCDA-on-FHIR-Referral-Note"/> - <url value="http://hl7.org/fhir/ccda/StructureDefinition/CCDA-on-FHIR-Referral-Note"/> - <name value="C-CDA on FHIR Referral Note"/> - <status value="draft"/> - <publisher value="River Rock Associates"/> - <contact> - <name value="Brett Marquard"/> - <telecom> - <system value="phone"/> - <value value="4135496886"/> - <use value="work"/> - </telecom> - <telecom> - <system value="email"/> - <value value="brett@riverrockassociates.com"/> - <use value="work"/> - </telecom> - </contact> - <description - value="A Referral Note communicates pertinent information from a provider who is requesting services of another provider of clinical or non-clinical services. The information in this document includes the reason for the referral and additional information that would augment decision making and care delivery. Examples of referral situations are: * When a patient is referred from a family physician to a cardiologist for cardiac evaluation. * When patient is sent by a cardiologist to an emergency department for angina. * When a patient is referred by a nurse practitioner to an audiologist for hearing screening. * When a patient is referred by a hospitalist to social services."/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Composition"/> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/Composition"/> - <derivation value="constraint"/> - <differential> - <element id="7055-00001"> - <path value="Composition"/> - </element> - <element id="107701"> - <path value="Composition.type"/> - <short value="type"/> - <definition - value="SHALL contain exactly one [1..1] type, which SHALL be selected from ValueSet ReferralDocumentType http://hl7.org/fhir/ccda/ValueSet/2.16.840.1.113883.1.11.20.2.3 DYNAMIC (CONF:2219-1365)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <binding> - <strength value="required"/> - <valueSet value="ValueSet/2.16.840.1.113883.1.11.20.2.3"/> - </binding> - </element> - <element id="7055-02"> - <path value="Composition.section"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="code"/> - </discriminator> - <rules value="open"/> - </slicing> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2057) such that it" /> - </element> - <element id="107700"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos2"/> - <label value="Allergies and Intolerances Section"/> - <short value="Allergies and Intolerances Section"/> - <definition - value="SHALL contain exactly one [1..1] section (CONF:2219-1364) such that it"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111256"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos2"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2079)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111257"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos2"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="48765-2" Allergies and Adverse Reactions (CodeSystem: LOINC http://loinc.org) (CONF:2219-2080)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="48765-2"/> - <display value="Allergies and Adverse Reactions"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111258"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos2"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2081)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112076"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos2"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core AllergyIntolerance Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance) (CONF:2219-2244)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance" - /> - </type> - </element> - <element id="107705"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos3"/> - <label value="Medications Section"/> - <short value="Medications Section"/> - <definition - value="SHALL contain exactly one [1..1] section (CONF:2219-1369) such that it"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107708"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos3"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1372)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107709"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos3"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10160-0" History of Medication Use (CodeSystem: LOINC http://loinc.org) (CONF:2219-1373)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10160-0"/> - <display value="History of Medication Use"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107710"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos3"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1374)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112077"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos3"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core MedicationStatement Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement) (CONF:2219-2245)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-medicationstatement" - /> - </type> - </element> - <element id="107707"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos4"/> - <label value="Problem Section "/> - <short value="Problem Section "/> - <definition - value="SHALL contain exactly one [1..1] section (CONF:2219-1371) such that it"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107714"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos4"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1378)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107715"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos4"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="11450-4" Problem List (CodeSystem: LOINC http://loinc.org) (CONF:2219-1379)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="11450-4"/> - <display value="Problem List"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107716"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos4"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1380)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112078"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos4"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core Condition Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition) (CONF:2219-2246)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"/> - </type> - </element> - <element id="107706"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos5"/> - <label value="Reason for Referral Section"/> - <short value="Reason for Referral Section"/> - <definition - value="SHALL contain exactly one [1..1] section (CONF:2219-1370) such that it"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107711"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos5"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1375)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107712"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos5"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="42349-1" Reason for Referral (CodeSystem: LOINC http://loinc.org) (CONF:2219-1376)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="42349-1"/> - <display value="Reason for Referral"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107713"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos5"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1377)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111192"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos6"/> - <label value="Functional Status Section"/> - <short value="Functional Status Section"/> - <definition - value="SHOULD contain zero or one [0..1] section (CONF:2219-2015) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111196"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos6"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2019)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111197"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos6"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="47420-5" Functional Status Assessment (CodeSystem: LOINC http://loinc.org) (CONF:2219-2020)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="47420-5"/> - <display value="Functional Status Assessment"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111198"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos6"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2021)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111195"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos7"/> - <label value="Mental Status Section"/> - <short value="Mental Status Section"/> - <definition - value="SHOULD contain zero or one [0..1] section (CONF:2219-2018) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111205"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos7"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2028)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111206"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos7"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10190-7" Mental Status (CodeSystem: LOINC http://loinc.org) (CONF:2219-2029)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10190-7"/> - <display value="Mental Status"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111207"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos7"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2030)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111194"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos8"/> - <label value="Nutrition Section"/> - <short value="Nutrition Section"/> - <definition - value="SHOULD contain zero or one [0..1] section (CONF:2219-2017) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111202"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos8"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2025)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111203"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos8"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="61144-2" Diet and Nutrition (CodeSystem: LOINC http://loinc.org) (CONF:2219-2026)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="61144-2"/> - <display value="Diet and Nutrition"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111204"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos8"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2027)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107718"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos9"/> - <label value="Plan of Treatment Section"/> - <short value="Plan of Treatment Section"/> - <definition - value="SHOULD contain zero or one [0..1] section (CONF:2219-1382) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="107723"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos9"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1387)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107724"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos9"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="18776-5" Plan of Care (CodeSystem: LOINC http://loinc.org) (CONF:2219-1388)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="18776-5"/> - <display value="Plan of Care"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107725"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos9"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1389)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111193"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos10"/> - <label value="Results Section"/> - <short value="Results Section"/> - <definition - value="SHOULD contain zero or one [0..1] section (CONF:2219-2016) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111199"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos10"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2022)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111200"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos10"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="30954-2" Relevant Diagnostic Tests/?Laboratory Data (CodeSystem: LOINC http://loinc.org) (CONF:2219-2023)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="30954-2"/> - <display value="Relevant Diagnostic Tests/?Laboratory Data"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111201"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos10"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2024)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112079"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos10"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core ObservationResults Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults) (CONF:2219-2247)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-observationresults" - /> - </type> - </element> - <element id="107717"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos11"/> - <label value="Assessment and Plan Section "/> - <short value="Assessment and Plan Section "/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-1381) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="107720"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos11"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1384)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107721"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos11"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="51847-2" Assessment and Plan (CodeSystem: LOINC http://loinc.org) (CONF:2219-1385)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="51847-2"/> - <display value="Assessment and Plan"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107722"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos11"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1386)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111208"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos12"/> - <label value="Advance Directives Section"/> - <short value="Advance Directives Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2031) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111213"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos12"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2036)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111214"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos12"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="42348-3" Advance Directives (CodeSystem: LOINC http://loinc.org) (CONF:2219-2037)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="42348-3"/> - <display value="Advance Directives "/> - </coding> - </patternCodeableConcept> - </element> - <element id="111215"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos12"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2038)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107719"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos13"/> - <label value="Assessment Section"/> - <short value="Assessment Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-1383) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="107726"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos13"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-1390)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="107727"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos13"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="51848-0" Assessment (CodeSystem: LOINC http://loinc.org) (CONF:2219-1391)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="51848-0"/> - <display value="Assessment"/> - </coding> - </patternCodeableConcept> - </element> - <element id="107728"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos13"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-1392)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111212"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos14"/> - <label value="Family History Section"/> - <short value="Family History Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2035) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111225"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos14"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2048)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111226"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos14"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10157-6" History of Family Member Diseases (CodeSystem: LOINC http://loinc.org) (CONF:2219-2049)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10157-6"/> - <display value="History of Family Member Diseases"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111227"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos14"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2050)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112080"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos14"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] FamilyMemberHistory (identifier: http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory) (CONF:2219-2248)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory"/> - </type> - </element> - <element id="111211"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos15"/> - <label value="General Status Section"/> - <short value="General Status Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2034) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111222"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos15"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2045)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111223"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos15"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10210-3" Physical Findings of General Status (CodeSystem: LOINC http://loinc.org) (CONF:2219-2046)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10210-3"/> - <display value="Physical Findings of General Status"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111224"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos15"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2047)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111210"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos16"/> - <label value="History of Past Illness Section"/> - <short value="History of Past Illness Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2033) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111219"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos16"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2042)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111220"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos16"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="11348-0" History of Past Illness (CodeSystem: LOINC http://loinc.org) (CONF:2219-2043)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="11348-0"/> - <display value=" History of Past Illness"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111221"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos16"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2044)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="125547"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos16"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core Condition Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition) (CONF:2219-2471)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-condition"/> - </type> - </element> - <element id="111209"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos17"/> - <label value="History of Present Illness Section"/> - <short value="History of Present Illness Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2032) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111216"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos17"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2039)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111217"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos17"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10164-2" History of Present Illness (CodeSystem: LOINC http://loinc.org) (CONF:2219-2040)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10164-2"/> - <display value="History of Present Illness"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111218"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos17"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2041)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111228"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos18"/> - <label value="Immunizations Section"/> - <short value="Immunizations Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2051) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111235"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos18"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2058)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111249"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos18"/> - <short value="code"/> - <definition - value="MAY contain zero or one [0..1] code="11369-6" History of Immunization (CodeSystem: LOINC http://loinc.org) (CONF:2219-2072)."/> - <min value="0"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="11369-6"/> - <display value="History of Immunization"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111236"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos18"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2059)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112081"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos18"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core Immunization Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization) (CONF:2219-2249)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-immunization"/> - </type> - </element> - <element id="111234"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos19"/> - <label value="Medical Equipment Section"/> - <short value="Medical Equipment Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2057) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111247"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos19"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2070)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111255"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos19"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="46264-8" History of Medical Device Use (CodeSystem: LOINC http://loinc.org) (CONF:2219-2078)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="46264-8"/> - <display value="History of Medical Device Use"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111248"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos19"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2071)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111233"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos20"/> - <label value="Physical Exam Section"/> - <short value="Physical Exam Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2056) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111245"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos20"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2068)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111254"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos20"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="29545-1" Physical Findings (CodeSystem: LOINC http://loinc.org) (CONF:2219-2077)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="29545-1"/> - <display value="Physical Findings"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111246"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos20"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2069)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111232"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos21"/> - <label value="Procedures Section"/> - <short value="Procedures Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2055) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111243"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos21"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2066)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111253"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos21"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="47519-4" History of Procedures (CodeSystem: LOINC http://loinc.org) (CONF:2219-2076)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="47519-4"/> - <display value="History of Procedures"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111244"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos21"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2067)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112083"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos21"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core Procedure Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure) (CONF:2219-2251)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"/> - </type> - </element> - <element id="111231"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos22"/> - <label value="Review of Systems Section"/> - <short value="Review of Systems Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2054) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111241"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos22"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2064)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111252"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos22"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="10187-3" Review of Systems (CodeSystem: LOINC http://loinc.org) (CONF:2219-2075)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="10187-3"/> - <display value="Review of Systems"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111242"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos22"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2065)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111230"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos23"/> - <label value="Social History Section"/> - <short value="Social History Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2053) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111239"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos23"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2062)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111251"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos23"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="29762-2" Social History (CodeSystem: LOINC http://loinc.org) (CONF:2219-2074)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="29762-2"/> - <display value="Social History"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111240"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos23"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2063)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112606"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos23"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core SmokingStatus Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus) (CONF:2219-2452)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-smokingstatus"/> - </type> - </element> - <element id="111229"> - <path value="Composition.section"/> - <sliceName value="section_slice_pos24"/> - <label value="Vital Signs Section"/> - <short value="Vital Signs Section"/> - <definition value="MAY contain zero or one [0..1] section (CONF:2219-2052) such that it"/> - <min value="0"/> - <max value="1"/> - </element> - <element id="111237"> - <path value="Composition.section.title"/> - <sliceName value="section_slice_pos24"/> - <short value="title"/> - <definition value="SHALL contain exactly one [1..1] title (CONF:2219-2060)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="111250"> - <path value="Composition.section.code"/> - <sliceName value="section_slice_pos24"/> - <short value="code"/> - <definition - value="SHALL contain exactly one [1..1] code="8716-3" Vital Signs (CodeSystem: LOINC http://loinc.org) (CONF:2219-2073)."/> - <min value="1"/> - <max value="1"/> - <type> - <code value="CodeableConcept"/> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org"/> - <code value="8716-3"/> - <display value="Vital Signs"/> - </coding> - </patternCodeableConcept> - </element> - <element id="111238"> - <path value="Composition.section.text"/> - <sliceName value="section_slice_pos24"/> - <short value="text"/> - <definition value="SHALL contain exactly one [1..1] text (CONF:2219-2061)."/> - <min value="1"/> - <max value="1"/> - </element> - <element id="112082"> - <path value="Composition.section.entry"/> - <sliceName value="section_slice_pos24"/> - <short value="entry"/> - <definition - value="MAY contain zero or more [0..*] U.S. Core VitalSigns Profile (identifier: http://hl7.org/fhir/us/core/StructureDefinition/us-core-vitalsigns) (CONF:2219-2250)."/> - <min value="0"/> - <max value="*"/> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/us/core/StructureDefinition/us-core-vitalsigns"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-correct.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/code-correct.xml deleted file mode 100644 index 012ec7662..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-correct.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Basic xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <version value="http://snomed.info/sct/32506021000036107/version/20170403"/> - <code value="132037003"/> - <display value="Pineywoods pig breed"/> - </coding> - </code> -</Basic> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-display.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-display.xml deleted file mode 100644 index 03734f811..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-display.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Basic xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <version value="http://snomed.info/sct/32506021000036107/version/20170403"/> - <code value="132037003"/> - <display value="Pineywoods pig breed. Not."/> - </coding> - </code> -</Basic> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system-vs.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system-vs.xml deleted file mode 100644 index 8044450fc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system-vs.xml +++ /dev/null @@ -1,9 +0,0 @@ -<Basic xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://hl7.org/fhir/ValueSet/account-type"/> - <code value="132037003"/> - <display value="Pineywoods pig breed"/> - </coding> - </code> -</Basic> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system.xml deleted file mode 100644 index fe62a23f4..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/code-wrong-system.xml +++ /dev/null @@ -1,9 +0,0 @@ -<Basic xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://snomed.info/sct/32506021000036107/version/20170403"/> - <code value="132037003"/> - <display value="Pineywoods pig breed"/> - </coding> - </code> -</Basic> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/contained.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/contained.json deleted file mode 100644 index a1da6dbb5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/contained.json +++ /dev/null @@ -1,21 +0,0 @@ -{ -"resourceType": "Questionnaire", -"id": "questionnaire-test-frag", -"url": "http://example.com/fhir/Questionnaire/test-1", -"status": "draft", -"item": [ -{ -"linkId": "q1", -"type": "choice", -"answerValueSet": "#options-1" -} -], -"contained": [ -{ -"resourceType": "ValueSet", -"id": "options-1", -"url": "http://example.com/fhir/ValueSet/options-1", -"status": "draft" -} -] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-bad-sections.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-bad-sections.xml deleted file mode 100644 index e3169f02f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-bad-sections.xml +++ /dev/null @@ -1,57 +0,0 @@ -<!-- -Conforms to the document-structure template - --> -<Composition xmlns="http://hl7.org/fhir"> - <id value="test-document-good"/> - <status value="final"/> - <type> - <text value="test document"/> - </type> - <date value="2018-11-06T07:14:00+11:00"/> - <author> - <display value="grahame grieve"/> - </author> - <title value="TestDocument"/> - <!-- codea section --> - <section> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-a"/> - </coding> - </code> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code A Section</div> - </text> - </section> - <!-- codeb section --> - <section> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-b"/> - </coding> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/other"/> - <code value="other"/> - </coding> - </code> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code B Section</div> - </text> - </section> - <section> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-c"/> - </coding> - </code> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code C Section</div> - </text> - </section> -</Composition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-no-sections.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-no-sections.xml deleted file mode 100644 index 1afe40d5a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-bad-no-sections.xml +++ /dev/null @@ -1,17 +0,0 @@ -<!-- -Does not conforms to the document-structure template: - -- no sections - --> -<Composition xmlns="http://hl7.org/fhir"> - <id value="test-document-good"/> - <status value="final"/> - <type> - <text value="test document"/> - </type> - <date value="2018-11-06T07:14:00+11:00"/> - <author> - <display value="grahame grieve"/> - </author> - <title value="TestDocument"/> -</Composition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/document-good.xml deleted file mode 100644 index 01cb10a1d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-good.xml +++ /dev/null @@ -1,62 +0,0 @@ -<!-- -Conforms to the document-structure template - --> -<Composition xmlns="http://hl7.org/fhir"> - <id value="test-document-good"/> - <status value="final"/> - <type> - <text value="test document"/> - </type> - <date value="2018-11-06T07:14:00+11:00"/> - <author> - <display value="grahame grieve"/> - </author> - <title value="TestDocument"/> - <!-- codea section --> - <section> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-a"/> - </coding> - </code> - <focus> - <display value="some value for conformance purposes"/> - </focus> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code A Section</div> - </text> - </section> - <!-- codeb section --> - <section> - <title value="section title"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-b"/> - </coding> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/other"/> - <code value="other"/> - </coding> - </code> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code B Section</div> - </text> - </section> - <section> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-c"/> - </coding> - </code> - <text> - <status value="additional"/> - <div xmlns="http://www.w3.org/1999/xhtml">Code C Section</div> - </text> - <mode value="working"/> - </section> -</Composition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-section-library.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/document-section-library.xml deleted file mode 100644 index caf3f0573..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-section-library.xml +++ /dev/null @@ -1,104 +0,0 @@ -<!-- -Document section library - a set of section structure definitions that are intended to be re-used elsewhere - -Defines 3 sections: -- codeA -- codeB -- codeC - -These should be sliced by pattern on Section.code - --> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="document-section-library"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/document-section-library"/> - <name value="DocumentSectionLibrary"/> - <title value="Document Section Library (For testing section templates)"/> - <status value="active"/> - <experimental value="false"/> - <date value="2018-11-05T17:57:00+11:00"/> - <kind value="complex-type"/> - <abstract value="true"/> - <type value="Composition"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition"/> - <derivation value="constraint"/> - <differential> - <element> - <!-- this is present to work around a bug in the snapshot generator --> - <path value="Composition"/> - </element> - <element> - <!-- set up slicing on Composition.section - by the code. Actually, this slicing is never used anywhere since this library is abstract --> - <path value="Composition.section"/> - <slicing> - <discriminator> - <type value="pattern"/> - <path value="code"/> - </discriminator> - <description value="Slice by .section.code when using this library of sections"/> - <ordered value="true"/> - <rules value="closed"/> - </slicing> - </element> - - <!-- code B --> - <element> - <path value="Composition.section"/> - <sliceName value="codeB"/> - </element> - <element> - <path value="Composition.section.title"/> - <min value="1"/> - </element> - <element> - <path value="Composition.section.code"/> - <min value="1"/> - <patternCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-b"/> - </coding> - </patternCodeableConcept> - </element> - - <!-- code A --> - <element> - <path value="Composition.section"/> - <sliceName value="codeA"/> - </element> - <element> - <path value="Composition.section.code"/> - <min value="1"/> - <patternCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-a"/> - </coding> - </patternCodeableConcept> - </element> - <element> - <path value="Composition.section.focus"/> - <min value="1"/> - </element> - - <!-- code C --> - <element> - <path value="Composition.section"/> - <sliceName value="codeC"/> - </element> - <element> - <path value="Composition.section.code"/> - <min value="1"/> - <patternCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/imaginary"/> - <code value="code-c"/> - </coding> - </patternCodeableConcept> - </element> - <element> - <path value="Composition.section.mode"/> - <min value="1"/> - </element> - - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-structure.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/document-structure.xml deleted file mode 100644 index 8b70cabca..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/document-structure.xml +++ /dev/null @@ -1,84 +0,0 @@ -<!-- -Document structure definition - -uses the section library to require 3 sections, each -with a different code: - - code a - - code b - - code c - --> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="document-structure"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/document-structure"/> - <name value="DocumentStructure"/> - <title value="Document Structure (For testing section templates)"/> - <status value="active"/> - <experimental value="false"/> - <date value="2018-11-05T17:47:00+11:00"/> - <kind value="complex-type"/> - <abstract value="false"/> - <type value="Composition"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Composition"/> - <derivation value="constraint"/> - <differential> - <element> - <!-- this is present to work around a bug in the snapshot generator --> - <path value="Composition"/> - </element> - <element> - <!-- set up slicing on Composition.section - by the code --> - <path value="Composition.section"/> - <slicing> - <discriminator> - <type value="pattern"/> - <path value="code"/> - </discriminator> - <description value="Slice by .section.code"/> - <ordered value="true"/> - <rules value="closed"/> - </slicing> - </element> - <element> - <!-- first slice --> - <path value="Composition.section"/> - <sliceName value="code-A"/> - <min value="1"/> - <type> - <code value="BackboneElement"/> - <profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element"> - <valueString value="Composition.section:codeA"/> - </extension> - </profile> - </type> - </element> - <element> - <!-- first slice --> - <path value="Composition.section"/> - <sliceName value="code-B"/> - <min value="1"/> - <type> - <code value="BackboneElement"/> - <profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element"> - <valueString value="Composition.section:codeB"/> - </extension> - </profile> - </type> - </element> - <element> - <!-- first slice --> - <path value="Composition.section"/> - <sliceName value="code-C"/> - <min value="0"/> - <type> - <code value="BackboneElement"/> - <profile value="http://hl7.org/fhir/test/StructureDefinition/document-section-library"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element"> - <valueString value="Composition.section:codeC"/> - </extension> - </profile> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/duplicate-security-tags.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/duplicate-security-tags.xml deleted file mode 100644 index 39113aeb2..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/duplicate-security-tags.xml +++ /dev/null @@ -1,23 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="pat-good"/> - <meta> - <security> - <system value="http://test.org"/> - <code value="x"/> - </security> - <security> - <system value="http://test.org"/> - <code value="y"/> - </security> - <security> - <system value="http://test.org"/> - <code value="x"/> - </security> - </meta> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - some text in no particular language - </div> - </text> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/entry-resource-bad1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/entry-resource-bad1.xml deleted file mode 100644 index 925d59da0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/entry-resource-bad1.xml +++ /dev/null @@ -1,12 +0,0 @@ -<Bundle xmlns="http://hl7.org/fhir"> - <id value="bundle"/> - <type value="collection"/> - <entry> - <fullUrl value="http://acme.com/Patient/pat1"/> - <resource> - <Patient> - <id value="pat2"/> - </Patient> - </resource> - </entry> -</Bundle> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice-profile.xml deleted file mode 100644 index 5ce3683c7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice-profile.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!--<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../../../../../FHIR/schema/fhir-single.xsd">--> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="extension-slice-profile"/> - <url value="http://hl7.org/fhir/StructureDefinition/extension-slice-profile"/> - <name value="ExtensionSliceProfile"/> - <status value="draft"/> - <description value="Test slicing by extension with fixed value"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <differential> - <element id="Patient"> - <path value="Patient"/> - </element> - <element id="Patient.name"> - <path value="Patient.name"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="extension('http://hl7.org/fhir/StructureDefinition/data-absent-reason').value"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.name:foo"> - <path value="Patient.name"/> - <sliceName value="foo"/> - <min value="1"/> - </element> - <element id="Patient.name:foo.extension:dar"> - <path value="Patient.name.extension"/> - <sliceName value="dar"/> - <min value="1"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/data-absent-reason"/> - </type> - </element> - <element id="Patient.name:foo.extension:dar.valueCode"> - <path value="Patient.name.extension.valueCode"/> - <fixedCode value="unknown"/> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice.xml deleted file mode 100644 index 4fa5a6581..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/extension-slice.xml +++ /dev/null @@ -1,13 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="extension-slice"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <name> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </name> -</Patient> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-bad.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-bad.json deleted file mode 100644 index da242b05e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-bad.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "CareTeam", - "participant": [ - { - "member": { - "reference": "Practitioner/notprac" - }, - - "onBehalfOf": { - "reference": "Organization/2" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-good.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-good.json deleted file mode 100644 index 9e133ff54..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-good.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "CareTeam", - "participant": [ - { - "member": { - "reference": "Practitioner/1" - }, - - "onBehalfOf": { - "reference": "Organization/2" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-null.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-null.json deleted file mode 100644 index 59c22f1cb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/fhirpath-null.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "CareTeam", - "participant": [ - { - "member": { - "reference": "Practitioner/x" - }, - - "onBehalfOf": { - "reference": "Organization/2" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.json deleted file mode 100644 index 5332871a4..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true, - "characteristic": [ - { - "code": { - "text": "test" - }, - "value": true, - "exclude": false - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.ttl deleted file mode 100644 index 832a0e545..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.ttl +++ /dev/null @@ -1,21 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]; - fhir:Group.characteristic [ - fhir:index 0; - fhir:Group.characteristic.code [ - fhir:CodeableConcept.text [ fhir:value "test" ] - ]; - fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.xml deleted file mode 100644 index cd59c7eeb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad1.xml +++ /dev/null @@ -1,11 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> - <characteristic> - <code> - <text value="test"/> - </code> - <value value="true"/> - <exclude value="false"/> - </characteristic> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.json deleted file mode 100644 index a6f7c1f7d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true, - "characteristic": [ - { - "code": { - "text": "test" - }, - "valueInteger": 1, - "exclude": false - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.ttl deleted file mode 100644 index 832a0e545..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.ttl +++ /dev/null @@ -1,21 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]; - fhir:Group.characteristic [ - fhir:index 0; - fhir:Group.characteristic.code [ - fhir:CodeableConcept.text [ fhir:value "test" ] - ]; - fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.xml deleted file mode 100644 index 00c997a01..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad2.xml +++ /dev/null @@ -1,11 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> - <characteristic> - <code> - <text value="test"/> - </code> - <valueInteger value="1"/> - <exclude value="false"/> - </characteristic> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.json deleted file mode 100644 index 2d555e08c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true, - "characteristic": [ - { - "code": { - "text": "test" - }, - "valueBoolean": 1, - "exclude": false - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.ttl deleted file mode 100644 index fd7594fcc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.ttl +++ /dev/null @@ -1,22 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]; - fhir:Group.characteristic [ - fhir:index 0; - fhir:Group.characteristic.code [ - fhir:CodeableConcept.text [ fhir:value "test" ] - ]; - fhir:Group.characteristic.valueBoolean [ fhir:value "1"^^xsd:boolean ]; - fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.xml deleted file mode 100644 index 7382ea0f6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-bad3.xml +++ /dev/null @@ -1,11 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> - <characteristic> - <code> - <text value="test"/> - </code> - <valueBoolean value="1"/> - <exclude value="false"/> - </characteristic> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.json deleted file mode 100644 index fa4e1e023..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true, - "characteristic": [ - { - "code": {} - "valueBoolean": true, - "exclude": false - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.ttl deleted file mode 100644 index a632d1ada..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.ttl +++ /dev/null @@ -1,20 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]; - fhir:Group.characteristic [ - fhir:index 0; - fhir:Group.characteristic.code [ ]; - fhir:Group.characteristic.valueBoolean [ fhir:value "true"^^xsd:boolean ]; - fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.xml deleted file mode 100644 index af528f189..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-empty.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> - <characteristic> - <code> - </code> - <valueBoolean value="true"/> - <exclude value="false"/> - </characteristic> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.json deleted file mode 100644 index 2e8fd10a6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true, - "characteristic": [ - { - "code": { - "text": "test" - }, - "valueBoolean": true, - "exclude": false - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.ttl deleted file mode 100644 index ac0134893..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.ttl +++ /dev/null @@ -1,22 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]; - fhir:Group.characteristic [ - fhir:index 0; - fhir:Group.characteristic.code [ - fhir:CodeableConcept.text [ fhir:value "test" ] - ]; - fhir:Group.characteristic.valueBoolean [ fhir:value "true"^^xsd:boolean ]; - fhir:Group.characteristic.exclude [ fhir:value "false"^^xsd:boolean ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.xml deleted file mode 100644 index 7d31e2050..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-choice-good.xml +++ /dev/null @@ -1,11 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> - <characteristic> - <code> - <text value="test"/> - </code> - <valueBoolean value="true"/> - <exclude value="false"/> - </characteristic> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.json deleted file mode 100644 index 42752f1ef..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.json +++ /dev/null @@ -1 +0,0 @@ -{"resourceType":"Group","type":"person","actual":true} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.ttl deleted file mode 100644 index fbf5cea30..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal-tiny.ttl +++ /dev/null @@ -1,14 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.json deleted file mode 100644 index 448d1c993..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "resourceType": "Group", - "type": "person", - "actual": true -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.ttl deleted file mode 100644 index fbf5cea30..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.ttl +++ /dev/null @@ -1,14 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:Group; - fhir:nodeRole fhir:treeRoot; - fhir:Group.type [ fhir:value "person"]; - fhir:Group.actual [ fhir:value "true"^^xsd:boolean]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.xml deleted file mode 100644 index b745e91a7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/group-minimal.xml +++ /dev/null @@ -1,4 +0,0 @@ -<Group xmlns="http://hl7.org/fhir"> - <type value="person"/> - <actual value="true"/> -</Group> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.example.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.example.xml deleted file mode 100644 index 99b9357f6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.example.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Practitioner xmlns="http://hl7.org/fhir"> - <meta> - <profile value = "https://example.de/fhir/StructureDefinition/MyPractitioner"/> - </meta> - <active value="true"/> - <name> - <use value = "temp"/> - <family value="Meier"/> - <given value="Maria"/> - <given value="Anna"/> - <prefix value = "Dr.med."/> - </name> - <name> - <use value = "maiden"/> - <family value="Müller"/> - <given value="Maria"/> - <given value="Anna"/> - <prefix value = "Dr.med."/> - </name> - <telecom> - <system value="phone" /> - <value value= "030-1234567"/> - <use value = "work"/> - </telecom> - <telecom> - <system value="email" /> - <value value= "meierA@hno.de"/> - <use value = "work"/> - </telecom> - <address> - <use value = "work"/> - <type value = "physical"/> - <state value = "DE-BE"/> - <postalCode value = "10117"/> - <country value = "DE"/> - </address> -</Practitioner> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.profile.xml deleted file mode 100644 index d12c9251e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/invariant.profile.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <url value="https://example.de/fhir/StructureDefinition/MyPractitioner"/> - <name value="MyPractitioner"/> <status value="draft"/> - <fhirVersion value="3.0.1"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Practitioner"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> - <derivation value="constraint"/> - <differential> - <element id="Practitioner"> - <path value="Practitioner"/> - <constraint> - <key value="oneOfficialName"/> - <severity value="error"/> - <human value="One name must be official."/> - <expression value="name.where(use='official').count()>0"/> - </constraint> - </element> - <element id="Practitioner.name"> - <path value="Practitioner.name"/> - <min value="1"/> - </element> - <element id="Practitioner.name.family"> - <path value="Practitioner.name.family"/> <min value="1"/> </element> - <element id="Practitioner.name.given"> - <path value="Practitioner.name.given"/> <min value="1"/> </element> - <element id="Practitioner.address"> - <path value="Practitioner.address"/> <min value="1"/> </element> - <element id="Practitioner.address.use"> - <path value="Practitioner.address.use"/> <fixedCode value="work"/> </element> - <element id="Practitioner.address.type"> - <path value="Practitioner.address.type"/> <fixedCode value="physical"/> </element> - <element id="Practitioner.address.line.extension:Postfach"> - <path value="Practitioner.address.line.extension"/> <sliceName value="Postfach"/> <max value="0"/> </element> - <element id="Practitioner.address.state"> - <path value="Practitioner.address.state"/> <binding> - <strength value="required"/> <description value="Bundesländer"/> </binding> - </element> - <element id="Practitioner.address.postalCode"> - <path value="Practitioner.address.postalCode"/> <min value="1"/> </element> - <element id="Practitioner.address.country"> - <path value="Practitioner.address.country"/> <min value="1"/> <binding> - <strength value="required"/> </binding> - </element> - <element id="Practitioner.gender"> - <path value="Practitioner.gender"/> <max value="0"/> </element> - <element id="Practitioner.birthDate"> - <path value="Practitioner.birthDate"/> <max value="0"/> </element> - <element id="Practitioner.photo"> - <path value="Practitioner.photo"/> <max value="0"/> </element> - <element id="Practitioner.communication"> - <path value="Practitioner.communication"/> <max value="0"/> </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.json deleted file mode 100644 index 5692bfbf3..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1" - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.xml deleted file mode 100644 index 8eb629a63..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-bad-syntax.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.json deleted file mode 100644 index 3ddbc4d3d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "contained": [ - { - "resourceType": "Patient", - "id" : "pat2" - } - ], - "status": "current", - "mode": "changes", - "subject": { - "reference": "#pat" - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.ttl deleted file mode 100644 index 36c4bea9c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.ttl +++ /dev/null @@ -1,23 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:Resource.contained [ - a fhir:Patient; - fhir:index 0; - fhir:Resource.id [ fhir:value "pat2" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]; - fhir:List.subject [ - fhir:Reference.reference [ fhir:value "#pat" ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.xml deleted file mode 100644 index d733d2ff1..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained-bad.xml +++ /dev/null @@ -1,14 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <id value="val1"/> - <contained> - <Patient> - <id value="pat1"/> - </Patient> - </contained> - <status value="current"/> - <mode value="changes"/> - <subject> - <reference value="#pat"/> - </subject> -</List> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.json deleted file mode 100644 index 2d25c092a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "contained": [ - { - "resourceType": "Patient", - "id" : "pat" - } - ], - "status": "current", - "mode": "changes", - "subject": { - "reference": "#pat" - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.ttl deleted file mode 100644 index 1622d745d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.ttl +++ /dev/null @@ -1,23 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:Resource.contained [ - a fhir:Patient; - fhir:index 0; - fhir:Resource.id [ fhir:value "pat" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]; - fhir:List.subject [ - fhir:Reference.reference [ fhir:value "#pat" ] - ]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.xml deleted file mode 100644 index a35b2afb0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-contained.xml +++ /dev/null @@ -1,14 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <id value="val1"/> - <contained> - <Patient> - <id value="pat"/> - </Patient> - </contained> - <status value="current"/> - <mode value="changes"/> - <subject> - <reference value="#pat"/> - </subject> -</List> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.json deleted file mode 100644 index 38fce3a39..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "status": "current", - "mode": "changes", - "entry": [ - {} - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.ttl deleted file mode 100644 index c9ef18050..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.ttl +++ /dev/null @@ -1,16 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]; - fhir:List.entry [ fhir:index 0]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.xml deleted file mode 100644 index 9b0658c88..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty1.xml +++ /dev/null @@ -1,9 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current"/> - <mode value="changes"/> - <entry/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.json deleted file mode 100644 index 2aebfe4b4..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "status": "current", - "mode": "changes", - "entry": [ - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.xml deleted file mode 100644 index 85404fac5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-empty2.xml +++ /dev/null @@ -1,11 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current"/> - <mode value="changes"/> - <entry> - <!-- a comment --> - </entry> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.ttl deleted file mode 100644 index 34dfa20cb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.ttl +++ /dev/null @@ -1,22 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ - fhir:value "current"; - fhir:string.extension [ - fhir:index 0; - fhir:Extension.url [ fhir:value "http://acme.com/some_url" ]; - fhir:Extension.valueCode [ fhir:value "code" ] - ] - ]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.xml deleted file mode 100644 index 657665dc7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension.xml +++ /dev/null @@ -1,12 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current"> - <extension url="http://acme.com/some_url"> - <valueCode value="code"/> - </extension> - </status> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.json deleted file mode 100644 index c42b37db3..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "status": "current", - "_status": { - "extension": [ - { - "url": "http://acme.com/some_url", - "valueCode": "code" - } - ] - }, - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.ttl deleted file mode 100644 index 34dfa20cb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension1.ttl +++ /dev/null @@ -1,22 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ - fhir:value "current"; - fhir:string.extension [ - fhir:index 0; - fhir:Extension.url [ fhir:value "http://acme.com/some_url" ]; - fhir:Extension.valueCode [ fhir:value "code" ] - ] - ]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.json deleted file mode 100644 index 404eb6276..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "status": "current", - "_status": { - "extension": [ - { - "url": "http://acme.com/some_url", - "valueCodeX": "code" - } - ] - }, - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.ttl deleted file mode 100644 index 1869f33d5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-extension2.ttl +++ /dev/null @@ -1,21 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ - fhir:value "current"; - fhir:string.extension [ - fhir:index 0; - fhir:Extension.url [ fhir:value "http://acme.com/some_url" ] - ] - ]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.json deleted file mode 100644 index 8c943ea6e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.xml deleted file mode 100644 index 9fa69a83b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-minimal.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.xml deleted file mode 100644 index ad522e31c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-text.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1">some text</id> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.xml deleted file mode 100644 index 5ec843bfc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-attr.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1" other="nothing"/> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.xml deleted file mode 100644 index d80b17a11..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-element.xml +++ /dev/null @@ -1,9 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current"/> - <mode value="changes"/> - <mode1 value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.json deleted file mode 100644 index 970d7ba36..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "other" : "nothing", - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-unknown-prop.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.json deleted file mode 100644 index ef96117fc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "status": "current1", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.ttl deleted file mode 100644 index cc0c78f73..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current1"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.xml deleted file mode 100644 index 1a3cb1d26..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-code.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <status value="current1"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns.xml deleted file mode 100644 index a61535801..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir1"> - <!-- another comment --> - <id value="val1"/> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.xml deleted file mode 100644 index 86d4a2939..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns1.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id xmlns="http://hl7.org/fhir1" value="val1"/> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.xml deleted file mode 100644 index 4bec98842..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-ns2.xml +++ /dev/null @@ -1,8 +0,0 @@ -<!-- this is all valid --> -<f:List xmlns:f="http://hl7.org/fhir"> - <!-- another comment --> - <f1:id xmlns:f1="http://hl7.org/fhir1" value="val1"/> - <f:status value="current"/> - <f:mode value="changes"/> -</f:List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.json deleted file mode 100644 index 0ac164579..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "mode": "changes", - "status": "current" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.ttl deleted file mode 100644 index 01590ad8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.ttl +++ /dev/null @@ -1,15 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.xml deleted file mode 100644 index 29205d09a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-wrong-order.xml +++ /dev/null @@ -1,5 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <id value="val1"/> - <mode value="changes"/> - <status value="current"/> -</List> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.json deleted file mode 100644 index 192c05058..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p onClick=\"check\">This is some narrative</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.xml deleted file mode 100644 index e09565bc1..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-attribute.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p onClick="check">This is some narrative</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.json deleted file mode 100644 index bd766e33f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>This is some narrative</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.xml deleted file mode 100644 index 5af318874..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>This is some narrative</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.json deleted file mode 100644 index 8fb0ec4b3..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<n:div xmlns:n=\"http://www.w3.org/1999/xhtml\">\n <n:p>This is some narrative</n:p>\n </n:div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.xml deleted file mode 100644 index 0bc588cef..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-correct2.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <n:div xmlns:n="http://www.w3.org/1999/xhtml"> - <n:p>This is some narrative</n:p> - </n:div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.json deleted file mode 100644 index fcde0bad8..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <object value=\"false\"/> <p>This is some narrative</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.xml deleted file mode 100644 index 0e14a25ba..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-element.xml +++ /dev/null @@ -1,15 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>This is some narrative</p> - <object value="false"/> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.json deleted file mode 100644 index 98d9c974c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <p>This is some narrative</pa>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-syntax.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.json deleted file mode 100644 index 6f2ad20b6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtmlx\">\n <p>This is some narrative</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.xml deleted file mode 100644 index bcd7f0166..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtmlx"> - <p>This is some narrative</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.json deleted file mode 100644 index a600f5998..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "resourceType": "List", - "fhir_comments": [ - " this is all valid " - ], - "id": "val1", - "_id": { - "fhir_comments": [ - " another comment " - ] - }, - "text": { - "status": "generated", - "div": "<div>\n <p>This is some narrative</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.xml deleted file mode 100644 index 326145565..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns2.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <n:p xmlns:n="http://www.w3.org/1999/xhtmlx">This is some narrative</n:p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.xml deleted file mode 100644 index 6fbb32254..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-wrongns3.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!-- this is all valid --> -<List xmlns="http://hl7.org/fhir"> - <!-- another comment --> - <id value="val1"/> - <text> - <status value="generated"/> - <div> - <p>This is some narrative</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> -<!-- ending comment --> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.json deleted file mode 100644 index ee0466fbe..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "resourceType": "List", - "id": "val1", - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n <!DOCTYPE foo [ <!ENTITY xxe SYSTEM \"file://c:\\temp\\xxe.txt\">]>\n <p>This is some narrative &xxe;</p>\n </div>" - }, - "status": "current", - "mode": "changes" -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.ttl b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.ttl deleted file mode 100644 index 702324d92..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe.ttl +++ /dev/null @@ -1,18 +0,0 @@ -@prefix fhir: <http://hl7.org/fhir/> . -@prefix owl: <http://www.w3.org/2002/07/owl#> . -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . -@prefix xs: <http://www.w3.org/2001/XMLSchema#> . - -# - resource ------------------------------------------------------------------- - -[a fhir:List; - fhir:nodeRole fhir:treeRoot; - fhir:Resource.id [ fhir:value "val1"]; - fhir:DomainResource.text [ - fhir:Narrative.status [ fhir:value "generated" ] - ]; - fhir:List.status [ fhir:value "current"]; - fhir:List.mode [ fhir:value "changes"]]. - -# ------------------------------------------------------------------------------------- - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe1.xml deleted file mode 100644 index 1c3ba903e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe1.xml +++ /dev/null @@ -1,14 +0,0 @@ -<!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file://c:\temp\xxe.txt">]> - -<List xmlns="http://hl7.org/fhir"> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>This is some narrative with an entity &xxe;</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe2.xml deleted file mode 100644 index 5277d4e82..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/list-xhtml-xxe2.xml +++ /dev/null @@ -1,13 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <id value="val1"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file://c:\temp\xxe.txt">]> - <p>This is some narrative with an entity &xxe;</p> - </div> - </text> - <status value="current"/> - <mode value="changes"/> -</List> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-1.xml deleted file mode 100644 index 53fb363e6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-1.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="3151-8"/> - <display value="ingeademde O2" /> - </coding> - </code> - <subject> - <reference value="Patient/example" /> - <display value="Example Patient" /> - </subject> - <effectiveDateTime value="2016-12-19T09:00:00Z" /> - <valueQuantity> - <value value="8"/> - </valueQuantity> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-2.xml deleted file mode 100644 index 53fb363e6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-2.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="3151-8"/> - <display value="ingeademde O2" /> - </coding> - </code> - <subject> - <reference value="Patient/example" /> - <display value="Example Patient" /> - </subject> - <effectiveDateTime value="2016-12-19T09:00:00Z" /> - <valueQuantity> - <value value="8"/> - </valueQuantity> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-3.xml deleted file mode 100644 index abe3f0389..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/loinc-lang-nl-3.xml +++ /dev/null @@ -1,20 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <language value="nl-NL"/> - <status value="final"/> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="3151-8"/> - <display value="ingeademde O2" /> - </coding> - </code> - <subject> - <reference value="Patient/example" /> - <display value="Example Patient" /> - </subject> - <effectiveDateTime value="2016-12-19T09:00:00Z" /> - <valueQuantity> - <value value="8"/> - </valueQuantity> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/manifest.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/manifest.json deleted file mode 100644 index 2eafd7a77..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/manifest.json +++ /dev/null @@ -1,937 +0,0 @@ -{ - "validator-tests": { - "Json": { - "bundle-good.json": { - "errorCount": 0 - }, - "bundle-bad-empty.json": { - "errorCount": 2 - }, - "group-choice-bad1.json": { - "errorCount": 2, - "errors": [ - "/Group/characteristic (line 10, col21) Unrecognised property '@value' ", - "Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0" - ] - }, - "group-choice-bad2.json": { - "errorCount": 2, - "errors": [ - "/Group/characteristic (line 10, col25) Unrecognised property '@valueInteger' ", - "Group.characteristic (line 6, col6) Element 'Group.characteristic.value[x]': minimum required = 1, but only found 0 " - ] - }, - "group-choice-bad3.json": { - "errorCount": 2, - "errors": [ - "/Group/characteristic/value[x] (line 10, col25) Error parsing JSON: the primitive value must be a boolean ", - "Group.characteristic.valueBoolean (line 10, col25) boolean values must be 'true' or 'false' " - ] - }, - "group-choice-empty.json": { - "errorCount": 1, - "errors": [ - "(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 8 (path=[//characteristic[]/characteristicvalueBoolean]) " - ] - }, - "group-choice-good.json": { - "errorCount": 0 - }, - "contained.json": { - "errorCount": 0 - }, - "group-minimal-tiny.json": { - "errorCount": 0 - }, - "group-minimal.json": { - "errorCount": 0 - }, - "list-bad-syntax.json": { - "errorCount": 1, - "errors": [ - "(document) Error parsing JSON: Error parsing JSON source: Unexpected JSON syntax at Line 7 (path=[/_id]) " - ] - }, - "list-contained-bad.json": { - "errorCount": 3, - "errors": [ - "List: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource [contained.where(('#'+id in %resource.descendants().reference).not()).empty()]", - "List.subject: Unable to resolve resource '#pat'", - "List.subject SHALL have a local reference if the resource is provided inline ( (url: [pat]; ids: [org.hl7.fhir.dstu3.metamodel.Element@2b71e916])) [reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))] " - ] - }, - "list-contained.json": { - "errorCount": 0 - }, - "list-empty1.json": { - "errorCount": 2, - "errors": [ - "/List/entry (line 7, col6) Object must have some content ", - "List.entry (line 7, col6) Element 'List.entry.item': minimum required = 1, but only found 0 " - ] - }, - "list-empty2.json": { - "errorCount": 0 - }, - "list-extension1.json": { - "errorCount": 0 - }, - "list-extension2.json": { - "errorCount": 2, - "errors": [ - "/List/status/extension (line 18, col8) Unrecognised property '@valueCodeX' ", - "List.status.extension (line 15, col8) Must have either extensions or value[x], not both [extension.exists() != value.exists()]" - ] - }, - "list-minimal.json": { - "errorCount": 0 - }, - "list-unknown-prop.json": { - "errorCount": 1, - "errors": [ - "/List (line 12, col23) Unrecognised property '@other' " - ] - }, - "list-wrong-code.json": { - "errorCount": 1, - "errors": [ - "List.status (line 4, col24) The value provided ('current1') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set " - ] - }, - "list-wrong-order.json": { - "errorCount": 0 - }, - "list-xhtml-attribute.json": { - "errorCount": 1, - "errors": [ - "List.text.div (line 15, col4) Illegal attribute name in the XHTML ('onClick' on 'p') " - ] - }, - "list-xhtml-correct1.json": { - "errorCount": 0 - }, - "list-xhtml-correct2.json": { - "errorCount": 0 - }, - "primitive-good-ws.json": { - "errorCount": 0, - "warningCount": 1 - }, - "list-xhtml-element.json": { - "errorCount": 2, - "errors": [ - "List.text.div (line 15, col4) Illegal element name in the XHTML ('object') ", - "List.text.div (line 15, col4) Illegal attribute name in the XHTML ('value' on 'object') " - ] - }, - "list-xhtml-syntax.json": { - "errorCount": 1, - "errors": [ - "/List/text/div (line 15, col4) Error parsing XHTML: Malformed XHTML: Found \"</pa>\" expecting \"</p>\" at line 2 column 37 " - ] - }, - "list-xhtml-wrongns1.json": { - "errorCount": 1, - "errors": [ - "List.text.div (line 15, col4) Wrong namespace on the XHTML ('http://www.w3.org/1999/xhtmlx') " - ] - }, - "list-xhtml-wrongns2.json": { - "errorCount": 1, - "errors": [ - "List.text.div (line 15, col4) Wrong namespace on the XHTML ('null') " - ] - }, - "list-xhtml-xxe.json": { - "errorCount": 1, - "errors": [ - "/List/text/div (line 7, col4) Error parsing XHTML: Malformed XHTML: Found a DocType declaration, and these are not allowed (XXE security vulnerability protection) " - ] - }, - "observation-with-trailing-dot.json": { - "errorCount": 1, - "errors": [ - "ERROR: Observation.referenceRange[0].high.value: The value '925.' is not a valid decimal" - ] - }, - "synthea.json": { - "version": "4.0", - "errorCount": 2, - "errors-for-debugging" : ["ERROR: /Encounter/reasonCode: This property must be an Array, not an Object", "ERROR: Encounter.status: The value provided ('completed') is not in the value set http://hl7.org/fhir/ValueSet/encounter-status|4.1.0 (http://hl7.org/fhir/ValueSet/encounter-status, and a code is required from this value set) (error message = Unknown Code http://hl7.org/fhir/encounter-status#completed in http://hl7.org/fhir/encounter-status)"] - }, - "patient-good.json": { - "errorCount": 0, - "warningCount": 0 - }, - "patient-duplicate.json": { - "errorCount": 1, - "warningCount": 0 - }, - "patient-lang1.json": { - "errorCount": 0, - "warningCount": 1 - }, - "patient-lang2.json": { - "errorCount": 0, - "warningCount": 0 - }, - "patient-lang3.json": { - "errorCount": 0, - "warningCount": 1 - }, - "patient-au-5.json": { - "errorCount": 0, - "warningCount": 1, - "profile": { - "source": "profile-patient-au.xml", - "errorCount": 0 - } - }, - "medication-atc.json": { - "errorCount": 1, - "errors-for-debugging" : ["ERROR: Medication.extension[2].valueCodeableConcept.coding: The code \"N02AA\" is not valid in the system http://www.whocc.no/atc; The code provided (http://www.whocc.no/atc#N02AA) is not valid in the value set All codes known to the system"], - "allowed-extension-domain": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open" - }, - "fhirpath-good.json": { - "errorCount": 0 - }, - "fhirpath-bad.json": { - "errorCount": 1 - }, - "fhirpath-null.json": { - "errorCount": 1 - }, - "qr-ex.json": { - "questionnaire": "q-ex.json", - "version" : "3.0", - "errorCount": 0 - }, - "bp.json": { - "errorCount": 0, - "profile": { - "source": "bp-profile.xml", - "errorCount": 0 - } - } - }, - "Xml": { - "bundle-good.xml": { - "errorCount": 0 - }, - "primitive-good.xml": { - "errorCount": 0 - }, - "primitive-bad.xml": { - "errorCount": 45, - "warningCount": 2 - }, - "primitive-bad-empty.xml": { - "errorCount": 2 - }, - "group-choice-bad1.xml": { - "errorCount": 2, - "errors": [ - "Undefined element \'value\"", - "Element \'Group.characteristic.value[x]\': minimum required = 1, but only found 0" - ] - }, - "group-choice-bad3.xml": { - "errorCount": 1, - "errors": [ - "boolean values must be \'true\' or \'false\'" - ] - }, - "group-choice-empty.xml": { - "errorCount": 1, - "errors": [ - "Element must have some content" - ] - }, - "group-choice-good.xml": { - "errorCount": 0 - }, - "group-minimal.xml": { - "errorCount": 0 - }, - "list-bad-syntax.xml": { - "errorCount": 1, - "errors": [ - "org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 3; The element type \"id\" must be terminated by the matching end-tag \"</id>\"." - ] - }, - "list-contained-bad.xml": { - "errorCount": 3, - "errors": [ - "List: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource [contained.where(('#'+id in %resource.descendants().reference).not()).empty()]", - "List.subject: Unable to resolve resource '#pat'", - "List.subject SHALL have a local reference if the resource is provided inline ( (url: [pat]; ids: [org.hl7.fhir.dstu3.metamodel.Element@2b71e916])) [reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))] " - ] - }, - "list-contained.xml": { - "errorCount": 0 - }, - "list-empty1.xml": { - "errorCount": 2, - "errors": [ - "Element must have some content", - "Element \'List.entry.item\': minimum required = 1, but only found 0" - ] - }, - "list-empty2.xml": { - "errorCount": 2, - "errors": [ - "Element must have some content", - "Element \'List.entry.item\': minimum required = 1, but only found 0" - ] - }, - "list-extension.xml": { - "errorCount": 0 - }, - "list-minimal.xml": { - "errorCount": 0 - }, - "list-text.xml": { - "errorCount": 1, - "errors": [ - "Text should not be present" - ] - }, - "list-unknown-attr.xml": { - "errorCount": 1, - "errors": [ - "Undefined attribute \'@other\'" - ] - }, - "list-unknown-element.xml": { - "errorCount": 1, - "errors": [ - "Undefined element \'mode1\"" - ] - }, - "list-wrong-code.xml": { - "errorCount": 1, - "errors": [ - "The value provided (\'current1\') is not in the value set http://hl7.org/fhir/ValueSet/list-status (http://hl7.org/fhir/ValueSet/list-status, and a code is required from this value set" - ] - }, - "list-wrong-ns.xml": { - "errorCount": 1, - "errors": [ - "This does not appear to be a FHIR resource (unknown namespace/name \'http://hl7.org/fhir1::List\')" - ] - }, - "list-wrong-ns1.xml": { - "errorCount": 1, - "errors": [ - "Wrong namespace - expected \'http://hl7.org/fhir\'" - ] - }, - "list-wrong-ns2.xml": { - "errorCount": 1, - "errors": [ - "Wrong namespace - expected \'http://hl7.org/fhir\'" - ] - }, - "list-wrong-order.xml": { - "errorCount": 1, - "errors": [ - "Element \"status\" is out of order" - ] - }, - "list-xhtml-attribute.xml": { - "errorCount": 1, - "errors": [ - "Illegal attribute name in the XHTML (\'onClick\' on \'p\')" - ] - }, - "list-xhtml-correct1.xml": { - "errorCount": 0 - }, - "list-xhtml-correct2.xml": { - "errorCount": 0 - }, - "list-xhtml-element.xml": { - "errorCount": 2, - "errors": [ - "Illegal element name in the XHTML (\'object\')", - "Illegal attribute name in the XHTML (\'value\' on \'object\')" - ] - }, - "list-xhtml-wrongns1.xml": { - "errorCount": 1, - "errors": [ - "Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')" - ] - }, - "list-xhtml-wrongns2.xml": { - "errorCount": 1, - "errors": [ - "Wrong namespace on the XHTML (\'http://www.w3.org/1999/xhtmlx\')" - ] - }, - "list-xhtml-wrongns3.xml": { - "errorCount": 1, - "errors": [ - "Wrong namespace on the XHTML (\'http://hl7.org/fhir\')" - ] - }, - "list-xhtml-xxe1.xml": { - "errorCount": 1, - "errors": [ - "org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 10; DOCTYPE is disallowed when the feature \"http://apache.org/xml/features/disallow-doctype-decl\" set to true." - ] - }, - "list-xhtml-xxe2.xml": { - "errorCount": 1, - "errors": [ - "Error reported by XML parser processing null: Scanner State 24 not Recognized " - ] - }, - "slice-by-polymorphic-type.xml": { - "version": "4.0", - "errorCount": 0, - "profile": { - "source": "slice-by-polymorphic-type-profile.xml", - "errorCount": 0 - } - }, - "code-correct.xml": { - "tx-dependent": true, - "errorCount": 0 - }, - "code-wrong-display.xml": { - "tx-dependent": true, - "errorCount": 0, - "warningCount": 1 - }, - "code-wrong-system.xml": { - "tx-dependent": true, - "errorCount": 1 - }, - "code-wrong-system-vs.xml": { - "tx-dependent": true, - "errorCount": 1 - }, - "ccda-example.xml": { - "use-test": false, - "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/", - "errorCount": 0, - "profile": { - "source": "ccda-profile.xml", - "errorCount": 0 - } - }, - "ccda-example-bad.xml": { - "use-test": false, - "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/", - "errorCount": 0, - "profile": { - "source": "ccda-profile.xml", - "errorCount": 1 - } - }, - "string-extensions-and-constraints-example.xml": { - "use-test": true, - "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/", - "errorCount": 0, - "profile": { - "source": "string-extensions-and-constraints-profile.xml", - "errorCount": 4 - } - }, - "slicing-types-by-string.xml": { - "version": "4.0", - "errorCount": 0, - "profile": { - "source": "slicing-types-by-string-profile.xml", - "errorCount": 0 - } - }, - "uk-nhs-pat.xml": { - "version": "1.0", - "use-test": false, - "allowed-extension-domain": "http://hl7.org/fhir/ccda/StructureDefinition/", - "errorCount": 0, - "profile": { - "source": "uk-nhs-sd-pat.xml", - "errorCount": 1 - } - }, - "entry-resource-bad1.xml": { - "errorCount": 0, - "x-errors": [ - "Resource ID does not match the ID in the entry full URL" - ] - }, - "reference-good.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 0 - }, - "reference-bad.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 1 - }, - "reference-good-contained.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 0 - }, - "reference-good-typed.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 0 - }, - "reference-good-logical.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 0 - }, - "reference-bad-logical.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 1 - }, - "reference-bad-typed.xml": { - "validate": "CHECK_EXISTS_AND_TYPE", - "errorCount": 1 - }, - "primitive-good-ws.xml": { - "errorCount": 0, - "warningCount": 1 - }, - "qr.xml": { - "questionnaire": "q.xml", - "errorCount": 2 - }, - "patient-good.xml": { - "errorCount": 0, - "warningCount": 0 - }, - "patient-lang1.xml": { - "errorCount": 0, - "warningCount": 1 - }, - "patient-lang2.xml": { - "errorCount": 0, - "warningCount": 0 - }, - "patient-lang3.xml": { - "errorCount": 0, - "warningCount": 1 - }, - "patient-lang3.xml": { - "errorCount": 0, - "warningCount": 1 - }, - "patient-patternidentifier-bad.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifier-profile.xml", - "errorCount": 2, - "errors": [ - "ERROR: Patient.identifier.type: Missing element \'type\'", - "ERROR: Patient.identifier.system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'" - ] - } - }, - "patient-patternidentifier-badmultiple.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifier-profile.xml", - "errorCount": 2, - "errors": [ - "ERROR: Patient.identifier[2].type: Missing element \'type\'", - "ERROR: Patient.identifier[2].system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'" - ] - } - }, - "patient-patternidentifier-good.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifier-profile.xml", - "errorCount": 0 - } - }, - "patient-patternidentifier-profile.xml": { - "errorCount": 0 - }, - "patient-patternidentifierslice-bad.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifierslice-profile.xml", - "errorCount": 1, - "errors": [ - "ERROR: Patient.identifier.type: Missing element \'type\'", - "ERROR: Patient.identifier.system: Value is \'urn:oid:2.16.756.5.30.999999.1.2\' but must be \'urn:oid:2.16.756.5.30.999999.1\'" - ] - } - }, - "patient-patternidentifierslice-good.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifierslice-profile.xml", - "errorCount": 0 - } - }, - "patient-patternidentifierslice-goodmultiple.xml": { - "errorCount": 0, - "profile": { - "source": "patient-patternidentifierslice-profile.xml", - "errorCount": 0 - } - }, - "patient-patternidentifierslice-profile.xml": { - "errorCount": 0 - }, - "patient-conform-profile.xml": { - "errorCount": 0, - "warningCount": 0 - }, - "patient-bad-gender.xml": { - "errorCount": 1, - "warningCount": 0, - "profile": { - "source": "patient-conform-profile.xml", - "errorCount": 2, - "warningCount": 0 - } - }, - "patient-warning-maritalstatus.xml": { - "errorCount": 0, - "warningCount": 1, - "profile": { - "source": "patient-conform-profile.xml", - "errorCount": 0, - "warningCount": 1 - } - }, - "document-good.xml": { - "errorCount": 0, - "profiles": [ - "document-section-library.xml" - ], - "profile": { - "source": "document-structure.xml", - "errorCount": 0 - } - }, - "document-bad-no-sections.xml": { - "errorCount": 0, - "profiles": [ - "document-section-library.xml" - ], - "profile": { - "source": "document-structure.xml", - "errorCount": 2 - } - }, - "document-bad-bad-sections.xml": { - "errorCount": 0, - "profiles": [ - "document-section-library.xml" - ], - "profile": { - "source": "document-structure.xml", - "errorCount": 3 - } - }, - "message-infinite-loop.xml": { - "errorCount": 34 - }, - "slice-profile-and-local-patient.xml": { - "errorCount": 0, - "profile": { - "source": "slice-profile-and-local-profile.xml", - "errorCount": 0 - } - }, - "questionnaire-enableWhen-test-invalid.xml": { - "errorCount": 1, - "warningCount" : 0 - }, - "questionnaire-enableWhen-test-order.xml": { - "errorCount": 0, - "warningCount" : 1 - }, - "questionnaireResponse-enableWhen-test.xml": { - "questionnaire": "questionnaire-enableWhen-test.xml", - "errorCount": 0 - }, - "questionnaireResponse-enableWhen-test-nested.xml": { - "questionnaire": "questionnaire-enableWhen-test-nested.xml", - "errorCount": 2 - }, - "questionnaireResponse-enableWhen-test3.xml": { - "version": "3.0", - "questionnaire": "questionnaire-enableWhen-test3.xml", - "errorCount": 0 - }, - "extension-slice.xml": { - "errorCount": 0, - "profile": { - "source": "extension-slice-profile.xml", - "errorCount": 0 - } - }, - "slice-by-polymorphic-type2.xml": { - "errorCount": 0, - "profile": { - "source": "slice-by-polymorphic-type2-profile.xml", - "errorCount": 0 - } - }, - "observation-bp-validationfails.xml": { - "errorCount": 0 - }, - "observation-bp.xml": { - "errorCount": 0, - "profile": { - "source": "observation-bp-profile.xml", - "errorCount": 0 - } - }, - "observation-bp-bad-onlydiastolic.xml": { - "errorCount": 0, - "profile": { - "source": "observation-bp-profile.xml", - "errorCount": 1, - "errors": [ - "ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/observation-bp-profile, Element 'Observation.component[SystolicBP]': minimum required = 1, but only found 0" - ] - } - }, - "observation-bp-localcode.xml": { - "errorCount": 0, - "profile": { - "source": "observation-bp-profile-twocodesrequired.xml", - "errorCount": 0 - } - }, - "observation-cholesterol-good.xml": { - "errorCount": 0 - }, - "observation-cholesterol-bad-referencerangemissing.xml": { - "errorCount": 1, - "errors": [ - "ERROR: Observation: Profile http://hl7.org/fhir/StructureDefinition/cholesterol, Element 'Observation.referenceRange': minimum required = 1, but only found 0" - ] - }, - "observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml": { - "errorCount": 1, - "errors": [ - "ERROR: Observation.referenceRange.high.value: Value is '0' but must be '4.5'" - ] - }, - "observation-cholesterol-bad-wrongcode.xml": { - "errorCount": 2, - "errors": [ - "ERROR: Observation.code.coding.code: Value is '13457-7' but must be '35200-5'", - "ERROR: Observation.code.coding.display: Value is 'Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation' but must be 'Cholesterol [Moles/?volume] in Serum or Plasma'" - ] - }, - "invariant.example.xml": { - "errorCount": 0, - "profile": { - "source": "invariant.profile.xml", - "errorCount": 1 - } - }, - "observation-triglyceride-good.xml": { - "warningCount": 1, - "errorCount": 0, - "warnings": [ - "WARNING: Observation.code.coding[1]: The display \"Triglyceride [Moles/​volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\"" - ] - }, - "observation-triglyceride-good2.xml": { - "warningCount": 1, - "errorCount": 0, - "warnings": [ - "WARNING: Observation.code.coding[2]: The display \"Triglyceride [Moles/​volume] in Serum or Plasma\" is not a valid display for the code {http://loinc.org}35217-9 - should be one of [\"Triglyceride [Mass or Moles/volume] in Serum or Plasma\",\"Trigl SerPl-msCnc\"" - ] - }, - "observation-triglyceride-bad-wrongcode.xml": { - "errorCount": 1, - "errors": [ - "ERROR: Observation.code: Expected patternCodeableConcept not found for system: http://loinc.org code: 35217-9 display: Triglyceride [Moles/​volume] in Serum or Plasma" - ] - }, - "slicing-example-uk.xml": { - "version": "3.0", - "errorCount": 13, - "allowed-extension-domains": [ - "https://fhir.nhs.uk/STU3", - "https://fhir.hl7.org.uk/STU3" - ], - "profile": { - "source": "slicing-example-uk.profile.xml", - "errorCount": 19, - "errors-for-debugging" : ["ERROR: Bundle.entry[4].resource.entry[1].resource.section[1].code.coding: unable to find code 886921000000105 in http://snomed.info/sct\r\n", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[2].code.coding: unable to find code 1077881000000105 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[3].code.coding: Concept not found (next char = \"c\", in \"cons\") at character 1", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[4].code.coding: Concept not found (next char = \"e\", in \"eligcrit\") at character 1", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[5].code.coding: unable to find code 886711000000101 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[6].code.coding: unable to find code 717121000000105 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[7].code.coding: unable to find code 1102181000000102 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[8].code.coding: unable to find code 1052951000000105 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[9].code.coding: unable to find code 886731000000109 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[1].resource.section[10].code.coding: unable to find code 1052891000000108 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[5].resource: Profile https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1, Element 'Bundle.entry[4].resource.entry[5].resource.name[official]': minimum required = 1, but only found 0", -"ERROR: Bundle.entry[4].resource.entry[5].resource.generalPractitioner: Unable to resolve the profile reference 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1'", -"ERROR: Bundle.entry[4].resource.entry[5].resource.generalPractitioner: Unable to resolve the profile reference 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1'", -"ERROR: Bundle.entry[4].resource.entry[5].resource.generalPractitioner: Invalid Resource target type. Found Practitioner, but expected one of ()", -"ERROR: Bundle.entry[4].resource.entry[5].resource.managingOrganization: Unable to resolve the profile reference 'https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1'", -"ERROR: Bundle.entry[4].resource.entry[5].resource.managingOrganization: Invalid Resource target type. Found Organization, but expected one of ()", -"ERROR: Bundle.entry[4].resource.entry[8].resource.extension.valueCodeableConcept.coding: unable to find code 822851000000102 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[8].resource.vaccineCode.coding: unable to find code 22704311000001109 in http://snomed.info/sct", -"ERROR: Bundle.entry[4].resource.entry[9].resource.code.coding: unable to find code 886921000000105 in http://snomed.info/sct"] - } - }, - "patient-translated-codes.xml": { - "errorCount": 0, - "warningCount": 2, - "profile": { - "source": "patient-translated-codes.profile.xml", - "errorCount": 0, - "warningCount": 0 - } - }, - "patient-contained-org.xml": { - "errorCount": 0, - "profile": { - "source": "patient-contained-org-profile.xml", - "errorCount": 1 - } - }, - "multi-profile-same-resource.xml": { - "errorCount": 0, - "profile": { - "source": "multi-profile-same-resource-profile.xml", - "errorCount": 0 - } - }, - "bad-bundle-reference-type.xml": { - "errorCount": 1 - }, - "loinc-lang-nl-1.xml" : { - "errorCount": 0, - "warningCount": 1 - }, - "loinc-lang-nl-2.xml" : { - "language" : "nl-NL", - "errorCount": 0, - "warningCount": 0 - }, - "loinc-lang-nl-3.xml" : { - "errorCount": 0, - "warningCount": 0 - }, - "duplicate-security-tags.xml" : { - "errorCount": 1, - "warningCount": 3 - }, - "azatadha/example-params-1.xml" : { - "errorCount": 0, - "warningCount": 1, - "profile": { - "source": "azatadha/param-profile.xml", - "errorCount": 0 - } - }, - "profile-slicing-ok-1.xml": { - "errorCount": 0, - "profiles": [ - "profile-slicing-profile-1.xml", "profile-slicing-profile-2.xml", "profile-slicing-profile-3.xml" - ], - "profile": { - "source": "profile-slicing-profile-open.xml", - "errorCount": 0 - } - }, - "profile-slicing-bad-1.xml": { - "errorCount": 0, - "profiles": [ - "profile-slicing-profile-1.xml", "profile-slicing-profile-2.xml", "profile-slicing-profile-3.xml" - ], - "profile": { - "source": "profile-slicing-profile-open.xml", - "errorCount": 1 - } - }, - "value-slicing-ok-1.xml": { - "errorCount": 0, - "profiles": [ - "profile-slicing-profile-1.xml", "profile-slicing-profile-2.xml", "profile-slicing-profile-3.xml" - ], - "profile": { - "source": "value-slicing-profile-open.xml", - "errorCount": 0 - } - }, - "value-slicing-bad-1.xml": { - "errorCount": 0, - "profiles": [ - "profile-slicing-profile-1.xml", "profile-slicing-profile-2.xml", "profile-slicing-profile-3.xml" - ], - "profile": { - "source": "value-slicing-profile-open.xml", - "errorCount": 1 - } - }, - "observation-maxvs-base.xml": { - "errorCount": 0, - "profile": { - "source": "maxvalueset-profile.xml", - "errorCount": 0 - } - }, - "observation-maxvs-ex.xml": { - "errorCount": 0, - "profile": { - "source": "maxvalueset-profile.xml", - "errorCount": 0 - } - }, - "observation-maxvs-text.xml": { - "errorCount": 0, - "profile": { - "source": "maxvalueset-profile.xml", - "errorCount": 1 - } - }, - "observation-maxvs-wrong.xml": { - "errorCount": 0, - "profile": { - "source": "maxvalueset-profile.xml", - "errorCount": 1 - } - }, - "bundle-local-refs.xml" : { - "errorCount": 0, - "warningCount": 0 - }, - "valueset-slicing-meds.xml" : { - "version" : "3.0", - "codesystems": [ - "valueset-slicing-med-cs.xml" - ], - "errorCount": 0, - "profile": { - "source": "valueset-slicing-med-profile.xml", - "errorCount": 0 - } - }, - "q-bp.xml": { - "errorCount": 17, - "errors" : "all related to extensions" - }, - "valueset-slicing-meds-bad.xml" : { - "version" : "3.0", - "codesystems": [ - "valueset-slicing-med-cs.xml" - ], - "errorCount": 0, - "profile": { - "source": "valueset-slicing-med-profile.xml", - "errorCount": 1 - } - } - } - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/maxvalueset-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/maxvalueset-profile.xml deleted file mode 100644 index cdf7258f8..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/maxvalueset-profile.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <url value="http://hl7.org/fhir/StructureDefinition/multi-profile-same-resource-profile"/> - <name value="MaxValueSetProfile"/> - <status value="draft"/> - <description value="Profile with max value Set"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Observation"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation"/> - <derivation value="constraint"/> - <differential> - <element id="Observation.code"> - <path value="Observation.code"/> - <min value="1"/> - <max value="1"/> - <binding> - <strength value="extensible"/> - <valueSet value="http://hl7.org/fhir/ValueSet/clinical-findings"/> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueCanonical value="http://snomed.info/sct?fhir_vs"/> - </extension> - </binding> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/medication-atc.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/medication-atc.json deleted file mode 100644 index aa678c567..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/medication-atc.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "resourceType": "Medication", - "meta": { - "profile": [ - "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-FormularyDrug" - ] - }, - "id": "formularydrugV1001", - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: med0308</p><p><b>contained</b>: </p><p><b>code</b>: Percocet tablet <span>(Details : {http://hl7.org/fhir/sid/ndc code '16590-619-30' = '16590-619-30', given as 'Percocet tablet'})</span></p><p><b>manufacturer</b>: id: org1; name: Stat Rx USA LLC</p><p><b>form</b>: Tablet dose form (qualifier value) <span>(Details : {SNOMED CT code '385055001' = 'Tablet', given as 'Tablet dose form (qualifier value)'})</span></p><blockquote><p><b>ingredient</b></p><p><b>item</b>: Oxycodone HCl <span>(Details : {RxNorm code '82063' = 'Oxycodone Hydrochloride', given as 'Oxycodone HCl'})</span></p><p><b>amount</b>: 5 mg<span> (Details: UCUM code mg = 'mg')</span>/1 TAB<span> (Details: http://hl7.org/fhir/v3/orderableDrugForm code TAB = 'Tablet')</span></p></blockquote><blockquote><p><b>ingredient</b></p><p><b>item</b>: Acetaminophen <span>(Details : {RxNorm code '161' = 'Acetaminophen', given as 'Acetaminophen'})</span></p><p><b>amount</b>: 325 mg<span> (Details: UCUM code mg = 'mg')</span>/1 TAB<span> (Details: http://hl7.org/fhir/v3/orderableDrugForm code TAB = 'Tablet')</span></p></blockquote><h3>Batches</h3><table><tr><td>-</td><td><b>LotNumber</b></td><td><b>ExpirationDate</b></td></tr><tr><td>*</td><td>658484</td><td>31/07/2020</td></tr></table></div>" - }, - "extension": [ - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugClass-extension", - "valueCodeableConcept": { - "coding": [ - { - "code": "N02BE", - "display": "Anilides" - } - ] - } - }, - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugClass-extension", - "valueCodeableConcept": { - "coding": [ - { "system": "http://www.whocc.no/atc", - "code": "N02AA", - "display": "Barbiturates and derivatives" - } - ] - } - }, - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-DrugTierID-extension", - "valueCodeableConcept": { - "coding": [ - { - "system": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/CodeSystem/usdrugformulary-DrugTierCS", - "code": "BRAND", - "display": "Brand" - } - ] - } - }, - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-PriorAuthorization-extension", - "valueBoolean": false - }, - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-StepTherapyLimit-extension", - "valueBoolean": false - }, - { - "url": "https://api-v8-r4.hspconsortium.org/DrugFormulary0/open/StructureDefinition/usdrugformulary-QuantityLimit-extension", - "valueBoolean": false - } - ], - "code": { - "coding": [ - { - "system": "http://www.nlm.nih.gov/research/umls/rxnorm", - "code": "1049640", - "display": "Acetaminophen 325 MG / Oxycodone Hydrochloride 5 MG Oral Tablet [Percocet]" - } - ] - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/message-infinite-loop.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/message-infinite-loop.xml deleted file mode 100644 index 0c7c7e0c0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/message-infinite-loop.xml +++ /dev/null @@ -1,489 +0,0 @@ -<Bundle xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> - <id value="d3e5cc68-9d33-4b77-98b7-fa48da8b0f06"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Message-Bundle-1"/> - </meta> - <identifier> - <value value="504bff5b-f048-4add-8e42-09b6150c5106"/> - </identifier> - <type value="message"/> - <entry> - <fullUrl value="urn:uuid:ed5909a3-b7fe-417e-ab34-fb674844c9a0"/> - <resource> - <MessageHeader> - <id value="ed5909a3-b7fe-417e-ab34-fb674844c9a0"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-MessageHeader-2"/> - </meta> - <extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-MessageHandling-2"> - <extension url="BusAckRequested"> - <valueBoolean value="false"/> - </extension> - <extension url="InfAckRequested"> - <valueBoolean value="true"/> - </extension> - <extension url="RecipientType"> - <valueCoding> - <system value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-RecipientType-1"/> - <code value="FA"/> - <display value="For Action"/> - </valueCoding> - </extension> - <extension url="MessageDefinition"> - <valueReference> - <reference value="https://fhir.nhs.uk/STU3/MessageDefinition/ITK-eDischarge-MessageDefinition-Instance-1"/> - </valueReference> - </extension> - <extension url="SenderReference"> - <valueString value="NULL"/> - </extension> - <extension url="LocalExtension"> - <valueString value="NULL"/> - </extension> - </extension> - <event> - <system value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-MessageEvent-2"/> - <code value="ITK003D"/> - <display value="ITK eDischarge"/> - </event> - <receiver> - <reference value="urn:uuid:81ec3a28-a34a-400d-acf1-6d57832633ca"/> - </receiver> - <sender> - <reference value="urn:uuid:90ea7469-5e8c-4a45-8de0-e9866c2f6848"/> - </sender> - <timestamp value="2018-12-11T09:41:16-00:00"/> - <source> - <endpoint value="NOWOT004"/> - </source> - <focus> - <reference value="urn:uuid:5152d044-f569-4ab4-bff8-bb69f55fea98"/> - </focus> - </MessageHeader> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:90ea7469-5e8c-4a45-8de0-e9866c2f6848"/> - <resource> - <Practitioner> - <id value="90ea7469-5e8c-4a45-8de0-e9866c2f6848"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1"/> - </meta> - <identifier> - <system value="https://fhir.nhs.uk/Id/sds-user-id"/> - <value value="033345750510"/> - </identifier> - <name> - <family value="Bibi"/> - <given value="Sugra"/> - <prefix value="Ms"/> - </name> - </Practitioner> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:81ec3a28-a34a-400d-acf1-6d57832633ca"/> - <resource> - <Organization> - <id value="81ec3a28-a34a-400d-acf1-6d57832633ca"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Organization-1"/> - </meta> - <identifier> - <system value="https://fhir.nhs.uk/Id/ods-organization-code"/> - <value value="A111111"/> - </identifier> - </Organization> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:5152d044-f569-4ab4-bff8-bb69f55fea98"/> - <resource> - <Bundle> - <id value="5152d044-f569-4ab4-bff8-bb69f55fea98"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Document-Bundle-1"/> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122"/> - <value value="48aefa89-2b26-4dcb-9346-9ae8c0a354c9"/> - </identifier> - <type value="document"/> - <entry> - <fullUrl value="urn:uuid:2178176b-99c7-4b09-9628-099dbccc9886"/> - <resource> - <Composition> - <id value="2178176b-99c7-4b09-9628-099dbccc9886"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-OPL-Composition-1"/> - </meta> - <!-- Extension to carry details of the Correspondence Care Setting Type. --> - <extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareSettingType-1"> - <coding> - <system value="http://snomed.info/sct" /> - <code value="310160007" /> - <display value="Ophthalmology service" /> - </coding> - </extension> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122"/> - <value value="020ba2cc-396b-4a09-b559-52ff84b019ab"/> - </identifier> - <status value="final"/> - <type> - <!--Outpatient letter --> - <coding> - <system value="http://snomed.info/sct"/> - <code value="823681000000100"/> - <display value="Outpatient letter"/> - </coding> - </type> - <subject> - <reference value="urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - </subject> - <!--Reference to the clinical encounter or type of care this documentation is associated with.--> - <encounter> - <reference value="urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b"/> - </encounter> - <!--The composition editing time, when the composition was last logically changed by the author.--> - <date value="2018-01-23T14:34:00-00:00"/> - <!--Identifies who is responsible for the information in the composition, not necessarily who typed it in--> - <author> - <reference value="urn:uuid:b8fe561b-6b36-46f5-b6bb-433529955b8c"/> - </author> - <title value="Outpatient letter"/> - <!--Identifies the organization responsible for ongoing maintenance of and access to the composition/document information.--> - <custodian> - <reference value="urn:uuid:97775e71-21d7-4f2d-aadb-2f3f5a1da6a6"/> - </custodian> - <section> - <title value="Allergies and adverse reactions"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="886921000000105"/> - <display value="Allergies and adverse reactions"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Allergies and adverse reactions Text</p> - </div> - </text> - </section> - <section> - <title value="Attendance details"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="1077881000000105"/> - <display value="Attendance details"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Attendance details Text-</p> - </div> - </text> - <entry> - <reference value="urn:uuid:a7f1f367-144b-4bf3-8c65-a0826787986b"/> - </entry> - </section> - <section> - <title value="Clinical summary"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="887181000000106"/> - <display value="Clinical summary"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Clinical summary Text</p> - </div> - </text> - </section> - <section> - <title value="Diagnoses"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="887161000000102"/> - <display value="Diagnoses"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Diagnoses Text</p> - </div> - </text> - </section> - <section> - <title value="Referrer details"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="1052891000000108"/> - <display value="Referrer details"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Referrer details Text</p> - </div> - </text> - </section> - <section> - <title value="Examination finding"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="715851000000102"/> - <display value="Examination findings"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Examination findings Text</p> - </div> - </text> - </section> - <section> - <title value="History"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="717121000000105"/> - <display value="History"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>History Text</p> - </div> - </text> - </section> - <section> - <title value="Medications and medical devices"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="933361000000108"/> - <display value="Medications and medical devices"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Medications and medical devices Text</p> - </div> - </text> - <entry> - <reference value="urn:uuid:16bbba8a-ba9b-46ea-b571-a64dba136a2a"/> - </entry> - </section> - <section> - <title value="Procedures"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="887171000000109"/> - <display value="Procedures"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Procedures Text</p> - </div> - </text> - </section> - <section> - <title value="Plan and requested actions"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="887201000000105"/> - <display value="Plan and requested actions"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Plan and requested actions Text</p> - </div> - </text> - </section> - <section> - <title value="Information and advice given"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="1052951000000105"/> - <display value="Information and advice given"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Information and advice given Text</p> - </div> - </text> - </section> - <section> - <title value="Patient demographics"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="886731000000109"/> - <display value="Patient demographics"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Patient demographics Text</p> - </div> - </text> - <entry> - <reference value="urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - </entry> - </section> - <section> - <title value="Person completing record"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="887231000000104"/> - <display value="Person completing record"/> - </coding> - </code> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p>Person completing record Text</p> - </div> - </text> - </section> - </Composition> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:75624dcb-fdae-4129-adec-953644046c54"/> - <resource> - <AllergyIntolerance> - <id value="75624dcb-fdae-4129-adec-953644046c54"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-AllergyIntolerance-1"/> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122"/> - <value value="d8c0bd1f-1c12-4065-bc29-fa181920dd21"/> - </identifier> - <clinicalStatus value="active"/> - <verificationStatus value="confirmed"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="9290701000001101"/> - <display value="Optrex"/> - </coding> - </code> - <patient> - <reference value="urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - </patient> - </AllergyIntolerance> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:3d7d07c0-8ed2-43ea-92d4-1adad6e315fc"/> - <resource> - <List> - <id value="3d7d07c0-8ed2-43ea-92d4-1adad6e315fc"/> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Allergy-List-1" /> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122"/> - <value value="95affce1-842d-4ef4-81f4-d559313f739d"/> - </identifier> - <status value="current"/> - <mode value="snapshot"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="886921000000105"/> - <display value="Allergies and adverse reactions"/> - </coding> - </code> - <subject> - <reference value="urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - </subject> - </List> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - <resource> - <Patient> - <id value="9439fa97-f1a9-438d-8a9c-80f52bcbce64"/> - <meta> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/> - </meta> - <identifier> - <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1"> - <valueCodeableConcept> - <coding> - <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1"/> - <code value="01"/> - <display value="Number present and verified"/> - </coding> - </valueCodeableConcept> - </extension> - <system value="https://fhir.nhs.uk/Id/nhs-number"/> - <value value="1234567890"/> - </identifier> - <identifier> - <system value="https://fhir.nhs.uk/Id/local-patient-identifier"/> - <value value="G654321"/> - </identifier> - <active value="true"/> - <name> - <use value="official"/> - <family value="Patfamily"/> - <given value="Patgiven"/> - <prefix value="Mr"/> - </name> - <telecom> - <system value="phone"/> - <value value="null"/> - <use value="mobile"/> - </telecom> - <telecom> - <system value="email"/> - <value value="null"/> - <use value="home"/> - </telecom> - <gender value="male"/> - <birthDate value="1950-01-01"/> - <address> - <use value="home"/> - <line value=" 1 Whitehall Quay, Leeds"/> - <postalCode value="LS1 4HR"/> - </address> - </Patient> - </resource> - </entry> - </Bundle> - </resource> - </entry> -</Bundle> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource-profile.xml deleted file mode 100644 index 6c371e0a7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource-profile.xml +++ /dev/null @@ -1,80 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="multi-profile-same-resource-profile"/> - <contained> - <StructureDefinition> - <id value="pract1"/> - <url value="http://hl7.org/fhir/StructureDefinition/multi-profile-same-resource-profile-pract1"/> - <name value="MultiProfileSameResourceProfilePract1"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Practitioner"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> - <derivation value="constraint"/> - <differential> - <element id="Practitioner"> - <path value="Practitioner"/> - </element> - <element id="Practitioner.name"> - <path value="Practitioner.name"/> - <min value="1"/> - </element> - <element id="Practitioner.gender"> - <path value="Practitioner.gender"/> - <max value="0"/> - </element> - </differential> - </StructureDefinition> - </contained> - <contained> - <StructureDefinition> - <id value="pract2"/> - <url value="http://hl7.org/fhir/StructureDefinition/multi-profile-same-resource-profile-pract2"/> - <name value="MultiProfileSameResourceProfilePract2"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Practitioner"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> - <derivation value="constraint"/> - <differential> - <element id="Practitioner"> - <path value="Practitioner"/> - </element> - <element id="Practitioner.name"> - <path value="Practitioner.name"/> - <max value="0"/> - </element> - <element id="Practitioner.gender"> - <path value="Practitioner.gender"/> - <min value="1"/> - </element> - </differential> - </StructureDefinition> - </contained> - <url value="http://hl7.org/fhir/StructureDefinition/multi-profile-same-resource-profile"/> - <name value="MultiProfileSameResourceProfile"/> - <status value="draft"/> - <description value="Profile with multiple profiles allowed for teh same resource"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <differential> - <element id="Patient"> - <path value="Patient"/> - </element> - <element id="Patient.generalPractitioner"> - <path value="Patient.generalPractitioner"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="Reference"/> - <targetProfile value="#pract1"/> - <targetProfile value="#pract2"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource.xml deleted file mode 100644 index 16bc51430..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/multi-profile-same-resource.xml +++ /dev/null @@ -1,17 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="multi-profile-same-resource"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <contained> - <Practitioner> - <id value="practitioner"/> - <gender value="other"/> - </Practitioner> - </contained> - <generalPractitioner> - <reference value="#practitioner"/> - </generalPractitioner> -</Patient> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-bad-onlydiastolic.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-bad-onlydiastolic.xml deleted file mode 100644 index 17bace2c6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-bad-onlydiastolic.xml +++ /dev/null @@ -1,250 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from https://www.hl7.org/fhir/observation-example-bloodpressure.xml, - changed id from blood-pressure to observation-bp and removed systolic loinc coide that observation fails --> - <id value="observation-bp-bad-onlydiastolic" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b>Generated Narrative with Details</b> - </p> - <p> - <b>id</b> - : blood-pressure - </p> - <p> - <b>meta</b> - : - </p> - <p> - <b>identifier</b> - : urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281 - </p> - <p> - <b>basedOn</b> - : - </p> - <p> - <b>status</b> - : final - </p> - <p> - <b>category</b> - : Vital Signs - <span>(Details : - {http://terminology.hl7.org/CodeSystem/observation-category code - 'vital-signs' = 'Vital Signs', given as 'Vital - Signs'})</span> - </p> - <p> - <b>code</b>: - Blood pressure systolic & diastolic - <span>(Details : {LOINC code '85354-9' = 'Blood pressure - panel with all children optional', given as 'Blood pressure - panel with all children optional'})</span> - </p> - <p> - <b>subject</b> - : - <a>Patient/example</a> - </p> - <p> - <b>effective</b> - : 17/09/2012 - </p> - <p> - <b>performer</b> - : - <a>Practitioner/example</a> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - <p> - <b>bodySite</b> - : Right arm - <span>(Details : {SNOMED CT code '368209003' = 'Right - upper arm', given as 'Right arm'})</span> - </p> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Systolic blood pressure - <span>(Details : {LOINC code '8480-6' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {SNOMED CT code '271649006' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {http://acme.org/devices/clinical-codes code 'bp-s' = - 'bp-s', given as 'Systolic Blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 107 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'N' = 'Normal', given as 'normal'}) - </span> - </p> - </blockquote> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Diastolic blood pressure - <span>(Details : {LOINC code '8462-4' = 'Diastolic - blood pressure', given as 'Diastolic blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 60 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - </blockquote> - </div> - </text> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" /> - </identifier><!-- demonstrating the use of the baseOn element with a fictive - identifier --> - <basedOn> - <identifier> - <system value="https://acme.org/identifiers" /> - <value value="1234" /> - </identifier> - </basedOn> - <status value="final" /> - <category> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/observation-category" /> - <code value="vital-signs" /> - <display value="Vital Signs" /> - </coding> - </category> - <code><!-- replaced by 85354-9 <coding> <system value="http://loinc.org"/> - <code value="85354-9"/> <display value="Blood pressure systolic & diastolic"/> - </coding> --> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - <display - value="Blood pressure panel with all children optional" /> - </coding> - <text value="Blood pressure systolic & diastolic" /> - </code> - <subject> - <reference value="Patient/example" /> - </subject> - <effectiveDateTime value="2012-09-17" /> - <performer> - <reference value="Practitioner/example" /> - </performer><!-- an interpretation offered to the combination observation - generally, it would only be appropriate to offer an interpretation of an - observation that has no value if it has "COMP" (component) observations --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- The BodySite can be captured in a LOINC code but am - showing it here to demonstrate populating the element --> - <bodySite> - <coding> - <system value="http://snomed.info/sct" /> - <code value="368209003" /> - <display value="Right arm" /> - </coding> - </bodySite> - <component><!-- Observations are often coded in multiple code systems. - - LOINC provides a very specific code (though not more specific in this particular - case) - snomed provides a clinically relevant code that is usually less granular - than LOINC - the source system provides its own code, which may be less or - more granular than LOINC this is shown here to demonstrate the concept of - translations within the codeableConcept datatype. The diastolic code below - only has a LOINC code --> - <code><!-- LOINC -code --> -<!-- removed systolic loinc coide that observation fails <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - <display value="Systolic blood pressure" /> - </coding> ---> <!-- SNOMED CT Codes --> - <coding> - <system value="http://snomed.info/sct" /> - <code value="271649006" /> - <display value="Systolic blood pressure" /> - </coding><!-- Also, a local code specific to the source system --> - <coding> - <system value="http://acme.org/devices/clinical-codes" /> - <code value="bp-s" /> - <display value="Systolic Blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="107" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="N" /> - <display value="normal" /> - </coding> - <text value="Normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> - <component><!-- this codes only has a LOINC code --> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - <display value="Diastolic blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="60" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-localcode.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-localcode.xml deleted file mode 100644 index 303269510..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-localcode.xml +++ /dev/null @@ -1,256 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from https://www.hl7.org/fhir/observation-example-bloodpressure.xml, - changed id from blood-pressure to observation-bp --> - <id value="observation-bp" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b>Generated Narrative with Details</b> - </p> - <p> - <b>id</b> - : blood-pressure - </p> - <p> - <b>meta</b> - : - </p> - <p> - <b>identifier</b> - : urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281 - </p> - <p> - <b>basedOn</b> - : - </p> - <p> - <b>status</b> - : final - </p> - <p> - <b>category</b> - : Vital Signs - <span>(Details : - {http://terminology.hl7.org/CodeSystem/observation-category code - 'vital-signs' = 'Vital Signs', given as 'Vital - Signs'})</span> - </p> - <p> - <b>code</b>: - Blood pressure systolic & diastolic - <span>(Details : {LOINC code '85354-9' = 'Blood pressure - panel with all children optional', given as 'Blood pressure - panel with all children optional'})</span> - </p> - <p> - <b>subject</b> - : - <a>Patient/example</a> - </p> - <p> - <b>effective</b> - : 17/09/2012 - </p> - <p> - <b>performer</b> - : - <a>Practitioner/example</a> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - <p> - <b>bodySite</b> - : Right arm - <span>(Details : {SNOMED CT code '368209003' = 'Right - upper arm', given as 'Right arm'})</span> - </p> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Systolic blood pressure - <span>(Details : {LOINC code '8480-6' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {SNOMED CT code '271649006' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {http://acme.org/devices/clinical-codes code 'bp-s' = - 'bp-s', given as 'Systolic Blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 107 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'N' = 'Normal', given as 'normal'}) - </span> - </p> - </blockquote> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Diastolic blood pressure - <span>(Details : {LOINC code '8462-4' = 'Diastolic - blood pressure', given as 'Diastolic blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 60 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - </blockquote> - </div> - </text> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" /> - </identifier><!-- demonstrating the use of the baseOn element with a fictive - identifier --> - <basedOn> - <identifier> - <system value="https://acme.org/identifiers" /> - <value value="1234" /> - </identifier> - </basedOn> - <status value="final" /> - <category> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/observation-category" /> - <code value="vital-signs" /> - <display value="Vital Signs" /> - </coding> - </category> - <code><!-- replaced by 85354-9 <coding> <system value="http://loinc.org"/> - <code value="85354-9"/> <display value="Blood pressure systolic & diastolic"/> - </coding> --> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - <display - value="Blood pressure panel with all children optional" /> - </coding> - <coding> - <system value="http://fhir.ch/ig/local" /> - <code value="1234" /> - </coding> - <text value="Blood pressure systolic & diastolic" /> - </code> - <subject> - <reference value="Patient/example" /> - </subject> - <effectiveDateTime value="2012-09-17" /> - <performer> - <reference value="Practitioner/example" /> - </performer><!-- an interpretation offered to the combination observation - generally, it would only be appropriate to offer an interpretation of an - observation that has no value if it has "COMP" (component) observations --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- The BodySite can be captured in a LOINC code but am - showing it here to demonstrate populating the element --> - <bodySite> - <coding> - <system value="http://snomed.info/sct" /> - <code value="368209003" /> - <display value="Right arm" /> - </coding> - </bodySite> - <component><!-- Observations are often coded in multiple code systems. - - LOINC provides a very specific code (though not more specific in this particular - case) - snomed provides a clinically relevant code that is usually less granular - than LOINC - the source system provides its own code, which may be less or - more granular than LOINC this is shown here to demonstrate the concept of - translations within the codeableConcept datatype. The diastolic code below - only has a LOINC code --> - <code><!-- LOINC -code --> - <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - <display value="Systolic blood pressure" /> - </coding><!-- SNOMED CT Codes --> - <coding> - <system value="http://snomed.info/sct" /> - <code value="271649006" /> - <display value="Systolic blood pressure" /> - </coding><!-- Also, a local code specific to the source system --> - <coding> - <system value="http://fhir.ch/ig/local" /> - <code value="3456" /> - </coding> - </code> - <valueQuantity> - <value value="107" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="N" /> - <display value="normal" /> - </coding> - <text value="Normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> - <component><!-- this codes only has a LOINC code --> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - <display value="Diastolic blood pressure" /> - </coding> - <coding> - <system value="http://fhir.ch/ig/local" /> - <code value="7890" /> - </coding> - </code> - <valueQuantity> - <value value="60" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile-twocodesrequired.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile-twocodesrequired.xml deleted file mode 100644 index bd97a5662..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile-twocodesrequired.xml +++ /dev/null @@ -1,256 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="observation-bp-profile-twocodesrequired" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml">reworked official bp profile to use - patternCodeableConcept and require a local code system in addition - (http://fhir.ch/ig/local) - </div> - </text> - <url - value="http://hl7.org/fhir/StructureDefinition/observation-bp-profile" /> - <version value="4.0.0" /> - <name value="observation-bp" /> - <title value="Observation Blood Pressure Profile" /> - <status value="draft" /> - <experimental value="false" /> - <date value="2019-05-06" /> - <publisher - value="Health Level Seven International (Orders and Observations Workgroup)" /> - <contact> - <telecom> - <system value="url" /> - <value - value="http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations" /> - </telecom> - </contact> - <description value="FHIR Blood Pressure Profile" /> - <fhirVersion value="4.0.0" /> - <mapping> - <identity value="workflow" /> - <uri value="http://hl7.org/fhir/workflow" /> - <name value="Workflow Pattern" /> - </mapping> - <mapping> - <identity value="sct-concept" /> - <uri value="http://snomed.info/conceptdomain" /> - <name value="SNOMED CT Concept Domain Binding" /> - </mapping> - <mapping> - <identity value="v2" /> - <uri value="http://hl7.org/v2" /> - <name value="HL7 v2 Mapping" /> - </mapping> - <mapping> - <identity value="rim" /> - <uri value="http://hl7.org/v3" /> - <name value="RIM Mapping" /> - </mapping> - <mapping> - <identity value="w5" /> - <uri value="http://hl7.org/fhir/fivews" /> - <name value="FiveWs Pattern Mapping" /> - </mapping> - <mapping> - <identity value="sct-attr" /> - <uri value="http://snomed.org/attributebinding" /> - <name value="SNOMED CT Attribute Binding" /> - </mapping> - <kind value="resource" /> - <abstract value="false" /> - <type value="Observation" /> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/vitalsigns" /> - <derivation value="constraint" /> - <differential> - <element id="Observation"> - <path value="Observation" /> - <short value="FHIR Blood Pressure Profile" /> - <definition - value="This profile defines how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure. This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic)." /> - <min value="0" /> - <max value="*" /> - </element> - <element id="Observation.code"> - <path value="Observation.code" /> - <short value="Blood Pressure" /> - <definition value="Blood Pressure" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="CodeableConcept" /> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - </coding> - <coding> - <system value="http://fhir.ch/ig/local" /> - </coding> - </patternCodeableConcept> - <mustSupport value="true" /> - </element> - <element id="Observation.valueQuantity"> - <path value="Observation.valueQuantity" /> - <min value="0" /> - <max value="0" /> - </element> - <element id="Observation.component"> - <path value="Observation.component" /> - <slicing> - <discriminator> - <type value="pattern" /> - <path value="code" /> - </discriminator> - <rules value="open" /> - </slicing> - <min value="2" /> - <max value="*" /> - </element> - <element id="Observation.component:SystolicBP"> - <path value="Observation.component" /> - <sliceName value="SystolicBP" /> - <short value="SystolicBP" /> - <min value="1" /> - <max value="1" /> - </element> - <element id="Observation.component:SystolicBP.code"> - <path value="Observation.component.code" /> - <min value="1" /> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - </coding> - <coding> - <system value="http://fhir.ch/ig/local" /> - </coding> - </patternCodeableConcept> - </element> - <element id="Observation.component:SystolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity" /> - <type> - <code value="Quantity" /> - </type> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="decimal" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="string" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="uri" /> - </type> - <fixedUri value="http://unitsofmeasure.org" /> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code" /> - <short - value="Coded responses from the common UCUM units for vital signs value set." /> - <definition - value="Coded responses from the common UCUM units for vital signs value set." /> - <min value="1" /> - <max value="1" /> - <type> - <code value="code" /> - </type> - <fixedCode value="mm[Hg]" /> - <mustSupport value="true" /> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component" /> - <sliceName value="DiastolicBP" /> - <short value="DiastolicBP" /> - <min value="1" /> - <max value="1" /> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component.code" /> - <min value="1" /> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - </coding> - <coding> - <system value="http://fhir.ch/ig/local" /> - </coding> - </patternCodeableConcept> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity" /> - <type> - <code value="Quantity" /> - </type> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="decimal" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="string" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="uri" /> - </type> - <fixedUri value="http://unitsofmeasure.org" /> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code" /> - <short - value="Coded responses from the common UCUM units for vital signs value set." /> - <definition - value="Coded responses from the common UCUM units for vital signs value set." /> - <min value="1" /> - <max value="1" /> - <type> - <code value="code" /> - </type> - <fixedCode value="mm[Hg]" /> - <mustSupport value="true" /> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile.xml deleted file mode 100644 index 2cde58b0c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-profile.xml +++ /dev/null @@ -1,243 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="observation-bp-profile" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml">reworked official bp profile to use patternCodeableConcept</div> - </text> - <url value="http://hl7.org/fhir/StructureDefinition/observation-bp-profile" /> - <version value="4.0.0" /> - <name value="observation-bp" /> - <title value="Observation Blood Pressure Profile" /> - <status value="draft" /> - <experimental value="false" /> - <date value="2019-05-06" /> - <publisher - value="Health Level Seven International (Orders and Observations Workgroup)" /> - <contact> - <telecom> - <system value="url" /> - <value - value="http://www.hl7.org/Special/committees/orders/index.cfm Orders and Observations" /> - </telecom> - </contact> - <description value="FHIR Blood Pressure Profile" /> - <fhirVersion value="4.0.0" /> - <mapping> - <identity value="workflow" /> - <uri value="http://hl7.org/fhir/workflow" /> - <name value="Workflow Pattern" /> - </mapping> - <mapping> - <identity value="sct-concept" /> - <uri value="http://snomed.info/conceptdomain" /> - <name value="SNOMED CT Concept Domain Binding" /> - </mapping> - <mapping> - <identity value="v2" /> - <uri value="http://hl7.org/v2" /> - <name value="HL7 v2 Mapping" /> - </mapping> - <mapping> - <identity value="rim" /> - <uri value="http://hl7.org/v3" /> - <name value="RIM Mapping" /> - </mapping> - <mapping> - <identity value="w5" /> - <uri value="http://hl7.org/fhir/fivews" /> - <name value="FiveWs Pattern Mapping" /> - </mapping> - <mapping> - <identity value="sct-attr" /> - <uri value="http://snomed.org/attributebinding" /> - <name value="SNOMED CT Attribute Binding" /> - </mapping> - <kind value="resource" /> - <abstract value="false" /> - <type value="Observation" /> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/vitalsigns" /> - <derivation value="constraint" /> - <differential> - <element id="Observation"> - <path value="Observation" /> - <short value="FHIR Blood Pressure Profile" /> - <definition - value="This profile defines how to represent Blood Pressure observations in FHIR using a standard LOINC code and UCUM units of measure. This is a grouping structure. It has no value in Observation.valueQuantity but contains at least one component (systolic and/or diastolic)." /> - <min value="0" /> - <max value="*" /> - </element> - <element id="Observation.code"> - <path value="Observation.code" /> - <short value="Blood Pressure" /> - <definition value="Blood Pressure" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="CodeableConcept" /> - </type> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - </coding> - </patternCodeableConcept> - <mustSupport value="true" /> - </element> - <element id="Observation.valueQuantity"> - <path value="Observation.valueQuantity" /> - <min value="0" /> - <max value="0" /> - </element> - <element id="Observation.component"> - <path value="Observation.component" /> - <slicing> - <discriminator> - <type value="pattern" /> - <path value="code" /> - </discriminator> - <rules value="open" /> - </slicing> - <min value="2" /> - <max value="*" /> - </element> - <element id="Observation.component:SystolicBP"> - <path value="Observation.component" /> - <sliceName value="SystolicBP" /> - <short value="SystolicBP" /> - <min value="1" /> - <max value="1" /> - </element> - <element id="Observation.component:SystolicBP.code"> - <path value="Observation.component.code" /> - <min value="1" /> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - </coding> - </patternCodeableConcept> - </element> - <element id="Observation.component:SystolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity" /> - <type> - <code value="Quantity" /> - </type> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="decimal" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="string" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="uri" /> - </type> - <fixedUri value="http://unitsofmeasure.org" /> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:SystolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code" /> - <short - value="Coded responses from the common UCUM units for vital signs value set." /> - <definition - value="Coded responses from the common UCUM units for vital signs value set." /> - <min value="1" /> - <max value="1" /> - <type> - <code value="code" /> - </type> - <fixedCode value="mm[Hg]" /> - <mustSupport value="true" /> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component" /> - <sliceName value="DiastolicBP" /> - <short value="DiastolicBP" /> - <min value="1" /> - <max value="1" /> - </element> - <element id="Observation.component:DiastolicBP"> - <path value="Observation.component.code" /> - <min value="1" /> - <patternCodeableConcept> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - </coding> - </patternCodeableConcept> - </element> - <element id="Observation.component:DiastolicBP.valueQuantity"> - <path value="Observation.component.valueQuantity" /> - <type> - <code value="Quantity" /> - </type> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.value"> - <path value="Observation.component.valueQuantity.value" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="decimal" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.unit"> - <path value="Observation.component.valueQuantity.unit" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="string" /> - </type> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.system"> - <path value="Observation.component.valueQuantity.system" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="uri" /> - </type> - <fixedUri value="http://unitsofmeasure.org" /> - <mustSupport value="true" /> - </element> - <element - id="Observation.component:DiastolicBP.valueQuantity.code"> - <path value="Observation.component.valueQuantity.code" /> - <short - value="Coded responses from the common UCUM units for vital signs value set." /> - <definition - value="Coded responses from the common UCUM units for vital signs value set." /> - <min value="1" /> - <max value="1" /> - <type> - <code value="code" /> - </type> - <fixedCode value="mm[Hg]" /> - <mustSupport value="true" /> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-validationfails.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-validationfails.xml deleted file mode 100644 index e42332282..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp-validationfails.xml +++ /dev/null @@ -1,253 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from https://www.hl7.org/fhir/observation-example-bloodpressure.xml, - changed id from blood-pressure to observation-bp-validationfails and added explicit profile - reference to http://hl7.org/fhir/StructureDefinition/bp --> - <id value="observation-bp-validationfails" /> - <meta> - <profile value="http://hl7.org/fhir/StructureDefinition/bp" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b>Generated Narrative with Details</b> - </p> - <p> - <b>id</b> - : blood-pressure - </p> - <p> - <b>meta</b> - : - </p> - <p> - <b>identifier</b> - : urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281 - </p> - <p> - <b>basedOn</b> - : - </p> - <p> - <b>status</b> - : final - </p> - <p> - <b>category</b> - : Vital Signs - <span>(Details : - {http://terminology.hl7.org/CodeSystem/observation-category code - 'vital-signs' = 'Vital Signs', given as 'Vital - Signs'})</span> - </p> - <p> - <b>code</b>: - Blood pressure systolic & diastolic - <span>(Details : {LOINC code '85354-9' = 'Blood pressure - panel with all children optional', given as 'Blood pressure - panel with all children optional'})</span> - </p> - <p> - <b>subject</b> - : - <a>Patient/example</a> - </p> - <p> - <b>effective</b> - : 17/09/2012 - </p> - <p> - <b>performer</b> - : - <a>Practitioner/example</a> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - <p> - <b>bodySite</b> - : Right arm - <span>(Details : {SNOMED CT code '368209003' = 'Right - upper arm', given as 'Right arm'})</span> - </p> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Systolic blood pressure - <span>(Details : {LOINC code '8480-6' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {SNOMED CT code '271649006' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {http://acme.org/devices/clinical-codes code 'bp-s' = - 'bp-s', given as 'Systolic Blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 107 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'N' = 'Normal', given as 'normal'}) - </span> - </p> - </blockquote> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Diastolic blood pressure - <span>(Details : {LOINC code '8462-4' = 'Diastolic - blood pressure', given as 'Diastolic blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 60 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - </blockquote> - </div> - </text> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" /> - </identifier><!-- demonstrating the use of the baseOn element with a fictive - identifier --> - <basedOn> - <identifier> - <system value="https://acme.org/identifiers" /> - <value value="1234" /> - </identifier> - </basedOn> - <status value="final" /> - <category> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/observation-category" /> - <code value="vital-signs" /> - <display value="Vital Signs" /> - </coding> - </category> - <code><!-- replaced by 85354-9 <coding> <system value="http://loinc.org"/> - <code value="85354-9"/> <display value="Blood pressure systolic & diastolic"/> - </coding> --> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - <display - value="Blood pressure panel with all children optional" /> - </coding> - <text value="Blood pressure systolic & diastolic" /> - </code> - <subject> - <reference value="Patient/example" /> - </subject> - <effectiveDateTime value="2012-09-17" /> - <performer> - <reference value="Practitioner/example" /> - </performer><!-- an interpretation offered to the combination observation - generally, it would only be appropriate to offer an interpretation of an - observation that has no value if it has "COMP" (component) observations --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- The BodySite can be captured in a LOINC code but am - showing it here to demonstrate populating the element --> - <bodySite> - <coding> - <system value="http://snomed.info/sct" /> - <code value="368209003" /> - <display value="Right arm" /> - </coding> - </bodySite> - <component><!-- Observations are often coded in multiple code systems. - - LOINC provides a very specific code (though not more specific in this particular - case) - snomed provides a clinically relevant code that is usually less granular - than LOINC - the source system provides its own code, which may be less or - more granular than LOINC this is shown here to demonstrate the concept of - translations within the codeableConcept datatype. The diastolic code below - only has a LOINC code --> - <code><!-- LOINC -code --> - <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - <display value="Systolic blood pressure" /> - </coding><!-- SNOMED CT Codes --> - <coding> - <system value="http://snomed.info/sct" /> - <code value="271649006" /> - <display value="Systolic blood pressure" /> - </coding><!-- Also, a local code specific to the source system --> - <coding> - <system value="http://acme.org/devices/clinical-codes" /> - <code value="bp-s" /> - <display value="Systolic Blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="107" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="N" /> - <display value="normal" /> - </coding> - <text value="Normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> - <component><!-- this codes only has a LOINC code --> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - <display value="Diastolic blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="60" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp.xml deleted file mode 100644 index 46e63a465..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-bp.xml +++ /dev/null @@ -1,249 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from https://www.hl7.org/fhir/observation-example-bloodpressure.xml, - changed id from blood-pressure to observation-bp --> - <id value="observation-bp" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b>Generated Narrative with Details</b> - </p> - <p> - <b>id</b> - : blood-pressure - </p> - <p> - <b>meta</b> - : - </p> - <p> - <b>identifier</b> - : urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281 - </p> - <p> - <b>basedOn</b> - : - </p> - <p> - <b>status</b> - : final - </p> - <p> - <b>category</b> - : Vital Signs - <span>(Details : - {http://terminology.hl7.org/CodeSystem/observation-category code - 'vital-signs' = 'Vital Signs', given as 'Vital - Signs'})</span> - </p> - <p> - <b>code</b>: - Blood pressure systolic & diastolic - <span>(Details : {LOINC code '85354-9' = 'Blood pressure - panel with all children optional', given as 'Blood pressure - panel with all children optional'})</span> - </p> - <p> - <b>subject</b> - : - <a>Patient/example</a> - </p> - <p> - <b>effective</b> - : 17/09/2012 - </p> - <p> - <b>performer</b> - : - <a>Practitioner/example</a> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - <p> - <b>bodySite</b> - : Right arm - <span>(Details : {SNOMED CT code '368209003' = 'Right - upper arm', given as 'Right arm'})</span> - </p> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Systolic blood pressure - <span>(Details : {LOINC code '8480-6' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {SNOMED CT code '271649006' = 'Systolic blood - pressure', given as 'Systolic blood pressure'}; - {http://acme.org/devices/clinical-codes code 'bp-s' = - 'bp-s', given as 'Systolic Blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 107 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'N' = 'Normal', given as 'normal'}) - </span> - </p> - </blockquote> - <blockquote> - <p> - <b>component</b> - </p> - <p> - <b>code</b> - : Diastolic blood pressure - <span>(Details : {LOINC code '8462-4' = 'Diastolic - blood pressure', given as 'Diastolic blood pressure'}) - </span> - </p> - <p> - <b>value</b> - : 60 mmHg - <span> (Details: UCUM code mm[Hg] = 'mmHg')</span> - </p> - <p> - <b>interpretation</b> - : Below low normal - <span>(Details : - {http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation - code 'L' = 'Low', given as 'low'})</span> - </p> - </blockquote> - </div> - </text> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="urn:uuid:187e0c12-8dd2-67e2-99b2-bf273c878281" /> - </identifier><!-- demonstrating the use of the baseOn element with a fictive - identifier --> - <basedOn> - <identifier> - <system value="https://acme.org/identifiers" /> - <value value="1234" /> - </identifier> - </basedOn> - <status value="final" /> - <category> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/observation-category" /> - <code value="vital-signs" /> - <display value="Vital Signs" /> - </coding> - </category> - <code><!-- replaced by 85354-9 <coding> <system value="http://loinc.org"/> - <code value="85354-9"/> <display value="Blood pressure systolic & diastolic"/> - </coding> --> - <coding> - <system value="http://loinc.org" /> - <code value="85354-9" /> - <display - value="Blood pressure panel with all children optional" /> - </coding> - <text value="Blood pressure systolic & diastolic" /> - </code> - <subject> - <reference value="Patient/example" /> - </subject> - <effectiveDateTime value="2012-09-17" /> - <performer> - <reference value="Practitioner/example" /> - </performer><!-- an interpretation offered to the combination observation - generally, it would only be appropriate to offer an interpretation of an - observation that has no value if it has "COMP" (component) observations --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- The BodySite can be captured in a LOINC code but am - showing it here to demonstrate populating the element --> - <bodySite> - <coding> - <system value="http://snomed.info/sct" /> - <code value="368209003" /> - <display value="Right arm" /> - </coding> - </bodySite> - <component><!-- Observations are often coded in multiple code systems. - - LOINC provides a very specific code (though not more specific in this particular - case) - snomed provides a clinically relevant code that is usually less granular - than LOINC - the source system provides its own code, which may be less or - more granular than LOINC this is shown here to demonstrate the concept of - translations within the codeableConcept datatype. The diastolic code below - only has a LOINC code --> - <code><!-- LOINC -code --> - <coding> - <system value="http://loinc.org" /> - <code value="8480-6" /> - <display value="Systolic blood pressure" /> - </coding><!-- SNOMED CT Codes --> - <coding> - <system value="http://snomed.info/sct" /> - <code value="271649006" /> - <display value="Systolic blood pressure" /> - </coding><!-- Also, a local code specific to the source system --> - <coding> - <system value="http://acme.org/devices/clinical-codes" /> - <code value="bp-s" /> - <display value="Systolic Blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="107" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="N" /> - <display value="normal" /> - </coding> - <text value="Normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> - <component><!-- this codes only has a LOINC code --> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="8462-4" /> - <display value="Diastolic blood pressure" /> - </coding> - </code> - <valueQuantity> - <value value="60" /> - <unit value="mmHg" /> - <system value="http://unitsofmeasure.org" /> - <code value="mm[Hg]" /> - </valueQuantity><!-- an interpretation for the individual composite observation --> - <interpretation> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v3-ObservationInterpretation" /> - <code value="L" /> - <display value="low" /> - </coding> - <text value="Below low normal" /> - </interpretation><!-- Should have a refrange as well --> - </component> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml deleted file mode 100644 index a740b40c7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangehighfixedquantitywrong.xml +++ /dev/null @@ -1,97 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://www.hl7.org/fhir/diagnosticreport-example-lipids.xml.html, - changed id from cholesterol and added explizit profile reference to http://hl7.org/fhir/StructureDefinition/cholesterol --> - <id - value="observation-cholesterol-bad-referencerangehighfixedquantitywrong" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/cholesterol" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : cholesterol - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Cholesterol - <span> (Details : {LOINC code '35200-5' = 'Cholesterol [Mass or - Moles/volume] in Serum or Plasma', - given as 'Cholesterol - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 6.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 4.5 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="35200-5" /> - <display - value="Cholesterol [Moles/​volume] in Serum or Plasma" /> - </coding> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="6.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="0" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangemissing.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangemissing.xml deleted file mode 100644 index b4c898ec6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-referencerangemissing.xml +++ /dev/null @@ -1,92 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://www.hl7.org/fhir/diagnosticreport-example-lipids.xml.html, - changed id from cholesterol and added explizit profile reference to http://hl7.org/fhir/StructureDefinition/cholesterol--> - <id value="observation-cholesterol-good" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/cholesterol" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : cholesterol - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Cholesterol - <span> (Details : {LOINC code '35200-5' = 'Cholesterol [Mass or - Moles/volume] in Serum or Plasma', - given as 'Cholesterol - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 6.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 4.5 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="35200-5" /> - <display - value="Cholesterol [Moles/​volume] in Serum or Plasma" /> - </coding> - <text value="Cholesterol" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="6.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <!-- <referenceRange> <high> <value value="0" /> <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> <code value="mmol/L" /> </high> - </referenceRange> --> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-wrongcode.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-wrongcode.xml deleted file mode 100644 index e95ab4b5c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-bad-wrongcode.xml +++ /dev/null @@ -1,100 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://www.hl7.org/fhir/diagnosticreport-example-lipids.xml.html, - changed id from cholesterol and added explizit profile reference to http://hl7.org/fhir/StructureDefinition/cholesterol --> - <id value="observation-cholesterol-bad-wrongcode" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/cholesterol" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : cholesterol - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Cholesterol - <span> (Details : {LOINC code '35200-5' = 'Cholesterol [Mass or - Moles/volume] in Serum or Plasma', - given as 'Cholesterol - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 6.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 4.5 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <!-- <coding> <system value="http://loinc.org" /> <code value="35200-5" - /> <display value="Cholesterol [Mass or Moles/volume] in Serum or Plasma" - /> </coding> --> - <coding> - <system value="http://loinc.org" /> - <code value="13457-7" /> - <display - value="Cholesterol in LDL [Mass/volume] in Serum or Plasma by calculation" /> - </coding> - <text value="Cholesterol" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="6.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="4.5" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-good.xml deleted file mode 100644 index b4b36c75f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-cholesterol-good.xml +++ /dev/null @@ -1,97 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://www.hl7.org/fhir/diagnosticreport-example-lipids.xml.html, - changed id from cholesterol and added explizit profile reference to http://hl7.org/fhir/StructureDefinition/cholesterol--> - <id value="observation-cholesterol-bad-referencerangemissing" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/cholesterol" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : cholesterol - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Cholesterol - <span> (Details : {LOINC code '35200-5' = 'Cholesterol [Mass or - Moles/volume] in Serum or Plasma', - given as 'Cholesterol - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 6.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 4.5 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="35200-5" /> - <display - value="Cholesterol [Moles/​volume] in Serum or Plasma" /> - </coding> - <text value="Cholesterol" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="6.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="4.5" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-base.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-base.xml deleted file mode 100644 index dce49fd79..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-base.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="109006"/> - <display value="Anxiety disorder of childhood OR adolescence"/> - </coding> - </code> - <subject> - <reference value="Patient/example"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-ex.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-ex.xml deleted file mode 100644 index 2654340a5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-ex.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <coding> - <system value="http://snomed.info/sct"/> - <code value="106004"/> - <display value="Posterior carpal region"/> - </coding> - </code> - <subject> - <reference value="Patient/example"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-text.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-text.xml deleted file mode 100644 index 882a2851a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-text.xml +++ /dev/null @@ -1,10 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="Anxiety disorder of childhood OR adolescence"/> - </code> - <subject> - <reference value="Patient/example"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-wrong.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-wrong.xml deleted file mode 100644 index 83209001a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-maxvs-wrong.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <coding> - <system value="http://loinc.org"/> - <code value="29463-7"/> - <display value="Body Weight"/> - </coding> - </code> - <subject> - <reference value="Patient/example"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-bad-wrongcode.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-bad-wrongcode.xml deleted file mode 100644 index 247425206..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-bad-wrongcode.xml +++ /dev/null @@ -1,103 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://hl7.org/fhir/triglyceride-examples.html, changed - id from triglyceride and added explivit profile reference to http://hl7.org/fhir/StructureDefinition/triglyceride - and added snomed ct code for triglyceride --> - <id value="observation-triglyceride-bad-wrongcode" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/triglyceride" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : triglyceride - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Triglyceride - <span> (Details : {LOINC code '35217-9' = 'Triglyceride [Mass or - Moles/volume] in Serum or Plasma', - given as 'Triglyceride - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 1.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 2.0 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="35200-5" /> - <display - value="Cholest SerPl-msCnc" /> - </coding> - <coding> - <system value="http://snomed.info/sct" /> - <code value="85600001" /> - <display value="Triacylglycerol" /> - </coding> - <text value="Cholesterol" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="1.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="2.0" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good.xml deleted file mode 100644 index 6c4ccc179..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good.xml +++ /dev/null @@ -1,103 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://hl7.org/fhir/triglyceride-examples.html, changed - id from triglyceride and added explicit profile reference to http://hl7.org/fhir/StructureDefinition/triglyceride - and added snomed ct code for triglyceride --> - <id value="observation-triglyceride-good" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/triglyceride" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : triglyceride - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Triglyceride - <span> (Details : {LOINC code '35217-9' = 'Triglyceride [Mass or - Moles/volume] in Serum or Plasma', - given as 'Triglyceride - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 1.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 2.0 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://loinc.org" /> - <code value="35217-9" /> - <display - value="Triglyceride [Moles/​volume] in Serum or Plasma" /> - </coding> - <coding> - <system value="http://snomed.info/sct" /> - <code value="85600001" /> - <display value="Triacylglycerol" /> - </coding> - <text value="Triglyceride" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="1.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="2.0" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good2.xml deleted file mode 100644 index 87d0026a2..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-triglyceride-good2.xml +++ /dev/null @@ -1,108 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <!-- extract from http://hl7.org/fhir/triglyceride-examples.html, changed - id from triglyceride and added explicit profile reference to http://hl7.org/fhir/StructureDefinition/triglyceride - and added snomed ct code for triglyceride --> - <id value="observation-triglyceride-good2" /> - <meta> - <profile - value="http://hl7.org/fhir/StructureDefinition/triglyceride" /> - </meta> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <p> - <b> Generated Narrative with Details</b> - </p> - <p> - <b> id</b> - : triglyceride - </p> - <p> - <b> status</b> - : final - </p> - <p> - <b> code</b> - : Triglyceride - <span> (Details : {LOINC code '35217-9' = 'Triglyceride [Mass or - Moles/volume] in Serum or Plasma', - given as 'Triglyceride - [Moles/​volume] in Serum or Plasma'}) - </span> - </p> - <p> - <b> subject</b> - : - <a> Patient/pat2</a> - </p> - <p> - <b> performer</b> - : - <a> Acme Laboratory, Inc</a> - </p> - <p> - <b> value</b> - : 1.3 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </p> - <h3> ReferenceRanges</h3> - <table> - <tr> - <td> -</td> - <td> - <b> High</b> - </td> - </tr> - <tr> - <td> *</td> - <td> - 2.0 mmol/L - <span> (Details: UCUM code mmol/L = 'mmol/L')</span> - </td> - </tr> - </table> - </div> - </text> - <status value="final" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="85600001" /> - <display value="Triacylglycerol" /> - </coding> - <coding> - <system value="http://loinc.org" /> - <code value="35217-9" /> - <display - value="Triglyceride [Moles/​volume] in Serum or Plasma" /> - </coding> - <coding> - <system value="http://snomed.info/sct" /> - <code value="85600001" /> - <display value="Triacylglycerol" /> - </coding> - <text value="Triglyceride" /> - </code> - <subject> - <reference value="Patient/pat2" /> - </subject> - <performer> - <reference - value="Organization/1832473e-2fe0-452d-abe9-3cdb9879522f" /> - <display value="Acme Laboratory, Inc" /> - </performer> - <valueQuantity> - <value value="1.3" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </valueQuantity> - <referenceRange> - <high> - <value value="2.0" /> - <unit value="mmol/L" /> - <system value="http://unitsofmeasure.org" /> - <code value="mmol/L" /> - </high> - </referenceRange> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-with-trailing-dot.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-with-trailing-dot.json deleted file mode 100644 index eede19316..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation-with-trailing-dot.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "resourceType": "Observation", - "status": "final", - "subject": { - "reference": "Patient/123" - }, - "code": { - "coding": [ - { - "system": "http://foo", - "code": "123" - } - ] - }, - "referenceRange": [ - { - "low": { - "value": 210.0, - "unit": "pg/mL" - }, - "high": { - "value": 925., - "unit": "pg/mL" - }, - "text": "The 'high' value above has an invalid number with a trailing dot" - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation102.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation102.json deleted file mode 100644 index d1328bc10..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation102.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "resourceType": "Observation", - "id": "example", - "text": { - "fhir_comments": [ - " the mandatory quality flags: " - ], - "status": "generated", - "div": "<div><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://hl7.org/fhir/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span></p><p><b>code</b>: Weight Measured <span>(Details : {LOINC code '3141-9' = 'Body weight Measured', given as 'Weight Measured'}; {SNOMED CT code '27113001' = '27113001', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = '??', given as 'Body Weight'})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>encounter</b>: <a>Encounter/example</a></p><p><b>value</b>: 185 lbs<span> (Details: http://unitsofmeasure.org code [lb_av] = '??')</span></p></div>" - }, - "status": "final", - "category": { - "fhir_comments": [ - " category code is A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes. " - ], - "coding": [ - { - "system": "http://hl7.org/fhir/observation-category", - "code": "vital-signs", - "display": "Vital Signs" - } - ] - }, - "code": { - "fhir_comments": [ - " \n Observations are often coded in multiple code systems.\n - LOINC provides a very specific code (though not usefully more specific in this particular case)\n - snomed provides a clinically relevant code that is usually less granular than LOINC\n - the source system provides its own code, which may be less or more granular than LOINC\n " - ], - "coding": [ - { - "fhir_comments": [ - " LOINC - always recommended to have a LOINC code " - ], - "system": "http://loinc.org", - "code": "3141-9", - "display": "Weight Measured" - }, - { - "fhir_comments": [ - " SNOMED CT Codes - becoming more common " - ], - "system": "http://snomed.info/sct", - "code": "27113001", - "display": "Body weight" - }, - { - "fhir_comments": [ - " Also, a local code specific to the source system " - ], - "system": "http://acme.org/devices/clinical-codes", - "code": "body-weight", - "display": "Body Weight" - } - ] - }, - "subject": { - "reference": "Patient/example" - }, - "encounter": { - "reference": "Encounter/example" - }, - "valueQuantity": { - "fhir_comments": [ - " In FHIR, units may be represented twice. Once in the\n agreed human representation, and once in a coded form.\n Both is best, since it's not always possible to infer\n one from the other in code.\n\n When a computable unit is provided, UCUM (http://unitsofmeasure.org)\n is always preferred, but it doesn't provide notional units (such as\n \"tablet\"), etc. For these, something else is required (e.g. SNOMED CT)\n " - ], - "value": 185, - "unit": "lbs", - "system": "http://unitsofmeasure.org", - "code": "[lb_av]" - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation301.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/observation301.xml deleted file mode 100644 index 79c3360fa..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/observation301.xml +++ /dev/null @@ -1,66 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><Observation xmlns="http://hl7.org/fhir"> - <id value="example"/> - <!-- the mandatory quality flags: --> - <text><status value="generated"/><div xmlns="http://www.w3.org/1999/xhtml"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example</p><p><b>status</b>: final</p><p><b>category</b>: Vital Signs <span>(Details : {http://hl7.org/fhir/observation-category code 'vital-signs' = 'Vital Signs', given as 'Vital Signs'})</span></p><p><b>code</b>: Body Weight <span>(Details : {LOINC code '29463-7' = 'Body weight', given as 'Body Weight'}; {LOINC code '3141-9' = 'Body weight Measured', given as 'Body weight Measured'}; {SNOMED CT code '27113001' = 'Body weight', given as 'Body weight'}; {http://acme.org/devices/clinical-codes code 'body-weight' = 'body-weight', given as 'Body Weight'})</span></p><p><b>subject</b>: <a>Patient/example</a></p><p><b>context</b>: <a>Encounter/example</a></p><p><b>effective</b>: 28/03/2016</p><p><b>value</b>: 185 lbs<span> (Details: UCUM code [lb_av] = 'lb_av')</span></p></div></text><status value="final"/> - <!-- category code is A code that classifies the general type of observation being made. This is used for searching, sorting and display purposes. --> - <category> - <coding> - <system value="http://hl7.org/fhir/observation-category"/> - <code value="vital-signs"/> - <display value="Vital Signs"/> - </coding> - </category> - <!-- - Observations are often coded in multiple code systems. - - LOINC provides codes of varying granularity (though not usefully more specific in this particular case) and more generic LOINCs can be mapped to more specific codes as shown here - - snomed provides a clinically relevant code that is usually less granular than LOINC - - the source system provides its own code, which may be less or more granular than LOINC - --> - <code> - <!-- LOINC - always recommended to have a LOINC code --> - <coding> - <system value="http://loinc.org"/> - <code value="29463-7"/> <!-- more generic methodless LOINC --> - <display value="Body Weight"/> - </coding> - <coding> - <system value="http://loinc.org"/> - <code value="3141-9"/><!-- translation is more specific method = measured LOINC --> - <display value="Body weight Measured"/> - </coding> - <!-- SNOMED CT Codes - becoming more common --> - <coding> - <system value="http://snomed.info/sct"/> - <code value="27113001"/> - <display value="Body weight"/> - </coding> - <!-- Also, a local code specific to the source system --> - <coding> - <system value="http://acme.org/devices/clinical-codes"/> - <code value="body-weight"/> - <display value="Body Weight"/> - </coding> - </code> - <subject> - <reference value="Patient/example"/> - </subject> - <context> - <reference value="Encounter/example"/> - </context> - <effectiveDateTime value="2016-03-28"/> - <!-- In FHIR, units may be represented twice. Once in the - agreed human representation, and once in a coded form. - Both is best, since it's not always possible to infer - one from the other in code. - - When a computable unit is provided, UCUM (http://unitsofmeasure.org) - is always preferred, but it doesn't provide notional units (such as - "tablet"), etc. For these, something else is required (e.g. SNOMED CT) - --> - <valueQuantity> - <value value="185"/> - <unit value="lbs"/> - <system value="http://unitsofmeasure.org"/> - <code value="[lb_av]"/> - </valueQuantity> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/params-reference.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/params-reference.xml deleted file mode 100644 index f32b9d274..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/params-reference.xml +++ /dev/null @@ -1,22 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <id value="1"/> - <parameter> - <name value="param"/> - <resource> - <Basic> - <id value="2"/> - <contained> - <Patient> - <id value="patient"/> - </Patient> - </contained> - <code> - <text value="test"/> - </code> - <subject> - <reference value="#patient"/> - </subject> - </Basic> - </resource> - </parameter> -</Parameters> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-au-5.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-au-5.json deleted file mode 100644 index 71f13aa1c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-au-5.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "au-5", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p><p><b>id</b>: example5</p><p><b>meta</b>: </p><p><b>identifier</b>: Medicare Number = 22968184811</p><p><b>name</b>: Sarah Simmons </p><p><b>telecom</b>: ph: (03) 4455 6677</p><p><b>gender</b>: female</p><p><b>birthDate</b>: Sep 7, 1977</p><p><b>address</b>: 55 Sarah Street Strahan TAS 7468 AU </p><p><b>generalPractitioner</b>: <a href=\"Practitioner-example3.html\">Generated Summary: id: example3; HPI-I = 8003611234567893; Francis Fernando </a></p><p><b>managingOrganization</b>: <a href=\"Organization-example3.html\">Generated Summary: id: example3; ABN = 51824754455; <span title=\"Codes: {http://hl7.org/fhir/organization-type prov}\">Healthcare Provider</span>; name: Devonport Family Medicine Clinic; reception@example.dfmc.com.au(WORK), fax: (03) 8543 5557(WORK), ph: (03) 8543 5556(WORK)</a></p><h3>Links</h3><table class=\"grid\"><tr><td>-</td><td><b>Other</b></td><td><b>Type</b></td></tr><tr><td>*</td><td><a href=\"RelatedPerson-example2.html\">Generated Summary: id: example2; Medicare Number = 22968184811; <span title=\"Codes: {http://hl7.org/fhir/v3/RoleCode MTH}\">mother</span>; Sarah Simmons ; ssimmons@example.amail.com.au(HOME), ph: (03) 4455 6677(HOME); gender: female; birthDate: Sep 7, 1977</a></td><td>seealso</td></tr></table></div>" - }, - "identifier" : [ - { - "type" : { - "coding" : [ - { - "system" : "http://terminology.hl7.org/CodeSystem/v2-0203", - "code" : "MC", - "display" : "Patient's Medicare number" - } - ], - "text" : "Medicare Number" - }, - "system" : "http://ns.electronichealth.net.au/id/medicare-number", - "value" : "22968184811", - "period" : { - "end" : "2022-12" - } - } - ], - "name" : [ - { - "family" : "Simmons", - "given" : [ - "Sarah" - ] - } - ], - "telecom" : [ - { - "system" : "phone", - "value" : "(03) 4455 6677" - } - ], - "gender" : "female", - "birthDate" : "1977-09-07", - "address" : [ - { - "line" : [ - "55 Sarah Street" - ], - "city" : "Strahan", - "state" : "TAS", - "postalCode" : "7468", - "country" : "AU" - } - ], - "generalPractitioner" : [ - { - "reference" : "Practitioner/example3" - } - ], - "managingOrganization" : { - "reference" : "Organization/example3" - }, - "link" : [ - { - "other" : { - "reference" : "RelatedPerson/example2" - }, - "type" : "seealso" - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-bad-gender.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-bad-gender.xml deleted file mode 100644 index b1418a5d6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-bad-gender.xml +++ /dev/null @@ -1,11 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-error-gender"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> -*FAILURE* validating ./examplesNonValid/patient/patient-error-gender.xml: error:1 warn:1 info:0 - Error @ Patient.gender (line 3, col34) : The value provided ('asdfafafafd') is not in the value set http://hl7.org/fhir/ValueSet/administrative-gender|4.0.0 (http://hl7.org/fhir/ValueSet/administrative-gender, and a code is required from this value set) (error message = Unknown Code org.hl7.fhir.r4.model.Coding@5ee34b1b in http://hl7.org/fhir/administrative-gender) - </div> - </text> - <gender value="asdfafafafd"/> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-conform-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-conform-profile.xml deleted file mode 100644 index 708beaed9..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-conform-profile.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="patient-conform-profile" /> - <url - value="http://hl7.org/fhir/StructureDefinition/patient-conform-profile" /> - <name value="PatientConformProfile" /> - <status value="draft" /> - <description - value="Test profile to test if a patient with warning or errors in validation is conformant to a profile" /> - <kind value="resource" /> - <abstract value="false" /> - <type value="Patient" /> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/Patient" /> - <derivation value="constraint" /> - <differential> - <element id="Patient"> - <path value="Patient" /> - <constraint> - <key value="conformsToCheck" /> - <severity value="error" /> - <human value="conformsToCheck" /> - <expression - value="conformsTo('http://hl7.org/fhir/StructureDefinition/Patient')" /> - </constraint> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org-profile.xml deleted file mode 100644 index 805a06c70..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org-profile.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="patient-contained-org-profile"/> - <contained> - <StructureDefinition> - <id value="gp"/> - <url value="http://hl7.org/fhir/patient-contained-org-org-profile"/> - <name value="PatientContainedOrgOrg"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Organization"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Organization"/> - <derivation value="constraint"/> - <differential> - <element id="Organization"> - <path value="Organization"/> - </element> - <element id="Organization.name"> - <path value="Organization.name"/> - <min value="1"/> - </element> - </differential> - </StructureDefinition> - </contained> - <url value="http://hl7.org/fhir/StructureDefinition/patient-contained-gp-profile"/> - <name value="PatientContainedOrgProfile"/> - <status value="draft"/> - <description value="Test profile to confirm that targetProfiles on references are enforced against contained resources"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <differential> - <element id="Patient"> - <path value="Patient"/> - </element> - <element id="Patient.generalPractitioner"> - <path value="Patient.generalPractitioner"/> - <type> - <code value="Reference"/> - <targetProfile value="#gp"/> - <aggregation value="contained"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org.xml deleted file mode 100644 index 5a6fb5faf..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-contained-org.xml +++ /dev/null @@ -1,20 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-error-gender"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - Check that profile validation checks contained resources - should fail because Organization is missing 'name' which is required by profile - </div> - </text> - <contained> - <Organization> - <id value="gp"/> - <identifier> - <value value="123"/> - </identifier> - </Organization> - </contained> - <generalPractitioner> - <reference value="#gp"/> - </generalPractitioner> -</Patient> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-duplicate.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-duplicate.json deleted file mode 100644 index 79f074512..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-duplicate.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "pat-good", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n some text in no particular language\n </div>" - }, - "active" : false, - "active" : true -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.json deleted file mode 100644 index 6045b9bff..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "resourceType": "Patient", - "id": "example", - "text": { - "status": "generated", - "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n\t\t\t<table>\n\t\t\t\t<tbody>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Name</td>\n\t\t\t\t\t\t<td>Peter James \n <b>Chalmers</b> ("Jim")\n </td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Address</td>\n\t\t\t\t\t\t<td>534 Erewhon, Pleasantville, Vic, 3999</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Contacts</td>\n\t\t\t\t\t\t<td>Home: unknown. Work: (03) 5555 6473</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td>Id</td>\n\t\t\t\t\t\t<td>MRN: 12345 (Acme Healthcare)</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</tbody>\n\t\t\t</table>\n\t\t</div>" - }, - "identifier": [ - { - "use": "usual", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203", - "code": "MR" - } - ] - }, - "system": "urn:oid:1.2.36.146.595.217.0.1", - "value": "12345", - "period": { - "start": "2001-05-06" - }, - "assigner": { - "display": "Acme Healthcare" - } - } - ], - "active": true, - "name": [ - { - "use": "official", - "family": "Chalmers", - "given": [ - "Peter", - "James" - ] - }, - { - "use": "usual", - "given": [ - "Jim" - ] - }, - { - "use": "maiden", - "family": "Windsor", - "given": [ - "Peter", - "James" - ], - "period": { - "end": "2002" - } - } - ], - "telecom": [ - { - "use": "home" - }, - { - "system": "phone", - "value": "(03) 5555 6473", - "use": "work", - "rank": 1 - }, - { - "system": "phone", - "value": "(03) 3410 5613", - "use": "mobile", - "rank": 2 - }, - { - "system": "phone", - "value": "(03) 5555 8834", - "use": "old", - "period": { - "end": "2014" - } - } - ], - "gender": "male", - "birthDate": "1974-12-25", - "_birthDate": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", - "valueDateTime": "1974-12-25T14:35:45-05:00" - } - ] - }, - "deceasedBoolean": false, - "address": [ - { - "use": "home", - "type": "both", - "text": "534 Erewhon St PeasantVille, Rainbow, Vic 3999", - "line": [ - "534 Erewhon St" - ], - "city": "PleasantVille", - "district": "Rainbow", - "state": "Vic", - "postalCode": "3999", - "period": { - "start": "1974-12-25" - } - } - ], - "contact": [ - { - "relationship": [ - { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0131", - "code": "N" - } - ] - } - ], - "name": { - "family": "du Marché", - "_family": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/humanname-own-prefix", - "valueString": "VV" - } - ] - }, - "given": [ - "Bénédicte" - ] - }, - "telecom": [ - { - "system": "phone", - "value": "+33 (237) 998327" - } - ], - "address": { - "use": "home", - "type": "both", - "line": [ - "534 Erewhon St" - ], - "city": "PleasantVille", - "district": "Rainbow", - "state": "Vic", - "postalCode": "3999", - "period": { - "start": "1974-12-25" - } - }, - "gender": "female", - "period": { - "start": "2012" - } - } - ], - "managingOrganization": { - "reference": "Organization/1" - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.xml deleted file mode 100644 index 1dc2adb2f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-example.xml +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir"> - <id value="example"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tbody> - <tr> - <td>Name</td> - <td>Peter James - <b>Chalmers</b> ("Jim") - </td> - </tr> - <tr> - <td>Address</td> - <td>534 Erewhon, Pleasantville, Vic, 3999</td> - </tr> - <tr> - <td>Contacts</td> - <td>Home: unknown. Work: (03) 5555 6473</td> - </tr> - <tr> - <td>Id</td> - <td>MRN: 12345 (Acme Healthcare)</td> - </tr> - </tbody> - </table> - </div> - </text> - <!-- MRN assigned by ACME healthcare on 6-May 2001 --> - <identifier> - <use value="usual"/> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> - <code value="MR"/> - </coding> - </type> - <system value="urn:oid:1.2.36.146.595.217.0.1"/> - <value value="12345"/> - <period> - <start value="2001-05-06"/> - </period> - <assigner> - <display value="Acme Healthcare"/> - </assigner> - </identifier> - <active value="true"/> - <!-- Peter James Chalmers, but called "Jim" --> - <name> - <use value="official"/> - <family value="Chalmers"/> - <given value="Peter"/> - <given value="James"/> - </name> - <name> - <use value="usual"/> - <given value="Jim"/> - </name> - <name> - <!-- Maiden names apply for anyone whose name changes as a result of marriage - irrespective of gender --> - <use value="maiden"/> - <family value="Windsor"/> - <given value="Peter"/> - <given value="James"/> - <period> - <end value="2002"/> - </period> - </name> - <telecom> - <use value="home"/> - <!-- home communication details aren't known --> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 6473"/> - <use value="work"/> - <rank value="1"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 3410 5613"/> - <use value="mobile"/> - <rank value="2"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 8834"/> - <use value="old"/> - <period> - <end value="2014"/> - </period> - </telecom> - <!-- use FHIR code system for male / female --> - <gender value="male"/> - <birthDate value="1974-12-25"> - <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> - <valueDateTime value="1974-12-25T14:35:45-05:00"/> - </extension> - </birthDate> - <deceasedBoolean value="false"/> - <address> - <use value="home"/> - <type value="both"/> - <text value="534 Erewhon St PeasantVille, Rainbow, Vic 3999"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <contact> - <relationship> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> - <code value="N"/> - </coding> - </relationship> - <name> - <family value="du Marché"> - <!-- the "du" part is a family name prefix (VV in iso 21090) --> - <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> - <valueString value="VV"/> - </extension> - </family> - <given value="Bénédicte"/> - </name> - <telecom> - <system value="phone"/> - <value value="+33 (237) 998327"/> - </telecom> - <address> - <use value="home"/> - <type value="both"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <gender value="female"/> - <period> - <!-- The contact relationship started in 2012 --> - <start value="2012"/> - </period> - </contact> - <managingOrganization> - <reference value="Organization/1"/> - </managingOrganization> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.json deleted file mode 100644 index b16cbfa3f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "pat-good", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n some text in no particular language\n </div>" - } -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.xml deleted file mode 100644 index 2bc9b80c0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-good.xml +++ /dev/null @@ -1,9 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="pat-good"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - some text in no particular language - </div> - </text> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.json deleted file mode 100644 index 8cbae4b7c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "pat-good", - "language" : "en-AU", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\">some text in no particular language </div>" - } -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.xml deleted file mode 100644 index f4a0ccfed..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang1.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Patient xmlns="http://hl7.org/fhir"> - <id value="pat-good"/> - <language value="en-AU"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml">some text in no particular language </div> - </text> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.json deleted file mode 100644 index 63290f8f8..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "pat-good", - "language" : "en-AU", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"en-AU\">some text in no particular language </div>" - } -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.xml deleted file mode 100644 index 1d2d79aa3..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang2.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Patient xmlns="http://hl7.org/fhir"> - <id value="pat-good"/> - <language value="en-AU"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-AU">some text in no particular language </div> - </text> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.json deleted file mode 100644 index f5b0011d7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resourceType" : "Patient", - "id" : "pat-good", - "language" : "en-AU", - "text" : { - "status" : "generated", - "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"fr\">some text in no particular language </div>" - } -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.xml deleted file mode 100644 index 47b7d9cd2..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-lang3.xml +++ /dev/null @@ -1,9 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Patient xmlns="http://hl7.org/fhir"> - <id value="pat-good"/> - <language value="en-AU"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml" lang="fr">some text in no particular language </div> - </text> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-bad.xml deleted file mode 100644 index 965e1a8e1..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-bad.xml +++ /dev/null @@ -1,12 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidenitiferslice-bad"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <system value="urn:oid:2.16.756.5.30.999999.1.2"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-badmultiple.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-badmultiple.xml deleted file mode 100644 index 8ca58d2dd..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-badmultiple.xml +++ /dev/null @@ -1,22 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifier-good"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1"/> - <value value="012/08.111111"/> - </identifier> - <identifier> - <system value="urn:oid:2.16.756.5.30.999999.1.2"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-good.xml deleted file mode 100644 index b6cd0d5ae..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-good.xml +++ /dev/null @@ -1,18 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifier-good"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-profile.xml deleted file mode 100644 index 99cbe5956..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifier-profile.xml +++ /dev/null @@ -1,47 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifier-profile" /> - <url - value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" /> - <name value="PatientConformProfile" /> - <status value="draft" /> - <description value="Test profile for patternIdentifier" /> - <kind value="resource" /> - <abstract value="false" /> - <type value="Patient" /> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/Patient" /> - <derivation value="constraint" /> - <differential> - <element id="Patient"> - <path value="Patient" /> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier" /> - <short value="An identifier for this patient" /> - <definition value="An identifier for this patient." /> - <requirements - value="Patients are almost always assigned specific numerical identifiers." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.identifier" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Identifier" /> - </type> - <patternIdentifier> - <type> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1" /> - </patternIdentifier> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-bad.xml deleted file mode 100644 index 4ca3d2143..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-bad.xml +++ /dev/null @@ -1,12 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidenitifer-bad"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <system value="urn:oid:2.16.756.5.30.999999.1.2"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-good.xml deleted file mode 100644 index b6cd0d5ae..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-good.xml +++ /dev/null @@ -1,18 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifier-good"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-goodmultiple.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-goodmultiple.xml deleted file mode 100644 index 5191ccacd..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-goodmultiple.xml +++ /dev/null @@ -1,22 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifierslice-goodmultiple"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - </div> - </text> - <identifier> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1"/> - <value value="012/08.111111"/> - </identifier> - <identifier> - <system value="urn:oid:2.16.756.5.30.999999.1.2"/> - <value value="012/08.111111"/> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-profile.xml deleted file mode 100644 index 82898641d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-patternidentifierslice-profile.xml +++ /dev/null @@ -1,48 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="patient-patternidentifierslice-profile" /> - <url - value="http://hl7.org/fhir/StructureDefinition/patient-patternidentifier-profile" /> - <name value="PatientConformProfile" /> - <status value="draft" /> - <description value="Test profile for slicing on Identifier with patternIdentifier" /> - <kind value="resource" /> - <abstract value="false" /> - <type value="Patient" /> - <baseDefinition - value="http://hl7.org/fhir/StructureDefinition/Patient" /> - <derivation value="constraint" /> - <differential> - <element id="Patient"> - <path value="Patient" /> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier" /> - <slicing> - <discriminator> - <type value="pattern" /> - <path value="$this" /> - </discriminator> - <rules value="open" /> - </slicing> - </element> - <element id="Patient.identifier:MR"> - <path value="Patient.identifier" /> - <sliceName value="MR" /> - <short value="An identifier for this patient" /> - <definition value="An identifier for this patient." /> - <min value="1" /> - <max value="1" /> - <patternIdentifier> - <type> - <coding> - <system - value="http://terminology.hl7.org/CodeSystem/v2-0203" /> - <code value="MR" /> - </coding> - </type> - <system value="urn:oid:2.16.756.5.30.999999.1" /> - </patternIdentifier> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.profile.xml deleted file mode 100644 index 97edee36e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.profile.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="patient-translated-codes"/> - <contained> - <ValueSet> - <id value="relationships"/> - <url value="http://hl7.org/fhir/patient-translated-codes-relationships"/> - <status value="draft"/> - <expansion> - <timestamp value="2019-05-23T10:18:03.2071-06:00"/> - <contains> - <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> - <code value="C"/> - <display value="alt-display"/> - </contains> - <contains> - <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> - <code value="N"/> - <designation> - <value value="alt-designation"/> - </designation> - </contains> - </expansion> - </ValueSet> - </contained> - <url value="http://hl7.org/fhir/StructureDefinition/patient-translated-codes"/> - <name value="PatientTranslatedCodes"/> - <title value="Test slicing by polymorphic type"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <differential> - <element id="Patient"> - <path value="Patient"/> - </element> - <element id="Patient.contact"> - <path value="Patient.contact"/> - </element> - <element id="Patient.contact.relationship"> - <path value="Patient.contact.relationship"/> - <binding> - <strength value="required"/> - <valueSet value="#relationships"/> - </binding> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.xml deleted file mode 100644 index 96b34bcb8..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-translated-codes.xml +++ /dev/null @@ -1,28 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-error-gender"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - Test alternate displays and designations for codes - </div> - </text> - <contact> - <relationship> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> - <code value="C"/> - <display value="alt-display"/> - </coding> - </relationship> - <relationship> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0131"/> - <code value="N"/> - <display value="alt-designation"/> - </coding> - </relationship> - <name> - <text value="Someone"/> - </name> - </contact> -</Patient> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-warning-maritalstatus.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-warning-maritalstatus.xml deleted file mode 100644 index 2e0fb74b7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient-warning-maritalstatus.xml +++ /dev/null @@ -1,17 +0,0 @@ -<Patient xmlns="http://hl7.org/fhir"> - <id value="patient-warning-maritalstatus"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> -Success...validating ./examplesNonValid/patient/patient-warning-maritalstatus.xml: error:0 warn:1 info:0 - Warning @ Patient.maritalStatus (line 9, col20) : None of the codes provided are in the value set http://hl7.org/fhir/ValueSet/marital-status (http://hl7.org/fhir/ValueSet/marital-status, and a code should come from this value set unless it has no suitable code) (codes = http://fhir.ch/whateversysstem#adfasfdf) - </div> - </text> - <maritalStatus> - <coding> - <system value="http://fhir.ch/whateversysstem"/> - <code value="adfasfdf"/> - <display value="I dont know what this value means"/> - </coding> - </maritalStatus> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient102.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient102.xml deleted file mode 100644 index 0bc94454f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient102.xml +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir"> - <id value="example"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - - <table> - - <tbody> - - <tr> - - <td>Name</td> - - <td>Peter James - <b>Chalmers</b> ("Jim") - </td> - - </tr> - - <tr> - - <td>Address</td> - - <td>534 Erewhon, Pleasantville, Vic, 3999</td> - - </tr> - - <tr> - - <td>Contacts</td> - - <td>Home: unknown. Work: (03) 5555 6473</td> - - </tr> - - <tr> - - <td>Id</td> - - <td>MRN: 12345 (Acme Healthcare)</td> - - </tr> - - </tbody> - - </table> - - </div> - </text> -<!-- MRN assigned by ACME healthcare on 6-May 2001 --> - <identifier> - <use value="usual"/> - <type> - <coding> - <system value="http://hl7.org/fhir/v2/0203"/> - <code value="MR"/> - </coding> - </type> - <system value="urn:oid:1.2.36.146.595.217.0.1"/> - <value value="12345"/> - <period> - <start value="2001-05-06"/> - </period> - <assigner> - <display value="Acme Healthcare"/> - </assigner> - </identifier> - <active value="true"/> -<!-- Peter James Chalmers, but called "Jim" --> - <name> - <use value="official"/> - <family value="Chalmers"/> - <given value="Peter"/> - <given value="James"/> - </name> - <name> - <use value="usual"/> - <given value="Jim"/> - </name> - <telecom> - <use value="home"/> - <!-- home communication details aren't known --> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 6473"/> - <use value="work"/> - </telecom> -<!-- use FHIR code system for male / female --> - <gender value="male"/> - <birthDate value="1974-12-25"> - <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> - <valueDateTime value="1974-12-25T14:35:45-05:00"/> - </extension> - </birthDate> - <deceasedBoolean value="false"/> - <address> - <use value="home"/> - <type value="both"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <contact> - <relationship> - <coding> - <system value="http://hl7.org/fhir/patient-contact-relationship"/> - <code value="partner"/> - </coding> - </relationship> - <name> - <family value="du"> - <!-- the "du" part is a family name prefix (VV in iso 21090) --> - <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> - <valueCode value="VV"/> - </extension> - </family> - <family value="Marché"/> - <given value="Bénédicte"/> - </name> - <telecom> - <system value="phone"/> - <value value="+33 (237) 998327"/> - </telecom> - <gender value="female"/> - <period> - <!-- The contact relationship started in 2012 --> - <start value="2012"/> - </period> - </contact> - <managingOrganization> - <reference value="Organization/1"/> - </managingOrganization> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient140.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient140.xml deleted file mode 100644 index 0bc94454f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient140.xml +++ /dev/null @@ -1,140 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir"> - <id value="example"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - - <table> - - <tbody> - - <tr> - - <td>Name</td> - - <td>Peter James - <b>Chalmers</b> ("Jim") - </td> - - </tr> - - <tr> - - <td>Address</td> - - <td>534 Erewhon, Pleasantville, Vic, 3999</td> - - </tr> - - <tr> - - <td>Contacts</td> - - <td>Home: unknown. Work: (03) 5555 6473</td> - - </tr> - - <tr> - - <td>Id</td> - - <td>MRN: 12345 (Acme Healthcare)</td> - - </tr> - - </tbody> - - </table> - - </div> - </text> -<!-- MRN assigned by ACME healthcare on 6-May 2001 --> - <identifier> - <use value="usual"/> - <type> - <coding> - <system value="http://hl7.org/fhir/v2/0203"/> - <code value="MR"/> - </coding> - </type> - <system value="urn:oid:1.2.36.146.595.217.0.1"/> - <value value="12345"/> - <period> - <start value="2001-05-06"/> - </period> - <assigner> - <display value="Acme Healthcare"/> - </assigner> - </identifier> - <active value="true"/> -<!-- Peter James Chalmers, but called "Jim" --> - <name> - <use value="official"/> - <family value="Chalmers"/> - <given value="Peter"/> - <given value="James"/> - </name> - <name> - <use value="usual"/> - <given value="Jim"/> - </name> - <telecom> - <use value="home"/> - <!-- home communication details aren't known --> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 6473"/> - <use value="work"/> - </telecom> -<!-- use FHIR code system for male / female --> - <gender value="male"/> - <birthDate value="1974-12-25"> - <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> - <valueDateTime value="1974-12-25T14:35:45-05:00"/> - </extension> - </birthDate> - <deceasedBoolean value="false"/> - <address> - <use value="home"/> - <type value="both"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <contact> - <relationship> - <coding> - <system value="http://hl7.org/fhir/patient-contact-relationship"/> - <code value="partner"/> - </coding> - </relationship> - <name> - <family value="du"> - <!-- the "du" part is a family name prefix (VV in iso 21090) --> - <extension url="http://hl7.org/fhir/StructureDefinition/iso21090-EN-qualifier"> - <valueCode value="VV"/> - </extension> - </family> - <family value="Marché"/> - <given value="Bénédicte"/> - </name> - <telecom> - <system value="phone"/> - <value value="+33 (237) 998327"/> - </telecom> - <gender value="female"/> - <period> - <!-- The contact relationship started in 2012 --> - <start value="2012"/> - </period> - </contact> - <managingOrganization> - <reference value="Organization/1"/> - </managingOrganization> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient301.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/patient301.xml deleted file mode 100644 index 7ca41e8bf..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/patient301.xml +++ /dev/null @@ -1,156 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?><Patient xmlns="http://hl7.org/fhir"> - <id value="example"/> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table> - <tbody> - <tr> - <td>Name</td> - <td>Peter James - <b>Chalmers</b> ("Jim") - </td> - </tr> - <tr> - <td>Address</td> - <td>534 Erewhon, Pleasantville, Vic, 3999</td> - </tr> - <tr> - <td>Contacts</td> - <td>Home: unknown. Work: (03) 5555 6473</td> - </tr> - <tr> - <td>Id</td> - <td>MRN: 12345 (Acme Healthcare)</td> - </tr> - </tbody> - </table> - </div> - </text> - <!-- MRN assigned by ACME healthcare on 6-May 2001 --> - <identifier> - <use value="usual"/> - <type> - <coding> - <system value="http://hl7.org/fhir/v2/0203"/> - <code value="MR"/> - </coding> - </type> - <system value="urn:oid:1.2.36.146.595.217.0.1"/> - <value value="12345"/> - <period> - <start value="2001-05-06"/> - </period> - <assigner> - <display value="Acme Healthcare"/> - </assigner> - </identifier> - <active value="true"/> - <!-- Peter James Chalmers, but called "Jim" --> - <name> - <use value="official"/> - <family value="Chalmers"/> - <given value="Peter"/> - <given value="James"/> - </name> - <name> - <use value="usual"/> - <given value="Jim"/> - </name> - <name> - <!-- Maiden names apply for anyone whose name changes as a result of marriage - irrespective of gender --> - <use value="maiden"/> - <family value="Windsor"/> - <given value="Peter"/> - <given value="James"/> - <period> - <end value="2002"/> - </period> - </name> - <telecom> - <use value="home"/> - <!-- home communication details aren't known --> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 6473"/> - <use value="work"/> - <rank value="1"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 3410 5613"/> - <use value="mobile"/> - <rank value="2"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="(03) 5555 8834"/> - <use value="old"/> - <period> - <end value="2014"/> - </period> - </telecom> - <!-- use FHIR code system for male / female --> - <gender value="male"/> - <birthDate value="1974-12-25"> - <extension url="http://hl7.org/fhir/StructureDefinition/patient-birthTime"> - <valueDateTime value="1974-12-25T14:35:45-05:00"/> - </extension> - </birthDate> - <deceasedBoolean value="false"/> - <address> - <use value="home"/> - <type value="both"/> - <text value="534 Erewhon St PeasantVille, Rainbow, Vic 3999"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <contact> - <relationship> - <coding> - <system value="http://hl7.org/fhir/v2/0131"/> - <code value="N"/> - </coding> - </relationship> - <name> - <family value="du Marché"> - <!-- the "du" part is a family name prefix (VV in iso 21090) --> - <extension url="http://hl7.org/fhir/StructureDefinition/humanname-own-prefix"> - <valueString value="VV"/> - </extension> - </family> - <given value="Bénédicte"/> - </name> - <telecom> - <system value="phone"/> - <value value="+33 (237) 998327"/> - </telecom> - <address> - <use value="home"/> - <type value="both"/> - <line value="534 Erewhon St"/> - <city value="PleasantVille"/> - <district value="Rainbow"/> - <state value="Vic"/> - <postalCode value="3999"/> - <period> - <start value="1974-12-25"/> - </period> - </address> - <gender value="female"/> - <period> - <!-- The contact relationship started in 2012 --> - <start value="2012"/> - </period> - </contact> - <managingOrganization> - <reference value="Organization/1"/> - </managingOrganization> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/period-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/period-1.xml deleted file mode 100644 index 7b70c1085..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/period-1.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> <!-- 1 --> - <name value="paramPeriod"/> - <valuePeriod> - <start value="2019-04-25T16:47:00Z"/> - <end value="2019-04-25"/> - </valuePeriod> - </parameter> -</Parameters> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-1.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-1.json deleted file mode 100644 index aea4149d5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-1.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "resourceType": "Practitioner", - "id": "1", - "identifier": [ - { - "system": "http://www.acme.org/practitioners", - "value": "23" - } - ], - "active": true, - "name": [ - { - "family": "Careful", - "given": [ - "Adam" - ], - "prefix": [ - "Dr" - ] - } - ], - "address": [ - { - "use": "home", - "line": [ - "534 Erewhon St" - ], - "city": "PleasantVille", - "state": "Vic", - "postalCode": "3999" - } - ] -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-notprac.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-notprac.json deleted file mode 100644 index 2deb09aaa..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/practitioner-notprac.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "resourceType": "Patient", - "id": "notprac", - "identifier": [ - { - "use": "usual", - "type": { - "coding": [ - { - "system": "http://terminology.hl7.org/CodeSystem/v2-0203", - "code": "MR" - } - ] - }, - "system": "urn:oid:1.2.36.146.595.217.0.1", - "value": "12345", - "period": { - "start": "2001-05-06" - }, - "assigner": { - "display": "Acme Healthcare" - } - } - ], - "active": true, - "name": [ - { - "use": "official", - "family": "Chalmers", - "given": [ - "Peter", - "James" - ] - }, - { - "use": "usual", - "given": [ - "Jim" - ] - }, - { - "use": "maiden", - "family": "Windsor", - "given": [ - "Peter", - "James" - ], - "period": { - "end": "2002" - } - } - ], - "telecom": [ - { - "use": "home" - }, - { - "system": "phone", - "value": "(03) 5555 6473", - "use": "work", - "rank": 1 - }, - { - "system": "phone", - "value": "(03) 3410 5613", - "use": "mobile", - "rank": 2 - }, - { - "system": "phone", - "value": "(03) 5555 8834", - "use": "old", - "period": { - "end": "2014" - } - } - ], - "gender": "male", - "birthDate": "1974-12-25", - "_birthDate": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/patient-birthTime", - "valueDateTime": "1974-12-25T14:35:45-05:00" - } - ] - }, - "deceasedBoolean": false, - "address": [ - { - "use": "home", - "type": "both", - "text": "534 Erewhon St PeasantVille, Rainbow, Vic 3999", - "line": [ - "534 Erewhon St" - ], - "city": "PleasantVille", - "district": "Rainbow", - "state": "Vic", - "postalCode": "3999", - "period": { - "start": "1974-12-25" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad-empty.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad-empty.xml deleted file mode 100644 index 98604f3f0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad-empty.xml +++ /dev/null @@ -1,228 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> - <name value="paramBoolean"/> - <valueBoolean value="true"/> - </parameter> - <parameter> - <name value="paramInteger1"/> - <valueInteger value="0"/> - </parameter> - <parameter> - <name value="paramInteger2"/> - <valueInteger value="-1"/> - </parameter> - <parameter> - <name value="paramInteger3"/> - <valueInteger value="-1"/> - </parameter> - <parameter> - <name value="paramDecimal0"/> - <valueDecimal value="0"/> - </parameter> - <parameter> - <name value="paramDecimal1"/> - <valueDecimal value="1.09"/> - </parameter> - <parameter> - <name value="paramDecimal2"/> - <valueDecimal value="-0.00000000000000000000000023"/> - </parameter> - <parameter> - <name value="paramDecimal3"/> - <valueDecimal value="121233786234234234234234.12323"/> - </parameter> - <parameter> - <name value="paramBase64Binary"/> - <valueBase64Binary value="YXNhc2Rhc2Q="/> - </parameter> - <parameter> - <name value="paramInstant"/> - <valueInstant value="2013-01-01T12:32:45Z"/> - </parameter> - <parameter> - <name value="paramString"/> - <valueString value=""/> - </parameter> - <parameter> - <name value="paramUri"/> - <valueUri value="http://any.uri/somewhere"/> - </parameter> - <parameter> - <name value="paramDate"/> - <valueDate value="2000-02-29"/> - </parameter> - <parameter> - <name value="paramDateTime1"/> - <valueDateTime value="2013-01-01T12:32:45+10:00"/> - </parameter> - <parameter> - <name value="paramDateTime2"/> - <valueDateTime value="2013-01-01"/> - </parameter> - <parameter> - <name value="paramDateTime3"/> - <valueDateTime value="2013-01-01T12:59:60+10:00"/> - </parameter> - <parameter> - <name value="paramTime"/> - <valueTime value="11:59:59"/> - </parameter> - <parameter> - <name value="paramCode1"/> - <valueCode value="asdasd"/> - </parameter> - <parameter> - <name value="paramCode2"/> - <valueCode value="asd asd"/> - </parameter> - <parameter> - <name value="paramOid"/> - <valueOid value="urn:oid:0.1.2.3"/> - </parameter> - <parameter> - <name value="paramId"/> - <valueId value="12123-23"/> - </parameter> - <parameter> - <name value="paramUnsignedInt"/> - <valueUnsignedInt value="0"/> - </parameter> - <parameter> - <name value="paramPositiveInt"/> - <valuePositiveInt value="1"/> - </parameter> - <parameter> - <name value="paramMarkdown"/> - <valueMarkdown value="# This is an H1 # ## This is an H2 ## ### This is an H3 ###### "/> - </parameter> - - <parameter> - <name value="paramBooleanMissing"/> - <valueBoolean> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueBoolean> - </parameter> - <parameter> - <name value="paramIntegerMissing"/> - <valueInteger> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueInteger> - </parameter> - <parameter> - <name value="paramDecimalMissing"/> - <valueDecimal> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDecimal> - </parameter> - <parameter> - <name value="paramBase64BinaryMissing"/> - <valueBase64Binary> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueBase64Binary> - </parameter> - <parameter> - <name value="paramInstantMissing"/> - <valueInstant> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueInstant> - </parameter> - <parameter> - <name value="paramStringMissing"/> - <valueString> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueString> - </parameter> - <parameter> - <name value="paramUriMissing"/> - <valueUri> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueUri> - </parameter> - <parameter> - <name value="paramDateMissing"/> - <valueDate> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDate> - </parameter> - <parameter> - <name value="paramDateTimeMissing"/> - <valueDateTime> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDateTime> - </parameter> - <parameter> - <name value="paramTimeMissing"/> - <valueTime> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueTime> - </parameter> - <parameter> - <name value="paramCodeMissing"/> - <valueCode> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueCode> - </parameter> - <parameter> - <name value="paramOidMissing"/> - <valueOid> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueOid> - </parameter> - <parameter> - <name value="paramIdMissing"/> - <valueId> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueId> - </parameter> - <parameter> - <name value="paramUnsignedIntMissing"/> - <valueUnsignedInt> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueUnsignedInt> - </parameter> - <parameter> - <name value="paramPositiveIntMissing"/> - <valuePositiveInt> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valuePositiveInt> - </parameter> - <parameter> - <name value="paramMarkdownMissing"/> - <valueMarkdown> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueMarkdown> - </parameter> -</Parameters> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad.xml deleted file mode 100644 index b7f9cad5b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-bad.xml +++ /dev/null @@ -1,147 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> <!-- 1 --> - <name value="paramBoolean1"/> - <valueBoolean value="TRUE"/> - </parameter> - <parameter> <!-- 2 --> - <name value="paramBoolean2"/> - <valueBoolean value="1"/> - </parameter> - <parameter> <!-- 3 --> - <name value="paramBoolean3"/> - <valueBoolean value="yes"/> - </parameter> - <parameter> <!-- 4 --> - <name value="paramInteger1"/> - <valueInteger value="34534536346345345345"/> - </parameter> - <parameter> <!-- 5 --> - <name value="paramInteger2"/> - <valueInteger value="$0"/> - </parameter> - <parameter> <!-- 6 --> - <name value="paramInteger3"/> - <valueInteger value="1e4"/> - </parameter> - <parameter> <!-- 7 --> - <name value="paramDecimal0"/> - <valueDecimal value="00.1"/> - </parameter> - <parameter> <!-- 10 --> - <name value="paramBase64Binary"/> - <valueBase64Binary value="YXNhcs2Rhc2Q="/> - </parameter> - <parameter> <!-- 11 --> - <name value="paramInstant1"/> - <valueInstant value="0000-01-01T12:32:45Z"/> - </parameter> - <parameter> <!-- 12 --> - <name value="paramInstant2"/> - <valueInstant value="1983-00-01T12:32:45Z"/> - </parameter> - <parameter> <!-- 13 --> - <name value="paramInstant3"/> - <valueInstant value="1983-01-00T12:32:45Z"/> - </parameter> - <parameter> <!-- 14 --> - <name value="paramInstant4"/> - <valueInstant value="1983-01-01T12:32"/> - </parameter> - <parameter> <!-- 15 --> - <name value="paramInstant5"/> - <valueInstant value="1983-01-01T12:32:45"/> - </parameter> - <parameter> <!-- 16 --> - <name value="paramInstant6"/> - <valueInstant value="1983-01-01T12:32:45-15:00"/> - </parameter> - <parameter> <!-- 17 --> - <name value="paramString"/> - <valueString value=""/> - </parameter> - <parameter> <!-- 18 --> - <name value="paramUri"/> - <valueUri value="not a valid uri"/> - </parameter> - <parameter> <!-- 19 --> - <name value="paramDate"/> - <valueDate value="1900-02-29"/> - </parameter> - <parameter> <!-- 20 --> - <name value="paramDate"/> - <valueDate value="1900-13-01"/> - </parameter> - <parameter> <!-- 21 --> - <name value="paramDate"/> - <valueDate value="2013-04-31"/> - </parameter> - <parameter> <!-- 22 --> - <name value="paramDateTime1"/> - <valueDateTime value="2013-01-01T12:32:45+13:33.00"/> - </parameter> - <parameter> <!-- 23 --> - <name value="paramDateTime2"/> - <valueDateTime value="-0001-01-01"/> - </parameter> - <parameter> <!-- 24 --> - <name value="paramTime"/> - <valueTime value="11:60:59"/> - </parameter> - <parameter> <!-- 25 --> - <name value="paramTime"/> - <valueTime value="24:00:00"/> - </parameter> - <parameter> <!-- 26 --> - <name value="paramCode1"/> - <valueCode value=" asdasd"/> - </parameter> - <parameter> <!-- 27 --> - <name value="paramCode2"/> - <valueCode value="asd asd"/> - </parameter> - <parameter> <!-- 28 --> - <name value="paramCode3"/> - <valueCode value="asdasd "/> - </parameter> - <parameter> <!-- 29 --> - <name value="paramOid1"/> - <valueOid value="oid:0.1.2.3"/> - </parameter> - <parameter> <!-- 30 --> - <name value="paramOid2"/> - <valueOid value="urn:oid: 0.1.2.3"/> - </parameter> - <parameter> <!-- 31 --> - <name value="paramOid3"/> - <valueOid value="urn:oid:a0.1.2.3"/> - </parameter> - <parameter> <!-- 32 --> - <name value="paramOid4"/> - <valueOid value="0.1.2.3"/> - </parameter> - <parameter> <!-- 33 --> - <name value="paramId"/> - <valueId value=":12123-23"/> - </parameter> - <parameter> <!-- 34 --> - <name value="paramId"/> - <valueId value="12123/23"/> - </parameter> - <parameter> <!-- 35 --> - <name value="paramId"/> - <valueId value="asdasdasdasdasddgjhasdkjfgasdfasdfgsadfgsdfaskdfjhasdfjgsdfjhgsdfjhgsadfskadjfhg"/> - </parameter> - <parameter> <!-- 36 --> - <name value="paramUnsignedInt"/> - <valueUnsignedInt value="-1"/> - </parameter> - <parameter> <!-- 37 --> - <name value="paramPositiveInt"/> - <valuePositiveInt value="0"/> - </parameter> - <parameter> <!-- 38 --> - <name value="paramMarkdown"/> - <valueMarkdown value=""/> - </parameter> -</Parameters> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.json deleted file mode 100644 index 095e96c82..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "resourceType" : "Parameters", - "parameter" : [ - { - "name" : "paramString", - "valueString" : " \t " - } - ] -} diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.xml deleted file mode 100644 index 4ff16b070..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good-ws.xml +++ /dev/null @@ -1,7 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> - <name value="paramString"/> - <valueString value=" "/> - </parameter> -</Parameters> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good.xml deleted file mode 100644 index 966a4d347..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/primitive-good.xml +++ /dev/null @@ -1,248 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> - <name value="paramBoolean"/> - <valueBoolean value="true"/> - </parameter> - <parameter> - <name value="paramInteger1"/> - <valueInteger value="0"/> - </parameter> - <parameter> - <name value="paramInteger2"/> - <valueInteger value="-1"/> - </parameter> - <parameter> - <name value="paramInteger3"/> - <valueInteger value="-1"/> - </parameter> - <parameter> - <name value="paramDecimal0"/> - <valueDecimal value="0"/> - </parameter> - <parameter> - <name value="paramDecimal1"/> - <valueDecimal value="1.09"/> - </parameter> - <parameter> - <name value="paramDecimal2"/> - <valueDecimal value="-0.00000000000000000000000023"/> - </parameter> - <parameter> - <name value="paramDecimal3"/> - <valueDecimal value="121233786234234234234234.12323"/> - </parameter> - <parameter> - <name value="paramDecimal4"/> - <valueDecimal value="1e1"/> - </parameter> - <parameter> - <name value="paramDecimal5"/> - <valueDecimal value="1.0e-1"/> - </parameter> - <parameter> - <name value="paramDecimal6"/> - <valueDecimal value="0.1e11"/> - </parameter> - <parameter> - <name value="paramDecimal7"/> - <valueDecimal value="1e09"/> - </parameter> - <parameter> - <name value="paramDecimal8"/> - <valueDecimal value="0.12e3"/> - </parameter> - <parameter> - <name value="paramBase64Binary"/> - <valueBase64Binary value="YXNhc2Rhc2Q="/> - </parameter> - <parameter> - <name value="paramInstant"/> - <valueInstant value="2013-01-01T12:32:45Z"/> - </parameter> - <parameter> - <name value="paramString"/> - <valueString value="asdasd"/> - </parameter> - <parameter> - <name value="paramUri"/> - <valueUri value="http://any.uri/somewhere"/> - </parameter> - <parameter> - <name value="paramDate"/> - <valueDate value="2000-02-29"/> - </parameter> - <parameter> - <name value="paramDateTime1"/> - <valueDateTime value="2013-01-01T12:32:45+10:00"/> - </parameter> - <parameter> - <name value="paramDateTime2"/> - <valueDateTime value="2013-01-01"/> - </parameter> - <parameter> - <name value="paramDateTime3"/> - <valueDateTime value="2013-01-01T12:59:60+10:00"/> - </parameter> - <parameter> - <name value="paramTime"/> - <valueTime value="11:59:59"/> - </parameter> - <parameter> - <name value="paramCode1"/> - <valueCode value="asdasd"/> - </parameter> - <parameter> - <name value="paramCode2"/> - <valueCode value="asd asd"/> - </parameter> - <parameter> - <name value="paramOid"/> - <valueOid value="urn:oid:0.1.2.3"/> - </parameter> - <parameter> - <name value="paramId"/> - <valueId value="12123-23"/> - </parameter> - <parameter> - <name value="paramUnsignedInt"/> - <valueUnsignedInt value="0"/> - </parameter> - <parameter> - <name value="paramPositiveInt"/> - <valuePositiveInt value="1"/> - </parameter> - <parameter> - <name value="paramMarkdown"/> - <valueMarkdown value="# This is an H1 # ## This is an H2 ## ### This is an H3 ###### "/> - </parameter> - - <parameter> - <name value="paramBooleanMissing"/> - <valueBoolean> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueBoolean> - </parameter> - <parameter> - <name value="paramIntegerMissing"/> - <valueInteger> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueInteger> - </parameter> - <parameter> - <name value="paramDecimalMissing"/> - <valueDecimal> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDecimal> - </parameter> - <parameter> - <name value="paramBase64BinaryMissing"/> - <valueBase64Binary> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueBase64Binary> - </parameter> - <parameter> - <name value="paramInstantMissing"/> - <valueInstant> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueInstant> - </parameter> - <parameter> - <name value="paramStringMissing"/> - <valueString> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueString> - </parameter> - <parameter> - <name value="paramUriMissing"/> - <valueUri> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueUri> - </parameter> - <parameter> - <name value="paramDateMissing"/> - <valueDate> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDate> - </parameter> - <parameter> - <name value="paramDateTimeMissing"/> - <valueDateTime> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueDateTime> - </parameter> - <parameter> - <name value="paramTimeMissing"/> - <valueTime> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueTime> - </parameter> - <parameter> - <name value="paramCodeMissing"/> - <valueCode> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueCode> - </parameter> - <parameter> - <name value="paramOidMissing"/> - <valueOid> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueOid> - </parameter> - <parameter> - <name value="paramIdMissing"/> - <valueId> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueId> - </parameter> - <parameter> - <name value="paramUnsignedIntMissing"/> - <valueUnsignedInt> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueUnsignedInt> - </parameter> - <parameter> - <name value="paramPositiveIntMissing"/> - <valuePositiveInt> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valuePositiveInt> - </parameter> - <parameter> - <name value="paramMarkdownMissing"/> - <valueMarkdown> - <extension url="http://hl7.org/fhir/StructureDefinition/data-absent-reason"> - <valueCode value="unknown"/> - </extension> - </valueMarkdown> - </parameter> -</Parameters> - diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-patient-au.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-patient-au.xml deleted file mode 100644 index 40e1f0fa0..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-patient-au.xml +++ /dev/null @@ -1,8702 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="au-patient"/> - <url value="http://hl7.org.au/fhir/StructureDefinition/au-patient"/> - <version value="1.0.0"/> - <name value="AUBasePatient"/> - <title value="AU Base Patient"/> - <status value="draft"/> - <date value="2017-09-06T06:30:54+00:00"/> - <publisher value="Health Level Seven Australia (Patient Administration WG)"/> - <contact> - <telecom> - <system value="url"/> - <value value="http://hl7.org.au/fhir"/> - <use value="work"/> - </telecom> - </contact> - <description value="Australian realm Patient profile"/> - <fhirVersion value="3.0.1"/> - <mapping> - <identity value="rim"/> - <uri value="http://hl7.org/v3"/> - <name value="RIM Mapping"/> - </mapping> - <mapping> - <identity value="cda"/> - <uri value="http://hl7.org/v3/cda"/> - <name value="CDA (R2)"/> - </mapping> - <mapping> - <identity value="w5"/> - <uri value="http://hl7.org/fhir/w5"/> - <name value="W5 Mapping"/> - </mapping> - <mapping> - <identity value="v2"/> - <uri value="http://hl7.org/v2"/> - <name value="HL7 v2 Mapping"/> - </mapping> - <mapping> - <identity value="loinc"/> - <uri value="http://loinc.org"/> - <name value="LOINC code for the element"/> - </mapping> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <snapshot> - <element id="Patient"> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> - <valueCode value="trial-use"/> - </extension> - <path value="Patient"/> - <short value="A patient in an Australian healthcare context"/> - <definition - value="Demographics and other administrative information about an individual receiving care or other health-related services."/> - <alias value="SubjectOfCare Client Resident"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient"/> - <min value="0"/> - <max value="*"/> - </base> - <constraint> - <key value="dom-2"/> - <severity value="error"/> - <human - value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> - <expression value="contained.contained.empty()"/> - <xpath value="not(parent::f:contained and f:contained)"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-1"/> - <severity value="error"/> - <human - value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/> - <expression value="contained.text.empty()"/> - <xpath value="not(parent::f:contained and f:text)"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-4"/> - <severity value="error"/> - <human - value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> - <expression - value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> - <xpath - value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="dom-3"/> - <severity value="error"/> - <human - value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/> - <expression - value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"/> - <xpath - value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"/> - <source value="DomainResource"/> - </constraint> - <constraint> - <key value="inv-pat-0"/> - <severity value="error"/> - <human value="If there is a birth time its date shall be the birth date"/> - <expression - value="birthDate.extension.where(url='http://hl7.org/fhir/StructureDefinition/patient-birthTime').exists() implies birthDate.extension('http://hl7.org/fhir/StructureDefinition/patient-birthTime').value.toString().substring(0,10) = birthDate.toString()"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="Entity. Role, or Act"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Patient[classCode=PAT]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="ClinicalDocument.recordTarget.patientRole"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="administrative.individual"/> - </mapping> - </element> - <element id="Patient.id"> - <path value="Patient.id"/> - <short value="Logical id of this artifact"/> - <definition - value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="id"/> - </type> - <isSummary value="true"/> - </element> - <element id="Patient.meta"> - <path value="Patient.meta"/> - <short value="Metadata about the resource"/> - <definition - value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Resource.meta"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Meta"/> - </type> - <isSummary value="true"/> - </element> - <element id="Patient.implicitRules"> - <path value="Patient.implicitRules"/> - <short value="A set of rules under which this content was created"/> - <definition - value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/> - <comment - value="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. - -This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Resource.implicitRules"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - </element> - <element id="Patient.language"> - <path value="Patient.language"/> - <short value="Language of the resource content"/> - <definition value="The base language in which the resource is written."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.language"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueReference> - <reference value="http://hl7.org/fhir/ValueSet/all-languages"/> - </valueReference> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Language"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="extensible"/> - <description value="A human language."/> - <valueSet value="http://hl7.org/fhir/ValueSet/languages"/> - </binding> - </element> - <element id="Patient.text"> - <path value="Patient.text"/> - <short value="Text summary of the resource, for human interpretation"/> - <definition - value="A human-readable narrative that contains a summary of the resource, and may 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 - value="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 in formation is added later."/> - <alias value="narrative"/> - <alias value="html"/> - <alias value="xhtml"/> - <alias value="display"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Narrative"/> - </type> - <condition value="dom-1"/> - <mapping> - <identity value="rim"/> - <map value="Act.text?"/> - </mapping> - </element> - <element id="Patient.contained"> - <path value="Patient.contained"/> - <short value="Contained, inline Resources"/> - <definition - value="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 - value="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."/> - <alias value="inline resources"/> - <alias value="anonymous resources"/> - <alias value="contained resources"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.contained"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Resource"/> - </type> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension"> - <path value="Patient.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - <short value="Extension"/> - <definition value="An Extension"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - </element> - <element id="Patient.extension:birthPlace"> - <path value="Patient.extension"/> - <sliceName value="birthPlace"/> - <short value="Patient Birth Place"/> - <definition - value="The registered place of birth of the patient. A sytem may use the address.text if they don't store the birthPlace address in discrete elements."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/birthPlace"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.extension:indigenousStatus"> - <path value="Patient.extension"/> - <sliceName value="indigenousStatus"/> - <short value="Patient Indigenous Status"/> - <definition - value="National Health Data Dictionary (NHDD) based indigenous status for a patient."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/indigenous-status"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.extension:closingTheGapRegistration"> - <path value="Patient.extension"/> - <sliceName value="closingTheGapRegistration"/> - <short value="Patient Closing the Gap Registration"/> - <definition - value="Closing the Gap registration indicator for an Australian patient."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.extension:mothersMaidenName"> - <path value="Patient.extension"/> - <sliceName value="mothersMaidenName"/> - <short value="Patient Mother's Maiden Name"/> - <definition - value="Mother's maiden (unmarried) name, commonly collected to help verify patient identity."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - <mapping> - <identity value="v2"/> - <map value="PID-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role relationship to entity with maiden name (?)"/> - </mapping> - </element> - <element id="Patient.modifierExtension"> - <path value="Patient.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition - value="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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="type"/> - </discriminator> - <rules value="open"/> - </slicing> - <short value="An identifier for this patient"/> - <definition value="An identifier for this patient."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber"> - <path value="Patient.identifier"/> - <sliceName value="ihiNumber"/> - <short value="National Individual Healthcare Identifier (IHI)"/> - <definition value="National Healthcare Identifier (IHI) for the patient."/> - <requirements - value="Identifier as assigned and available via Healthcare Identifiers (HI) service."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Extension"/> - <definition value="An Extension"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="ihiStatus"/> - <short value="Individual Healthcare Identifier (IHI) Number Status"/> - <definition value="IHI number status associated with an IHI identifier."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="http://hl7.org.au/fhir/StructureDefinition/ihi-status"/> - </type> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiStatus.id"> - <path value="Patient.identifier.extension.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiStatus.extension"> - <path value="Patient.identifier.extension.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiStatus.url"> - <path value="Patient.identifier.extension.url"/> - <representation value="xmlAttr"/> - <short value="identifies the meaning of the extension"/> - <definition - value="Source of the definition for the extension code - a logical name or a URL."/> - <comment - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Extension.url"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org.au/fhir/StructureDefinition/ihi-status"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element - id="Patient.identifier:ihiNumber.extension:ihiStatus.valueCoding:valueCoding"> - <path value="Patient.identifier.extension.valueCoding"/> - <sliceName value="valueCoding"/> - <short value="IHI Number Status Code"/> - <definition value="IHI number status associated with an IHI identifier."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Extension.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Coding"/> - </type> - <binding> - <strength value="required"/> - <description value="IHI Number Status"/> - <valueSet value="https://healthterminologies.gov.au/fhir/ValueSet/ihi-status-1"/> - </binding> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiRecordStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="ihiRecordStatus"/> - <short value="Individual Healthcare Identifier (IHI) Number Record Status"/> - <definition - value="Individual Healthcare Identifier (IHI) value record status associated with an IHI identifier."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/ihi-record-status"/> - </type> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiRecordStatus.id"> - <path value="Patient.identifier.extension.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element - id="Patient.identifier:ihiNumber.extension:ihiRecordStatus.extension"> - <path value="Patient.identifier.extension.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiRecordStatus.url"> - <path value="Patient.identifier.extension.url"/> - <representation value="xmlAttr"/> - <short value="identifies the meaning of the extension"/> - <definition - value="Source of the definition for the extension code - a logical name or a URL."/> - <comment - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Extension.url"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri - value="http://hl7.org.au/fhir/StructureDefinition/ihi-record-status"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element - id="Patient.identifier:ihiNumber.extension:ihiRecordStatus.valueCoding:valueCoding"> - <path value="Patient.identifier.extension.valueCoding"/> - <sliceName value="valueCoding"/> - <short value="IHI Record Status Code"/> - <definition value="Coded IHI Record Status."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Extension.value[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Coding"/> - </type> - <binding> - <strength value="required"/> - <description value="IHI Record Status"/> - <valueSet value="https://healthterminologies.gov.au/fhir/ValueSet/ihi-record-status-1"/> - </binding> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for IHI"/> - <definition - value="Coded identifier type for Individual Healthcare Identifier (IHI)."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="ihi"/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="NI"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition value="ihi"/> - <comment - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="IHI"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for IHI"/> - <definition - value="This namespace is used for qualified identifiers to represent Individual Healthcare Identifier (IHI) numbers. An example of the syntax of an IHI represented as a qualified identifer using this namespace is: http://ns.electronichealth.net.au/id/hi/ihi/1.0/8003600000000000"/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.value"> - <path value="Patient.identifier.value"/> - <short value="IHI number"/> - <definition - value="The 16 digit unique identifier for consumers of healthcare services."/> - <comment - value="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](http://hl7.org/fhir/STU3/extension-rendered-value.html)."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="IHI number"/> - <valueString value="8003608166690503"/> - </example> - <maxLength value="16"/> - <constraint> - <key value="inv-ihi-0"/> - <severity value="error"/> - <human value="IHI shall be an exactly 16 digit number"/> - <expression value="matches('^([0-9]{16})$')"/> - </constraint> - <constraint> - <key value="inv-ihi-1"/> - <severity value="error"/> - <human value="IHI prefix is 800360"/> - <expression value="startsWith('800360')"/> - </constraint> - <constraint> - <key value="inv-ihi-2"/> - <severity value="error"/> - <human value="IHI shall pass the Luhn algorithm check"/> - <expression - value="(((select(substring(0,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(1,1).toInteger())+(select(substring(2,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(3,1).toInteger())+(select(substring(4,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(5,1).toInteger())+(select(substring(6,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(7,1).toInteger())+(select(substring(8,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(9,1).toInteger())+(select(substring(10,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(11,1).toInteger())+(select(substring(12,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(13,1).toInteger())+(select(substring(14,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(15,1).toInteger()))mod 10=0)"/> - </constraint> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:ihiNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber"> - <path value="Patient.identifier"/> - <sliceName value="medicareNumber"/> - <short value="Medicare Number"/> - <definition - value="Medicare number assigned to a patient. This includes temporary and full Medicare card numbers."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Medicare number"/> - <definition value="Medicare number assigned to a patient."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="Medicare number assigned to a patient."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="MC"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition value="Medicare number descriptive text."/> - <comment - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Medicare Number"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Medicare number"/> - <definition - value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://ns.electronichealth.net.au/id/medicare-number"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.value"> - <path value="Patient.identifier.value"/> - <short - value="Medicare number including optional individual reference number"/> - <definition - value="10 digit Medicare number with optional 11th digit individual reference number (IRN)."/> - <comment - value="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](http://hl7.org/fhir/STU3/extension-rendered-value.html)."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="Medicare number"/> - <valueString value="32788511952"/> - </example> - <maxLength value="11"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Medicare number validity period"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.period.id"> - <path value="Patient.identifier.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.period.extension"> - <path value="Patient.identifier.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.period.start"> - <path value="Patient.identifier.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment - value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="per-1"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.period.end"> - <path value="Patient.identifier.period.end"/> - <short value="Medicare number expiry date"/> - <definition - value="Expiry date for Medicare number. This is typically month and year only, but may incude day date part when this is a temporary Medicare number."/> - <comment - value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing - value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="per-1"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.identifier:medicareNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber"> - <path value="Patient.identifier"/> - <sliceName value="dvaNumber"/> - <short value="Department of Veterans' Affairs (DVA) Number"/> - <definition value="Department of Veterans' Affairs (DVA) number."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <constraint> - <key value="inv-dva-number-unspecified"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number' when colour is not specified"/> - <expression - value="type.coding.empty() implies type.text = 'DVA Number'"/> - </constraint> - <constraint> - <key value="inv-dva-number-gold"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Gold)' when colour coding is DVG."/> - <expression - value="type.coding.code='DVG' implies type.text = 'DVA Number (Gold)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-white"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (White)' when colour coding is DVW."/> - <expression - value="type.coding.code='DVW' implies type.text = 'DVA Number (White)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-orange"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Orange)' when colour coding is DVO."/> - <expression - value="type.coding.code='DVO' implies type.text = 'DVA Number (Orange)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-lilac"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Lilac)' when colour coding is DVL."/> - <expression - value="type.coding.code='DVL' implies type.text = 'DVA Number (Lilac)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-text"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be one of 'DVA Number', 'DVA Number (Gold)', 'DVA Number (White), 'DVA Number (Orange), 'DVA Number (Lilac)'"/> - <expression - value="type.text = 'DVA Number' or type.text = 'DVA Number (Gold)' or type.text = 'DVA Number (White)' or type.text = 'DVA Number (Orange)' or type.text = 'DVA Number (Lilac)'"/> - </constraint> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for DVA number"/> - <definition - value="Department of Veterans' Affairs (DVA) colour identifier type."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <constraint> - <key value="inv-dva-number-coding"/> - <severity value="error"/> - <human value="DVA colour coding must be DVL, DVW, DVO or DVG"/> - <expression - value="code='DVL' or code='DVW' or code='DVO' or code='DVG'"/> - </constraint> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition value="DVA colour coding."/> - <comment - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for DVA number"/> - <definition value="DVA number assigned uri."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://ns.electronichealth.net.au/id/dva"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.value"> - <path value="Patient.identifier.value"/> - <short value="DVA number"/> - <definition value="Up to 9 digit value in the form AAXXNNNN[A]."/> - <comment - value="Reference: http://meteor.aihw.gov.au/content/index.phtml/itemId/339127"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="Department of Veterans' Affairs (DVA) number"/> - <valueString value="NBUR9080"/> - </example> - <maxLength value="9"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:dvaNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard"> - <path value="Patient.identifier"/> - <sliceName value="healthcareCard"/> - <short value="Health Care Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Health Care Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="HC"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition - value="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 - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Health Care Card Number"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition - value="Namespace for Centrelink Customer Reference Number (CRN) values."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA."/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:healthcareCard.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard"> - <path value="Patient.identifier"/> - <sliceName value="pensionerConcessionCard"/> - <short value="Pensioner Concession Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number"/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Pensioner Concession Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number"/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element - id="Patient.identifier:pensionerConcessionCard.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="PEN"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element - id="Patient.identifier:pensionerConcessionCard.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition - value="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 - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Pensioner Concession Card Number"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition - value="Namespace for Centrelink Customer Reference Number (CRN) values."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA."/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:pensionerConcessionCard.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard"> - <path value="Patient.identifier"/> - <sliceName value="commonwealthSeniorsHealthCard"/> - <short value="Commonwealth Seniors Health Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type"> - <path value="Patient.identifier.type"/> - <short - value="Coded identifier type for Commonwealth Seniors Health Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org.au/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="SEN"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition - value="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 - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Commonwealth Seniors Health Card"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition value="Namespace for Customer Reference Number (CRN) values."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA"/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber"> - <path value="Patient.identifier"/> - <sliceName value="medicalRecordNumber"/> - <short value="Medical Record Number (MRN)"/> - <definition value="An assigned medical record number."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for MRN"/> - <definition - value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="MR"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element - id="Patient.identifier:medicalRecordNumber.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition - value="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 - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Medical Record Number"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Medical record number system namespace"/> - <definition - value="For a medical record number can use ABN scoped (http://ns.electronichealth.net.au/id/abn-scoped/medicalrecord/1.0/index.html), HPI-O scoped (http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/index.html)or another system URN defining scope of MRN allocation."/> - <requirements - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.value"> - <path value="Patient.identifier.value"/> - <short value="Medical record number"/> - <definition - value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> - <comment - value="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](http://hl7.org/fhir/STU3/extension-rendered-value.html)."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:medicalRecordNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Medical record number assigning entity"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber"> - <path value="Patient.identifier"/> - <sliceName value="insurerNumber"/> - <short value="Private Health Insurance Member Number"/> - <definition value="An insurer's member number."/> - <requirements - value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment - value="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 - value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description - value="Identifies the purpose for this identifier, if known ."/> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type"> - <path value="Patient.identifier.type"/> - <short - value="Coded identifier type for private health insurance member number"/> - <definition - value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> - <comment - value="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 - value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.id"> - <path value="Patient.identifier.type.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.extension"> - <path value="Patient.identifier.type.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment - value="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 - value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.id"> - <path value="Patient.identifier.type.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.extension"> - <path value="Patient.identifier.type.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <short value="Identity of the terminology system"/> - <definition - value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment - value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements - value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.version"> - <path value="Patient.identifier.type.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition - value="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)."/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="MB"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.coding.display"/> - <short value="Representation defined by the system"/> - <definition - value="A representation of the meaning of the code in the system, following the rules of the system."/> - <requirements - value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.userSelected"> - <path value="Patient.identifier.type.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition - value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="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 ]"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <short value="Plain text representation of the concept"/> - <definition - value="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 - value="Very often the text is the same as a displayName of one of the codings."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <fixedString value="Private Health Insurance Member Number"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code="text/plain"]/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map - value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.system"> - <path value="Patient.identifier.system"/> - <short value="The namespace for the identifier value"/> - <definition - value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <example> - <label value="General"/> - <valueUri - value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.value"> - <path value="Patient.identifier.value"/> - <short value="Private health insurance member number"/> - <definition - value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> - <comment - value="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](http://hl7.org/fhir/STU3/extension-rendered-value.html)."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition - value="Time period during which identifier is/was valid for use."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Private health insurer"/> - <definition value="Organization that issued/manages the identifier."/> - <comment - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner.id"> - <path value="Patient.identifier.assigner.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner.extension"> - <path value="Patient.identifier.assigner.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner.reference"> - <path value="Patient.identifier.assigner.reference"/> - <short value="Literal reference, Relative, internal or absolute URL"/> - <definition - value="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 - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.reference"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ref-1"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner.identifier"> - <path value="Patient.identifier.assigner.identifier"/> - <short value="Logical reference, when literal reference is not known"/> - <definition - value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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 - value="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. - -When 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 - -Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Reference.identifier"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Identifier"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value=".identifier"/> - </mapping> - </element> - <element id="Patient.identifier:insurerNumber.assigner.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.assigner.display"/> - <short value="Text alternative for the resource"/> - <definition - value="Plain text narrative that identifies the resource in addition to the resource reference."/> - <comment - value="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 value="1"/> - <max value="1"/> - <base> - <path value="Reference.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.active"> - <path value="Patient.active"/> - <short value="Whether this patient's record is in active use"/> - <definition value="Whether this patient record is in active use."/> - <comment - value="Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient - -This element is labeled as a modifier because when the patient record is marked as not active it is not expected to be used/referenced without being changed back to active."/> - <requirements - value="Need to be able to mark a patient record as not to be used because it was created in error."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.active"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <defaultValueBoolean value="true"/> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="statusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="status"/> - </mapping> - </element> - <element id="Patient.name"> - <path value="Patient.name"/> - <short value="A name associated with the patient"/> - <definition value="A name associated with the individual."/> - <comment - value="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 - value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.name"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="HumanName"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-5, PID-9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.name"/> - </mapping> - </element> - <element id="Patient.telecom"> - <path value="Patient.telecom"/> - <short value="A contact detail for the individual"/> - <definition - value="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted."/> - <comment - value="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 may 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 - value="People have (primary) ways to contact them in some way such as phone, email."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.telecom"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="ContactPoint"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-13, PID-14, PID-40"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="telecom"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".telecom"/> - </mapping> - </element> - <element id="Patient.gender"> - <path value="Patient.gender"/> - <short value="male | female | other | unknown"/> - <definition - value="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes."/> - <comment - value="The gender may 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 M and F, though the vast majority of systems and contexts only support M and F. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, 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, chromosonal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a "hard" error."/> - <requirements - value="Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.gender"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description - value="The gender of a person used for administrative purposes."/> - <valueSet value="http://hl7.org/fhir/ValueSet/administrative-gender"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="PID-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.administrativeGenderCode"/> - </mapping> - </element> - <element id="Patient.birthDate"> - <path value="Patient.birthDate"/> - <short value="Date of birth extended for time and accuracy indicator"/> - <definition value="The date of birth for the individual."/> - <comment - value="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 maternaty/infant care systems)."/> - <requirements - value="Age of the individual drives many clinical processes. May include accuracy indicator and specific birth time."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.birthDate"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="date"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.birthTime"/> - </mapping> - <mapping> - <identity value="loinc"/> - <map value="21112-8"/> - </mapping> - </element> - <element id="Patient.birthDate.id"> - <path value="Patient.birthDate.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references)"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - </element> - <element id="Patient.birthDate.extension"> - <path value="Patient.birthDate.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - <short value="Extension"/> - <definition value="An Extension"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - </element> - <element id="Patient.birthDate.extension:accuracyIndicator"> - <path value="Patient.birthDate.extension"/> - <sliceName value="accuracyIndicator"/> - <short value="Birth Date Accuracy Indicator"/> - <definition value="General date accuracy indicator coding."/> - <comment - value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts. This coding establishes the acuraccy of the day, month and year parts."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.birthDate.extension:birthTime"> - <path value="Patient.birthDate.extension"/> - <sliceName value="birthTime"/> - <short value="Birth Time"/> - <definition - value="The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.birthDate.value"> - <path value="Patient.birthDate.value"/> - <representation value="xmlAttr"/> - <short value="Primitive value for date"/> - <definition value="The actual value"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="date.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex"> - <valueString - value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?"/> - </extension> - <code> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type"> - <valueString value="string"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type"> - <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type"> - <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date"/> - </extension> - </code> - </type> - </element> - <element id="Patient.deceased[x]"> - <path value="Patient.deceased[x]"/> - <short value="Indicates if the individual is deceased or not"/> - <definition - value="Indicates if the individual is deceased or not. Deceased date accuracy indicator is optional."/> - <comment - value="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. - -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."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.deceased[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <type> - <code value="dateTime"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-30 (bool) and PID-29 (datetime)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.deceasedBoolean:deceasedBoolean"> - <path value="Patient.deceasedBoolean"/> - <sliceName value="deceasedBoolean"/> - <short value="Deceased Indicator"/> - <definition - value="Boolean indicator if the individual is deceased or not."/> - <comment - value="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. - -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."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.deceased[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-30 (bool) and PID-29 (datetime)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.deceasedDateTime:deceasedDateTime"> - <path value="Patient.deceasedDateTime"/> - <sliceName value="deceasedDateTime"/> - <short value="Deceased Date Time"/> - <definition - value="Indivdual deceased date-time with optional accuracy indicator."/> - <comment - value="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. - -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."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.deceased[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-30 (bool) and PID-29 (datetime)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.deceasedDateTime:deceasedDateTime.id"> - <path value="Patient.deceasedDateTime.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references)"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - </element> - <element id="Patient.deceasedDateTime:deceasedDateTime.extension"> - <path value="Patient.deceasedDateTime.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - <short value="Extension"/> - <definition value="An Extension"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - </element> - <element - id="Patient.deceasedDateTime:deceasedDateTime.extension:accuracyIndicator"> - <path value="Patient.deceasedDateTime.extension"/> - <sliceName value="accuracyIndicator"/> - <short value="Deceased Date Accuracy Indicator"/> - <definition value="General date accuracy indicator coding."/> - <comment - value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts. This coding establishes the acuraccy of the day, month and year parts."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath - value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - <source value="Extension"/> - </constraint> - </element> - <element id="Patient.deceasedDateTime:deceasedDateTime.value"> - <path value="Patient.deceasedDateTime.value"/> - <representation value="xmlAttr"/> - <short value="Primitive value for dateTime"/> - <definition value="The actual value"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="dateTime.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex"> - <valueString - value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?"/> - </extension> - <code> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type"> - <valueString value="string"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type"> - <valueString - value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type"> - <valueString - value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime"/> - </extension> - </code> - </type> - </element> - <element id="Patient.address"> - <path value="Patient.address"/> - <short value="Addresses for the individual"/> - <definition value="Addresses for the individual."/> - <comment - value="Patient may have multiple addresses with different uses or applicable periods."/> - <requirements - value="May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.address"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Address"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="addr"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".addr"/> - </mapping> - </element> - <element id="Patient.maritalStatus"> - <path value="Patient.maritalStatus"/> - <short value="Marital (civil) status of a patient"/> - <definition - value="This field contains a patient's most recent marital (civil) status."/> - <requirements value="Most, if not all systems capture it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.maritalStatus"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="MaritalStatus"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="extensible"/> - <description value="The domestic partnership status of a person."/> - <valueSet value="http://hl7.org/fhir/ValueSet/marital-status"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="PID-16"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN]/maritalStatusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.maritalStatusCode"/> - </mapping> - </element> - <element id="Patient.multipleBirth[x]"> - <path value="Patient.multipleBirth[x]"/> - <short value="Whether patient is part of a multiple birth"/> - <definition - value="Indicates whether the patient is part of a multiple (bool) or indicates the actual birth order (integer)."/> - <comment - value="Where the valueInteger is provided, the number is the birth number in the sequence. -E.g. The middle birth in tripplets would be valueInteger=2 and the third born would have valueInteger=3 -If a bool value was provided for this tripplets examle, then all 3 patient records would have valueBool=true (the ordering is not indicated)."/> - <requirements - value="For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.multipleBirth[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <type> - <code value="integer"/> - </type> - <mapping> - <identity value="v2"/> - <map value="PID-24 (bool), PID-25 (integer)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.photo"> - <path value="Patient.photo"/> - <short value="Image of the patient"/> - <definition value="Image of the patient."/> - <requirements - value="Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.photo"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Attachment"/> - </type> - <mapping> - <identity value="v2"/> - <map value="OBX-5 - needs a profile"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact"> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Contact"/> - </extension> - <path value="Patient.contact"/> - <short - value="A contact party (e.g. guardian, partner, friend) for the patient"/> - <definition - value="A contact party (e.g. guardian, partner, friend) for the patient."/> - <comment - value="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 - value="Need to track people you can contact about the patient."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <constraint> - <key value="pat-1"/> - <severity value="error"/> - <human - value="SHALL at least contain a contact's details or a reference to an organization"/> - <expression - value="name.exists() or telecom.exists() or address.exists() or organization.exists()"/> - <xpath - value="exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)"/> - </constraint> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.id"> - <path value="Patient.contact.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.extension"> - <path value="Patient.contact.extension"/> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.modifierExtension"> - <path value="Patient.contact.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition - value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.relationship"> - <path value="Patient.contact.relationship"/> - <short value="The kind of relationship"/> - <definition - value="The nature of the relationship between the patient and the contact person."/> - <requirements - value="Used to determine which contact person is the most relevant to approach, depending on circumstances."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact.relationship"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactRelationship"/> - </extension> - <strength value="extensible"/> - <description - value="The nature of the relationship between a patient and a contact person for that patient."/> - <valueSet value="http://hl7.org/fhir/ValueSet/v2-0131"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="NK1-7, NK1-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.name"> - <path value="Patient.contact.name"/> - <short value="A name associated with the contact person"/> - <definition value="A name associated with the contact person."/> - <requirements - value="Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.name"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="HumanName"/> - </type> - <mapping> - <identity value="v2"/> - <map value="NK1-2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.telecom"> - <path value="Patient.contact.telecom"/> - <short value="A contact detail for the person"/> - <definition - value="A contact detail for the person, e.g. a telephone number or an email address."/> - <comment - value="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 - value="People have (primary) ways to contact them in some way such as phone, email."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact.telecom"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="ContactPoint"/> - </type> - <mapping> - <identity value="v2"/> - <map value="NK1-5, NK1-6, NK1-40"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="telecom"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.address"> - <path value="Patient.contact.address"/> - <short value="Address for the contact person"/> - <definition value="Address for the contact person."/> - <requirements - value="Need to keep track where the contact person can be contacted per postal mail or visited."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.address"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Address"/> - </type> - <mapping> - <identity value="v2"/> - <map value="NK1-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="addr"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.gender"> - <path value="Patient.contact.gender"/> - <short value="male | female | other | unknown"/> - <definition - value="Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes."/> - <requirements value="Needed to address the person correctly."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.gender"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description - value="The gender of a person used for administrative purposes."/> - <valueSet value="http://hl7.org/fhir/ValueSet/administrative-gender"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="NK1-15"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.organization"> - <path value="Patient.contact.organization"/> - <short value="Organization that is associated with the contact"/> - <definition - value="Organization on behalf of which the contact is acting or for which the contact is working."/> - <requirements - value="For guardians or business related contacts, the organization is relevant."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.organization"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <condition value="pat-1"/> - <mapping> - <identity value="v2"/> - <map value="NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="scoper"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.period"> - <path value="Patient.contact.period"/> - <short - value="The period during which this contact person or organization is valid to be contacted relating to this patient"/> - <definition - value="The period during which this contact person or organization is valid to be contacted relating to this patient."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <mapping> - <identity value="rim"/> - <map value="effectiveTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal"> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Animal"/> - </extension> - <path value="Patient.animal"/> - <short value="This patient is known to be an animal (non-human)"/> - <definition value="This patient is known to be an animal."/> - <comment - value="The animal element is labeled "Is Modifier" since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records. The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required. (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)."/> - <requirements - value="Many clinical systems are extended to care for animal patients as well as human."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.animal"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="player[classCode=ANM]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.id"> - <path value="Patient.animal.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.extension"> - <path value="Patient.animal.extension"/> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.modifierExtension"> - <path value="Patient.animal.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition - value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.species"> - <path value="Patient.animal.species"/> - <short value="E.g. Dog, Cow"/> - <definition - value="Identifies the high level taxonomic categorization of the kind of animal."/> - <comment - value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification. It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species. (The common example is that the word "Hereford" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for "Hereford Cattle Breed" does.)."/> - <requirements value="Need to know what kind of animal."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.animal.species"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalSpecies"/> - </extension> - <strength value="example"/> - <description value="The species of an animal."/> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-species"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="PID-35"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.breed"> - <path value="Patient.animal.breed"/> - <short value="E.g. Poodle, Angus"/> - <definition - value="Identifies the detailed categorization of the kind of animal."/> - <comment - value="Breed MAY be used to provide further taxonomic or non-taxonomic classification. It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type."/> - <requirements - value="May need to know the specific kind within the species."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.animal.breed"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalBreed"/> - </extension> - <strength value="example"/> - <description value="The breed of an animal."/> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-breeds"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="PID-37"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus"> - <path value="Patient.animal.genderStatus"/> - <short value="E.g. Neutered, Intact"/> - <definition - value="Indicates the current state of the animal's reproductive organs."/> - <requirements - value="Gender status can affect housing and animal behavior."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.animal.genderStatus"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalGenderStatus"/> - </extension> - <strength value="example"/> - <description value="The state of the animal's reproductive organs."/> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-genderstatus"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="genderStatusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication"> - <path value="Patient.communication"/> - <short - value="A list of Languages which may be used to communicate with the patient about his or her health"/> - <definition - value="Languages which may be used to communicate with the patient about his or her health."/> - <comment - value="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 - value="If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.communication"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="LanguageCommunication"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="patient.languageCommunication"/> - </mapping> - </element> - <element id="Patient.communication.id"> - <path value="Patient.communication.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication.extension"> - <path value="Patient.communication.extension"/> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication.modifierExtension"> - <path value="Patient.communication.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition - value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.communication.language"> - <path value="Patient.communication.language"/> - <short - value="The language which can be used to communicate with the patient about his or her health"/> - <definition - value="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 - value="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 - value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.communication.language"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <binding> - <strength value="extensible"/> - <valueSet value="https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-1"/> - </binding> - <mapping> - <identity value="v2"/> - <map value="PID-15, LAN-2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map - value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".languageCode"/> - </mapping> - </element> - <element id="Patient.communication.preferred"> - <path value="Patient.communication.preferred"/> - <short value="Language preference indicator"/> - <definition - value="Indicates whether or not the patient prefers this language (over other languages he masters up a certain level)."/> - <comment - value="This language is specifically identified for communicating healthcare information."/> - <requirements - value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.communication.preferred"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <mapping> - <identity value="v2"/> - <map value="PID-15"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="preferenceInd"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".preferenceInd"/> - </mapping> - </element> - <element id="Patient.generalPractitioner"> - <path value="Patient.generalPractitioner"/> - <short value="Patient's nominated primary care provider"/> - <definition value="Patient's nominated care provider."/> - <comment - value="This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity 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."/> - <alias value="careProvider"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.generalPractitioner"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Practitioner"/> - </type> - <mapping> - <identity value="v2"/> - <map value="PD1-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="subjectOf.CareEvent.performer.AssignedEntity"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.managingOrganization"> - <path value="Patient.managingOrganization"/> - <short value="Organization that is the custodian of the patient record"/> - <definition - value="Organization that is the custodian of the patient record."/> - <comment - value="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 - value="Need to know who recognizes this patient record, manages and updates it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.managingOrganization"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="scoper"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".providerOrganization"/> - </mapping> - </element> - <element id="Patient.link"> - <path value="Patient.link"/> - <short - value="Link to another patient resource that concerns the same actual person"/> - <definition - value="Link to another patient resource that concerns the same actual patient."/> - <comment - value="There is no assumption that linked patient records have mutual links. - -This element is labelled as a modifier because it may 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'."/> - <requirements - value="There are multiple usecases: - -* Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.link"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - <source value="Element"/> - </constraint> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="outboundLink"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.id"> - <path value="Patient.link.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition - value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.extension"> - <path value="Patient.link.extension"/> - <short value="Additional Content defined by implementations"/> - <definition - value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.modifierExtension"> - <path value="Patient.link.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition - value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment - value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <isModifier value="true"/> - <isSummary value="true"/> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.other"> - <path value="Patient.link.other"/> - <short - value="The other patient or related person resource that the link refers to"/> - <definition value="The other patient resource that the link refers to."/> - <comment - value="Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.link.other"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient"/> - </type> - <type> - <code value="Reference"/> - <targetProfile - value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> - </type> - <isSummary value="true"/> - <mapping> - <identity value="v2"/> - <map value="PID-3, MRG-1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.type"> - <path value="Patient.link.type"/> - <short value="replaced-by | replaces | refer | seealso - type of link"/> - <definition - value="The type of link between this patient resource and another patient resource."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.link.type"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <isSummary value="true"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="LinkType"/> - </extension> - <strength value="required"/> - <description - value="The type of link between this patient resource and another patient resource."/> - <valueSet value="http://hl7.org/fhir/ValueSet/link-type"/> - </binding> - <mapping> - <identity value="rim"/> - <map value="typeCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - </snapshot> - <differential> - <element id="Patient"> - <extension - url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status"> - <valueCode value="trial-use"/> - </extension> - <path value="Patient"/> - <short value="A patient in an Australian healthcare context"/> - <definition - value="Demographics and other administrative information about an individual receiving care or other health-related services."/> - <constraint> - <key value="inv-pat-0"/> - <severity value="error"/> - <human value="If there is a birth time its date shall be the birth date"/> - <expression - value="birthDate.extension.where(url='http://hl7.org/fhir/StructureDefinition/patient-birthTime').exists() implies birthDate.extension('http://hl7.org/fhir/StructureDefinition/patient-birthTime').value.toString().substring(0,10) = birthDate.toString()"/> - </constraint> - </element> - <element id="Patient.extension"> - <path value="Patient.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.extension:birthPlace"> - <path value="Patient.extension"/> - <sliceName value="birthPlace"/> - <short value="Patient Birth Place"/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/birthPlace"/> - </type> - </element> - <element id="Patient.extension:indigenousStatus"> - <path value="Patient.extension"/> - <sliceName value="indigenousStatus"/> - <short value="Patient Indigenous Status"/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/indigenous-status"/> - </type> - </element> - <element id="Patient.extension:closingTheGapRegistration"> - <path value="Patient.extension"/> - <sliceName value="closingTheGapRegistration"/> - <short value="Patient Closing the Gap Registration"/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/closing-the-gap-registration"/> - </type> - </element> - <element id="Patient.extension:mothersMaidenName"> - <path value="Patient.extension"/> - <sliceName value="mothersMaidenName"/> - <short value="Patient Mother's Maiden Name"/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org/fhir/StructureDefinition/patient-mothersMaidenName"/> - </type> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="type"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.identifier:ihiNumber"> - <path value="Patient.identifier"/> - <sliceName value="ihiNumber"/> - <short value="National Individual Healthcare Identifier (IHI)"/> - <definition value="National Healthcare Identifier (IHI) for the patient."/> - <requirements - value="Identifier as assigned and available via Healthcare Identifiers (HI) service."/> - </element> - <element id="Patient.identifier:ihiNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="ihiStatus"/> - <short value="Individual Healthcare Identifier (IHI) Number Status"/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org.au/fhir/StructureDefinition/ihi-status"/> - </type> - </element> - <element id="Patient.identifier:ihiNumber.extension:ihiRecordStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="ihiRecordStatus"/> - <short value="Individual Healthcare Identifier (IHI) Number Record Status"/> - <definition - value="Individual Healthcare Identifier (IHI) value record status associated with an IHI identifier."/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/ihi-record-status"/> - </type> - </element> - <element id="Patient.identifier:ihiNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for IHI"/> - <definition - value="Coded identifier type for Individual Healthcare Identifier (IHI)."/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:ihiNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <definition value="ihi"/> - <max value="1"/> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:ihiNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="NI"/> - </element> - <element id="Patient.identifier:ihiNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <definition value="ihi"/> - <fixedString value="IHI"/> - </element> - <element id="Patient.identifier:ihiNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for IHI"/> - <definition - value="This namespace is used for qualified identifiers to represent Individual Healthcare Identifier (IHI) numbers. An example of the syntax of an IHI represented as a qualified identifer using this namespace is: http://ns.electronichealth.net.au/id/hi/ihi/1.0/8003600000000000"/> - <min value="1"/> - <fixedUri value="http://ns.electronichealth.net.au/id/hi/ihi/1.0"/> - </element> - <element id="Patient.identifier:ihiNumber.value"> - <path value="Patient.identifier.value"/> - <short value="IHI number"/> - <definition - value="The 16 digit unique identifier for consumers of healthcare services."/> - <min value="1"/> - <example> - <label value="IHI number"/> - <valueString value="8003608166690503"/> - </example> - <maxLength value="16"/> - <constraint> - <key value="inv-ihi-0"/> - <severity value="error"/> - <human value="IHI shall be an exactly 16 digit number"/> - <expression value="matches('^([0-9]{16})$')"/> - </constraint> - <constraint> - <key value="inv-ihi-1"/> - <severity value="error"/> - <human value="IHI prefix is 800360"/> - <expression value="startsWith('800360')"/> - </constraint> - <constraint> - <key value="inv-ihi-2"/> - <severity value="error"/> - <human value="IHI shall pass the Luhn algorithm check"/> - <expression - value="(((select(substring(0,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(1,1).toInteger())+(select(substring(2,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(3,1).toInteger())+(select(substring(4,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(5,1).toInteger())+(select(substring(6,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(7,1).toInteger())+(select(substring(8,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(9,1).toInteger())+(select(substring(10,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(11,1).toInteger())+(select(substring(12,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(13,1).toInteger())+(select(substring(14,1).toInteger()).select(iif($this<5, $this*2, (($this*2)-9))))+(substring(15,1).toInteger()))mod 10=0)"/> - </constraint> - </element> - <element id="Patient.identifier:medicareNumber"> - <path value="Patient.identifier"/> - <sliceName value="medicareNumber"/> - <short value="Medicare Number"/> - <definition - value="Medicare number assigned to a patient. This includes temporary and full Medicare card numbers."/> - </element> - <element id="Patient.identifier:medicareNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Medicare number"/> - <definition value="Medicare number assigned to a patient."/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:medicareNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <definition value="Medicare number assigned to a patient."/> - <max value="1"/> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:medicareNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="MC"/> - </element> - <element id="Patient.identifier:medicareNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <definition value="Medicare number descriptive text."/> - <fixedString value="Medicare Number"/> - </element> - <element id="Patient.identifier:medicareNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Medicare number"/> - <min value="1"/> - <fixedUri value="http://ns.electronichealth.net.au/id/medicare-number"/> - </element> - <element id="Patient.identifier:medicareNumber.value"> - <path value="Patient.identifier.value"/> - <short - value="Medicare number including optional individual reference number"/> - <definition - value="10 digit Medicare number with optional 11th digit individual reference number (IRN)."/> - <min value="1"/> - <example> - <label value="Medicare number"/> - <valueString value="32788511952"/> - </example> - <maxLength value="11"/> - </element> - <element id="Patient.identifier:medicareNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Medicare number validity period"/> - <min value="1"/> - </element> - <element id="Patient.identifier:medicareNumber.period.end"> - <path value="Patient.identifier.period.end"/> - <short value="Medicare number expiry date"/> - <definition - value="Expiry date for Medicare number. This is typically month and year only, but may incude day date part when this is a temporary Medicare number."/> - <min value="1"/> - </element> - <element id="Patient.identifier:dvaNumber"> - <path value="Patient.identifier"/> - <sliceName value="dvaNumber"/> - <short value="Department of Veterans' Affairs (DVA) Number"/> - <definition value="Department of Veterans' Affairs (DVA) number."/> - <constraint> - <key value="inv-dva-number-unspecified"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number' when colour is not specified"/> - <expression - value="type.coding.empty() implies type.text = 'DVA Number'"/> - </constraint> - <constraint> - <key value="inv-dva-number-gold"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Gold)' when colour coding is DVG."/> - <expression - value="type.coding.code='DVG' implies type.text = 'DVA Number (Gold)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-white"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (White)' when colour coding is DVW."/> - <expression - value="type.coding.code='DVW' implies type.text = 'DVA Number (White)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-orange"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Orange)' when colour coding is DVO."/> - <expression - value="type.coding.code='DVO' implies type.text = 'DVA Number (Orange)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-lilac"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be 'DVA Number (Lilac)' when colour coding is DVL."/> - <expression - value="type.coding.code='DVL' implies type.text = 'DVA Number (Lilac)'"/> - </constraint> - <constraint> - <key value="inv-dva-number-text"/> - <severity value="error"/> - <human - value="DVA number identifier type text must be one of 'DVA Number', 'DVA Number (Gold)', 'DVA Number (White), 'DVA Number (Orange), 'DVA Number (Lilac)'"/> - <expression - value="type.text = 'DVA Number' or type.text = 'DVA Number (Gold)' or type.text = 'DVA Number (White)' or type.text = 'DVA Number (Orange)' or type.text = 'DVA Number (Lilac)'"/> - </constraint> - </element> - <element id="Patient.identifier:dvaNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for DVA number"/> - <definition - value="Department of Veterans' Affairs (DVA) colour identifier type."/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:dvaNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <max value="1"/> - <constraint> - <key value="inv-dva-number-coding"/> - <severity value="error"/> - <human value="DVA colour coding must be DVL, DVW, DVO or DVG"/> - <expression - value="code='DVL' or code='DVW' or code='DVO' or code='DVG'"/> - </constraint> - </element> - <element id="Patient.identifier:dvaNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <definition value="DVA colour coding."/> - </element> - <element id="Patient.identifier:dvaNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for DVA number"/> - <definition value="DVA number assigned uri."/> - <min value="1"/> - <fixedUri value="http://ns.electronichealth.net.au/id/dva"/> - </element> - <element id="Patient.identifier:dvaNumber.value"> - <path value="Patient.identifier.value"/> - <short value="DVA number"/> - <definition value="Up to 9 digit value in the form AAXXNNNN[A]."/> - <comment - value="Reference: http://meteor.aihw.gov.au/content/index.phtml/itemId/339127"/> - <min value="1"/> - <example> - <label value="Department of Veterans' Affairs (DVA) number"/> - <valueString value="NBUR9080"/> - </example> - <maxLength value="9"/> - </element> - <element id="Patient.identifier:healthcareCard"> - <path value="Patient.identifier"/> - <sliceName value="healthcareCard"/> - <short value="Health Care Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - </element> - <element id="Patient.identifier:healthcareCard.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Health Care Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <min value="1"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:healthcareCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:healthcareCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="HC"/> - </element> - <element id="Patient.identifier:healthcareCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <fixedString value="Health Care Card Number"/> - </element> - <element id="Patient.identifier:healthcareCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition - value="Namespace for Centrelink Customer Reference Number (CRN) values."/> - <min value="1"/> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - </element> - <element id="Patient.identifier:healthcareCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA."/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard"> - <path value="Patient.identifier"/> - <sliceName value="pensionerConcessionCard"/> - <short value="Pensioner Concession Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for Pensioner Concession Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number"/> - <min value="1"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="PEN"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <fixedString value="Pensioner Concession Card Number"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition - value="Namespace for Centrelink Customer Reference Number (CRN) values."/> - <min value="1"/> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - </element> - <element id="Patient.identifier:pensionerConcessionCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA."/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard"> - <path value="Patient.identifier"/> - <sliceName value="commonwealthSeniorsHealthCard"/> - <short value="Commonwealth Seniors Health Card Number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type"> - <path value="Patient.identifier.type"/> - <short - value="Coded identifier type for Commonwealth Seniors Health Card number"/> - <definition - value="Concession Card number assigned to a person by Centrelink, this can be Health Care Card, Pensioner Concession Card or Commonwealth Seniors Health Card number."/> - <min value="1"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding"> - <path value="Patient.identifier.type.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org.au/fhir/v2/0203"/> - </element> - <element - id="Patient.identifier:commonwealthSeniorsHealthCard.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="SEN"/> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <fixedString value="Commonwealth Seniors Health Card"/> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.system"> - <path value="Patient.identifier.system"/> - <short value="Namespace for Centrelink Customer Reference Number (CRN)"/> - <definition value="Namespace for Customer Reference Number (CRN) values."/> - <min value="1"/> - <fixedUri - value="http://ns.electronichealth.net.au/id/centrelink-customer-reference-number"/> - </element> - <element id="Patient.identifier:commonwealthSeniorsHealthCard.value"> - <path value="Patient.identifier.value"/> - <short value="Centrelink CRN"/> - <definition value="10 character identifier NNNNNNNNNA"/> - <comment - value="A personal identifier assigned by Centrelink for the purposes of identifying people (and organisations) eligible for specific services."/> - <min value="1"/> - <example> - <label value="DHS CRN"/> - <valueString value="307111942H"/> - </example> - <maxLength value="10"/> - </element> - <element id="Patient.identifier:medicalRecordNumber"> - <path value="Patient.identifier"/> - <sliceName value="medicalRecordNumber"/> - <short value="Medical Record Number (MRN)"/> - <definition value="An assigned medical record number."/> - </element> - <element id="Patient.identifier:medicalRecordNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Coded identifier type for MRN"/> - <min value="1"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="MR"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <fixedString value="Medical Record Number"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.system"> - <path value="Patient.identifier.system"/> - <short value="Medical record number system namespace"/> - <definition - value="For a medical record number can use ABN scoped (http://ns.electronichealth.net.au/id/abn-scoped/medicalrecord/1.0/index.html), HPI-O scoped (http://ns.electronichealth.net.au/id/hpio-scoped/medicalrecord/1.0/index.html)or another system URN defining scope of MRN allocation."/> - <min value="1"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.value"> - <path value="Patient.identifier.value"/> - <short value="Medical record number"/> - <min value="1"/> - </element> - <element id="Patient.identifier:medicalRecordNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Medical record number assigning entity"/> - <min value="1"/> - </element> - <element id="Patient.identifier:insurerNumber"> - <path value="Patient.identifier"/> - <sliceName value="insurerNumber"/> - <short value="Private Health Insurance Member Number"/> - <definition value="An insurer's member number."/> - </element> - <element id="Patient.identifier:insurerNumber.type"> - <path value="Patient.identifier.type"/> - <short - value="Coded identifier type for private health insurance member number"/> - <min value="1"/> - <binding> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value="true"/> - </extension> - <strength value="required"/> - <description value="Local Identifier Type"/> - <valueSet value="http://hl7.org.au/fhir/ValueSet/au-hl7v2-0203"/> - </binding> - </element> - <element id="Patient.identifier:insurerNumber.type.coding"> - <path value="Patient.identifier.type.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <min value="1"/> - <fixedUri value="http://hl7.org/fhir/v2/0203"/> - </element> - <element id="Patient.identifier:insurerNumber.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <min value="1"/> - <fixedCode value="MB"/> - </element> - <element id="Patient.identifier:insurerNumber.type.text"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.type.text"/> - <fixedString value="Private Health Insurance Member Number"/> - </element> - <element id="Patient.identifier:insurerNumber.value"> - <path value="Patient.identifier.value"/> - <short value="Private health insurance member number"/> - <min value="1"/> - </element> - <element id="Patient.identifier:insurerNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Private health insurer"/> - <min value="1"/> - </element> - <element id="Patient.identifier:insurerNumber.assigner.display"> - <extension - url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value="true"/> - </extension> - <path value="Patient.identifier.assigner.display"/> - <min value="1"/> - </element> - <element id="Patient.birthDate"> - <path value="Patient.birthDate"/> - <short value="Date of birth extended for time and accuracy indicator"/> - <requirements - value="Age of the individual drives many clinical processes. May include accuracy indicator and specific birth time."/> - </element> - <element id="Patient.birthDate.extension"> - <path value="Patient.birthDate.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.birthDate.extension:accuracyIndicator"> - <path value="Patient.birthDate.extension"/> - <sliceName value="accuracyIndicator"/> - <short value="Birth Date Accuracy Indicator"/> - <comment - value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts. This coding establishes the acuraccy of the day, month and year parts."/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"/> - </type> - </element> - <element id="Patient.birthDate.extension:birthTime"> - <path value="Patient.birthDate.extension"/> - <sliceName value="birthTime"/> - <short value="Birth Time"/> - <definition - value="The time of day that the patient was born. This includes the date to ensure that the timezone information can be communicated effectively."/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> - </type> - </element> - <element id="Patient.deceased[x]"> - <path value="Patient.deceased[x]"/> - <slicing> - <discriminator> - <type value="type"/> - <path value="$this"/> - </discriminator> - <rules value="open"/> - </slicing> - <definition - value="Indicates if the individual is deceased or not. Deceased date accuracy indicator is optional."/> - <min value="0"/> - <max value="1"/> - </element> - <element id="Patient.deceased[x]:deceasedBoolean"> - <path value="Patient.deceased[x]"/> - <sliceName value="deceasedBoolean"/> - <short value="Deceased Indicator"/> - <definition - value="Boolean indicator if the individual is deceased or not."/> - <type> - <code value="boolean"/> - </type> - </element> - <element id="Patient.deceased[x]:deceasedDateTime"> - <path value="Patient.deceased[x]"/> - <sliceName value="deceasedDateTime"/> - <short value="Deceased Date Time"/> - <definition - value="Indivdual deceased date-time with optional accuracy indicator."/> - <type> - <code value="dateTime"/> - </type> - </element> - <element id="Patient.deceased[x]:deceasedDateTime.extension"> - <path value="Patient.deceased[x].extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element - id="Patient.deceased[x]:deceasedDateTime.extension:accuracyIndicator"> - <path value="Patient.deceased[x].extension"/> - <sliceName value="accuracyIndicator"/> - <short value="Deceased Date Accuracy Indicator"/> - <comment - value="In some circumstances, systems may only have date or datetime data that has unknown or estimated parts. This coding establishes the acuraccy of the day, month and year parts."/> - <min value="0"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile - value="http://hl7.org.au/fhir/StructureDefinition/date-accuracy-indicator"/> - </type> - </element> - <element id="Patient.communication"> - <path value="Patient.communication"/> - </element> - <element id="Patient.communication.language"> - <path value="Patient.communication.language"/> - <binding> - <strength value="extensible"/> - <valueSet value="https://healthterminologies.gov.au/fhir/ValueSet/common-languages-australia-1"/> - </binding> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-bad-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-bad-1.xml deleted file mode 100644 index 4b2b3317b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-bad-1.xml +++ /dev/null @@ -1,68 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <contained> - <Basic> - <id value="i1"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i2"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i3"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i4"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile3"/> - </coding> - </code> - </Basic> - </contained> - <status value="current"/> - <mode value="working"/> - <entry> - <item> - <reference value="#i1"/> - </item> - </entry> - <entry> - <item> - <reference value="#i2"/> - </item> - </entry> - <entry> - <item> - <reference value="#i3"/> - </item> - </entry> - <entry> - <item> - <reference value="#i4"/> - </item> - </entry> -</List> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-ok-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-ok-1.xml deleted file mode 100644 index dd613032e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-ok-1.xml +++ /dev/null @@ -1,68 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <contained> - <Basic> - <id value="i1"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile1"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i2"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i3"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i4"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile3"/> - </coding> - </code> - </Basic> - </contained> - <status value="current"/> - <mode value="working"/> - <entry> - <item> - <reference value="#i1"/> - </item> - </entry> - <entry> - <item> - <reference value="#i2"/> - </item> - </entry> - <entry> - <item> - <reference value="#i3"/> - </item> - </entry> - <entry> - <item> - <reference value="#i4"/> - </item> - </entry> -</List> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-1.xml deleted file mode 100644 index c7f870dfc..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-1.xml +++ /dev/null @@ -1,27 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-1"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/> - <version value="0.1.0"/> - <name value="TestProfile1"/> - <title value="Test Profile #1"/> - <status value="draft"/> - <date value="2017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Basic"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic"/> - <derivation value="constraint"/> - <differential> - <element id="Basic.code"> - <path value="Basic.code"/> - <fixedCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile1"/> - </coding> - </fixedCodeableConcept> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-2.xml deleted file mode 100644 index 9ba4996f9..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-2.xml +++ /dev/null @@ -1,27 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-2"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/> - <version value="0.1.0"/> - <name value="TestProfile2"/> - <title value="Test Profile #2"/> - <status value="draft"/> - <date value="2017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Basic"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic"/> - <derivation value="constraint"/> - <differential> - <element id="Basic.code"> - <path value="Basic.code"/> - <fixedCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </fixedCodeableConcept> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-3.xml deleted file mode 100644 index c8a08d252..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-3.xml +++ /dev/null @@ -1,27 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-3"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/> - <version value="0.1.0"/> - <name value="TestProfile3"/> - <title value="Test Profile #3"/> - <status value="draft"/> - <date value="3017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Basic"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Basic"/> - <derivation value="constraint"/> - <differential> - <element id="Basic.code"> - <path value="Basic.code"/> - <fixedCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile3"/> - </coding> - </fixedCodeableConcept> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-closed.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-closed.xml deleted file mode 100644 index b99988e9e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-closed.xml +++ /dev/null @@ -1,66 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-list"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-list"/> - <version value="0.1.0"/> - <name value="TestProfileList"/> - <title value="Test Profile List"/> - <status value="draft"/> - <date value="3017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="List"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/> - <derivation value="constraint"/> - <differential> - <element id="List.entry"> - <path value="List.entry"/> - <slicing> - <discriminator> - <type value="profile"/> - <path value="item.resolve()"/> - </discriminator> - <ordered value="false"/> - <rules value="closed"/> - </slicing> - </element> - <element id="List.entry:slice1"> - <path value="List.entry"/> - <sliceName value="slice1"/> - <min value="1"/> - </element> - <element id="List.entry:slice1.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/> - </type> - </element> - <element id="List.entry:slice2"> - <path value="List.entry"/> - <sliceName value="slice2"/> - <min value="1"/> - <max value="3"/> - </element> - <element id="List.entry:slice2.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/> - </type> - </element> - <element id="List.entry:slice3"> - <path value="List.entry"/> - <sliceName value="slice3"/> - <max value="1"/> - </element> - <element id="List.entry:slice3.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-open.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-open.xml deleted file mode 100644 index d71431ded..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-open.xml +++ /dev/null @@ -1,66 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-list"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-list"/> - <version value="0.1.0"/> - <name value="TestProfileList"/> - <title value="Test Profile List"/> - <status value="draft"/> - <date value="3017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="List"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/> - <derivation value="constraint"/> - <differential> - <element id="List.entry"> - <path value="List.entry"/> - <slicing> - <discriminator> - <type value="profile"/> - <path value="item.resolve()"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - </element> - <element id="List.entry:slice1"> - <path value="List.entry"/> - <sliceName value="slice1"/> - <min value="1"/> - </element> - <element id="List.entry:slice1.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/> - </type> - </element> - <element id="List.entry:slice2"> - <path value="List.entry"/> - <sliceName value="slice2"/> - <min value="1"/> - <max value="3"/> - </element> - <element id="List.entry:slice2.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/> - </type> - </element> - <element id="List.entry:slice3"> - <path value="List.entry"/> - <sliceName value="slice3"/> - <max value="1"/> - </element> - <element id="List.entry:slice3.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-ordered.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-ordered.xml deleted file mode 100644 index 11a92d3b2..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/profile-slicing-profile-ordered.xml +++ /dev/null @@ -1,66 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-list"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-list"/> - <version value="0.1.0"/> - <name value="TestProfileList"/> - <title value="Test Profile List"/> - <status value="draft"/> - <date value="3017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="List"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/> - <derivation value="constraint"/> - <differential> - <element id="List.entry"> - <path value="List.entry"/> - <slicing> - <discriminator> - <type value="profile"/> - <path value="item.resolve()"/> - </discriminator> - <ordered value="true"/> - <rules value="open"/> - </slicing> - </element> - <element id="List.entry:slice1"> - <path value="List.entry"/> - <sliceName value="slice1"/> - <min value="1"/> - </element> - <element id="List.entry:slice1.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/> - </type> - </element> - <element id="List.entry:slice2"> - <path value="List.entry"/> - <sliceName value="slice2"/> - <min value="1"/> - <max value="3"/> - </element> - <element id="List.entry:slice2.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/> - </type> - </element> - <element id="List.entry:slice3"> - <path value="List.entry"/> - <sliceName value="slice3"/> - <max value="1"/> - </element> - <element id="List.entry:slice3.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/q-bp.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/q-bp.xml deleted file mode 100644 index 37ca44387..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/q-bp.xml +++ /dev/null @@ -1,467 +0,0 @@ -<?xml version="1.0"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="gp-assessment-report"/> - <meta> - <versionId value="5"/> - <lastUpdated value="2019-10-07T03:11:19.7949933+00:00"/> - <profile value="http://fhir.telstrahealth.com/th-ncsr/StructureDefinition/ncsr-questionnaire"/> - </meta> - <text> - <status value="generated"/> - <div xmlns="http://www.w3.org/1999/xhtml">div - </div> - </text> - <contained> - <Bundle> - <id value="PrePopQuery"/> - <type value="batch"/> - <entry> - <fullUrl value="urn:uuid:88f151c0-a954-468a-88bd-5ae15c08e059"/> - <request> - <method value="GET"/> - <url value="RelatedPerson?patient={{%LaunchPatient.id}}&active=true"/> - </request> - </entry> - </Bundle> - </contained> - <extension url="http://standards.healthconnex.com.au/fhir/StructureDefinition/Questionnaire-hcx-css"> - <valueString value="https://smartq.azurewebsites.net/Content/fhir-ncsr.css"/> - </extension> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"> - <extension url="name"> - <valueId value="LaunchPatient"/> - </extension> - <extension url="type"> - <valueCode value="Patient"/> - </extension> - <extension url="description"> - <valueString value="The patient that is to be used to pre-populate the form"/> - </extension> - </extension> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"> - <extension url="name"> - <valueId value="LaunchEpisodeOfCare"/> - </extension> - <extension url="type"> - <valueCode value="Episodeofcare"/> - </extension> - <extension url="description"> - <valueString value="The episodeofcare that is to be used to pre-populate the form"/> - </extension> - </extension> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-launchContext"> - <extension url="name"> - <valueId value="LaunchPractitioner"/> - </extension> - <extension url="type"> - <valueCode value="Practitioner"/> - </extension> - <extension url="description"> - <valueString value="The practitioner that is to be used to pre-populate the form"/> - </extension> - </extension> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-sourceQueries"> - <valueReference> - <reference value="#PrePopQuery"/> - </valueReference> - </extension> - <url value="http://fhir.telstrahealth.com/th-ncsr/Questionnaire/gp-assessment-report"/> - <name value="NcsrGpAssessmentReport"/> - <title value="GP Assessment Report"/> - <status value="active"/> - <subjectType value="Patient"/> - <date value="2017-10-17T01:39:42.162Z"/> - <publisher value="Telstra Health"/> - <description value="GP Assessment report that should be completed when providing an assessment ..."/> - <useContext> - <code> - <system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/> - <code value="focus"/> - <display value="Clinical Focus"/> - </code> - <valueCodeableConcept> - <coding> - <code value="bowel"/> - <display value="Bowel Cancer Registry"/> - </coding> - </valueCodeableConcept> - </useContext> - <item> - <linkId value="part-details"/> - <text value="Participant details"/> - <type value="group"/> - <repeats value="false"/> - <item> - <linkId value="participant-id"/> - <text value="Participant ID number"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.identifier.where(system='http://ns.electronichealth.net.au/id/hi/mc').value.first()"/> - </valueExpression> - </extension> - <linkId value="medicare-number"/> - <text value="Medicare number"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.identifier.where(system='http://ns.electronichealth.net.au/id/hi/dva').value.first()"/> - </valueExpression> - </extension> - <linkId value="dva-number"/> - <text value="DVA number"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.name.first().family.first()"/> - </valueExpression> - </extension> - <linkId value="family-name"/> - <text value="Family name"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.name.first().given.first()"/> - </valueExpression> - </extension> - <linkId value="given-names"/> - <text value="Given name(s)"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.birthDate"/> - </valueExpression> - </extension> - <linkId value="dob"/> - <text value="Date of birth"/> - <type value="date"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.gender"/> - </valueExpression> - </extension> - <linkId value="gender"/> - <text value="Gender"/> - <type value="choice"/> - <repeats value="false"/> - <answerValueSet value="https://sqlonfhir-dstu2.azurewebsites.net/fhir/ValueSet/administrative-gender"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPatient.telecom.where(system='phone').select(($this.where(use='mobile') | $this.where(use='home')).first().value)"/> - </valueExpression> - </extension> - <linkId value="contact-number"/> - <text value="Contact telephone number"/> - <type value="string"/> - <item> - <linkId value="contact-number-tooltip"/> - <text value="(mobile or land line including area code)"/> - <type value="text"/> - </item> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%PrePopQuery.entry.resource.total"/> - </valueExpression> - </extension> - <linkId value="related-persons"/> - <text value="Number of active RelatedPersons"/> - <type value="integer"/> - </item> - </item> - <item> - <linkId value="symptoms"/> - <text value="Symptoms present at time of assessment following a positive FOBT result"/> - <type value="group"/> - <repeats value="false"/> - <item> - <linkId value="5d1f7a32-5601-483a-8881-2c2437c72e9a"/> - <type value="group"/> - <repeats value="false"/> - <item> - <linkId value="5d1f7a32-5601-483a-8881-2c2437c72e9a-grouptext"/> - <text value="(Mark all those that apply)"/> - <type value="text"/> - </item> - <item> - <linkId value="no-symptoms"/> - <text value="No Symptoms"/> - <type value="boolean"/> - </item> - <item> - <linkId value="longer-standing"/> - <text value="Longer standing rectal bleeding (> 6 months)"/> - <type value="boolean"/> - </item> - <item> - <linkId value="iron-deficiency"/> - <text value="Iron deficiency anaemia"/> - <type value="boolean"/> - </item> - </item> - <item> - <linkId value="46923fac-09ee-4288-8a2e-b4ed70bf7869"/> - <type value="group"/> - <repeats value="false"/> - <item> - <linkId value="recent-onset"/> - <text value="Recent onset rectal bleeding ( ≤ 6 months)"/> - <type value="boolean"/> - </item> - <item> - <linkId value="significant-change"/> - <text value="Significant change in bowel habits"/> - <type value="boolean"/> - </item> - <item> - <linkId value="abdominal-pain"/> - <text value="Abdominal pain"/> - <type value="boolean"/> - </item> - </item> - </item> - <item> - <linkId value="0f9c0385-32ef-4c33-980f-502eab10dd15"/> - <text value="Assessment outcome following a positive FOBT result"/> - <type value="group"/> - <repeats value="false"/> - <item> - <extension url="http://standards.healthconnex.com.au/fhir/StructureDefinition/Questionnaire-hcx-horizontal"> - <valueBoolean value="true"/> - </extension> - <linkId value="assess-outcome"/> - <type value="choice"/> - <repeats value="false"/> - <answerOption> - <valueCoding> - <code value="Y"/> - <display value="Referred for colonoscopy"/> - </valueCoding> - </answerOption> - <answerOption> - <valueCoding> - <code value="N"/> - <display value="Not referred for colonoscopy"/> - </valueCoding> - </answerOption> - <item> - <linkId value="group-specialist-clinic"/> - <text value="Specialist/clinic name and suburb:"/> - <type value="group"/> - <enableWhen> - <question value="assess-outcome"/> - <operator value="="/> - <answerCoding> - <code value="Y"/> - </answerCoding> - </enableWhen> - <repeats value="false"/> - <item> - <linkId value="group-specialist-clinic-grouplabel"/> - <text value="(e.g. name of specialist and/or hospital/clinic and location)"/> - <type value="text"/> - </item> - <item> - <linkId value="specialist-clinic-name"/> - <text value="Specialist/Clinic Name"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/StructureDefinition/questionnaire-itemControl"> - <valueCodeableConcept> - <coding> - <system value="http://hl7.org/fhir/questionnaire-item-control"/> - <code value="autocomplete"/> - </coding> - </valueCodeableConcept> - </extension> - <linkId value="specialist-location"/> - <text value="Location/Suburb"/> - <type value="choice"/> - <repeats value="false"/> - <answerValueSet value="https://sqlonfhir-ci2.azurewebsites.net/fhir/ValueSet/hcxdir-locality"/> - </item> - <item> - <linkId value="specialist-contact-number"/> - <text value="Contact-telephone number"/> - <type value="string"/> - </item> - </item> - <item> - <linkId value="group-not-referred"/> - <text value="Reason for not referring colonoscopy"/> - <type value="group"/> - <enableWhen> - <question value="assess-outcome"/> - <operator value="="/> - <answerCoding> - <code value="N"/> - </answerCoding> - </enableWhen> - <repeats value="false"/> - <item> - <linkId value="previous-diagnosis"/> - <text value="Bowel cancer previously diagnosed"/> - <type value="boolean"/> - </item> - <item> - <linkId value="recent-colonoscopy"/> - <text value="Recent colonoscopy ( *lt; 18 months)"/> - <type value="boolean"/> - </item> - <item> - <linkId value="significant-comorbidity"/> - <text value="Significant co-morbidity"/> - <type value="boolean"/> - </item> - <item> - <linkId value="limited-life-expectancy"/> - <text value="Limited life expectancy"/> - <type value="boolean"/> - </item> - <item> - <linkId value="patient-declined"/> - <text value="Patient declines colonoscopy"/> - <type value="boolean"/> - </item> - <item> - <linkId value="other-conditions"/> - <text value="Other medical condition(s)"/> - <type value="boolean"/> - </item> - </item> - </item> - </item> - <item> - <linkId value="group-other-exams"/> - <text value="Was the patient referred for other examinations(s)?"/> - <type value="group"/> - <repeats value="false"/> - <item> - <linkId value="referred-other-exam"/> - <type value="choice"/> - <repeats value="false"/> - <answerOption> - <valueCoding> - <code value="N"/> - <display value="No"/> - </valueCoding> - </answerOption> - <answerOption> - <valueCoding> - <code value="Y"/> - <display value="Yes"/> - </valueCoding> - </answerOption> - <item> - <linkId value="group-referred-others"/> - <type value="group"/> - <enableWhen> - <question value="referred-other-exam"/> - <operator value="="/> - <answerCoding> - <code value="Y"/> - </answerCoding> - </enableWhen> - <repeats value="false"/> - <item> - <linkId value="exam-dcbe"/> - <text value="Double contrast barium enema"/> - <type value="boolean"/> - </item> - <item> - <linkId value="exam-ctc"/> - <text value="CT colonography"/> - <type value="boolean"/> - </item> - <item> - <linkId value="exam-sigmoidoscopy"/> - <text value="Sigmoidoscopy"/> - <type value="boolean"/> - </item> - <item> - <linkId value="exam-other"/> - <text value="Other"/> - <type value="boolean"/> - <item> - <linkId value="e58ed410-25e0-49bf-bbeb-a79d52d0acc6"/> - <type value="group"/> - <enableWhen> - <question value="exam-other"/> - <operator value="="/> - <answerBoolean value="true"/> - </enableWhen> - <repeats value="false"/> - <item> - <linkId value="exam-other-details"/> - <text value="Please specify"/> - <type value="text"/> - </item> - </item> - </item> - </item> - </item> - </item> - <item> - <linkId value="provider-details"/> - <text value="Provider details"/> - <type value="group"/> - <repeats value="false"/> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPractitioner.identifier.where(system='http://ns.electronichealth.net.au/id/hi/prn').first().value"/> - </valueExpression> - </extension> - <linkId value="provider-number"/> - <text value="Provider number for payment"/> - <type value="string"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="today()"/> - </valueExpression> - </extension> - <linkId value="date-consult"/> - <text value="Date of consultation"/> - <type value="date"/> - </item> - <item> - <extension url="http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaire-initialExpression"> - <valueExpression> - <language value="text/fhirpath"/> - <expression value="%LaunchPractitioner.name.first().select(given.first() + ' ' + family.first())"/> - </valueExpression> - </extension> - <linkId value="provider-name"/> - <text value="Name"/> - <type value="string"/> - </item> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/q-ex.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/q-ex.json deleted file mode 100644 index a54d782ef..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/q-ex.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "resourceType": "Questionnaire", - "id": "Questionnaire-openChoice", - "meta": { - "profile": [ - "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaire-stu3-Annantesti2" - ] - }, - "language": "fi", - "url": "http://phr.kanta.fi/Questionnaire/Questionnaire-openChoice", - "identifier": [ - { - "system": "urn:ietf:rfc:3986", - "value": "daa60638-251b-4d53-9ee9-6f16c0e6074b" - } - ], - "version": "0.1", - "name": "Questionnaire-openChoice", - "title": "Questionnaire-openChoice", - "status": "draft", - "experimental": true, - "date": "2018-07-25T14:00:00Z", - "description": "Questionnaire-openChoice", - "code": [ - { - "system": "http://phr.kanta.fi/CodeSystem/fiphr-cs-questionnairecode", - "code": "DAN-PSS-1" - } - ], - "item": [ - { - "linkId": "1", - "text": "Question1", - "type": "boolean", - "required": true, - "repeats": false - }, - { - "linkId": "2", - "text": "Question2", - "type": "open-choice", - "required": true, - "repeats": true, - "option": [ - { - "valueCoding": { - "id": "1", - "code": "B", - "display": "B" - } - } - ] - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/q.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/q.xml deleted file mode 100644 index bac7a7234..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/q.xml +++ /dev/null @@ -1,40 +0,0 @@ -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="Questionnaire-openChoice" /> - <language value="fi" /> - <url value="http://phr.kanta.fi/Questionnaire/Questionnaire-openChoice" /> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="daa60638-251b-4d53-9ee9-6f16c0e6074b" /> - </identifier> - <version value="0.1" /> - <name value="Questionnaire-openChoice" /> - <title value="Questionnaire-openChoice" /> - <status value="draft" /> - <experimental value="true" /> - <date value="2018-07-25T14:00:00Z" /> - <description value="Questionnaire-openChoice" /> - <code> - <system value="http://phr.kanta.fi/CodeSystem/fiphr-cs-questionnairecode" /> - <code value="DAN-PSS-1" /> - </code> - <item> - <linkId value="1" /> - <text value="Question1" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="2" /> - <text value="Question2" /> - <type value="choice" /> - <required value="true" /> - <repeats value="true" /> - <answerOption> - <valueCoding id="1"> - <code value="B" /> - <display value="B" /> - </valueCoding> - </answerOption> - </item> -</Questionnaire> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/qr-ex.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/qr-ex.json deleted file mode 100644 index 52bbc927a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/qr-ex.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "resourceType": "QuestionnaireResponse", - "meta": { - "profile": [ - "http://phr.kanta.fi/StructureDefinition/fiphr-sd-questionnaireresponse-stu3-Annantesti2" - ] - }, - "language": "en", - "identifier": { - "system": "urn:ietf:rfc:3986", - "value": "3ea24a84-c3b3-4673-a7ed-de8254a3eb25" - }, - "questionnaire": { - "reference": "Questionnaire/d8e04bb5-f121-4908-8215-44d01179e2cd" - }, - "status": "completed", - "subject": { - "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86" - }, - "authored": "2018-07-25T13:44:16Z", - "source": { - "reference": "Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86" - }, - "item": [ - { - "linkId": "1", - "text": "Question1", - "answer": [ - { - "valueBoolean": false - } - ] - }, - { - "linkId": "2", - "text": "Question2", - "answer": [ - { - "valueString": "Open answer" - } - ] - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/qr.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/qr.xml deleted file mode 100644 index cfb0fa55d..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/qr.xml +++ /dev/null @@ -1,37 +0,0 @@ -<QuestionnaireResponse xmlns="http://hl7.org/fhir"> - <language value="en" /> - <identifier> - <system value="urn:ietf:rfc:3986" /> - <value value="3ea24a84-c3b3-4673-a7ed-de8254a3eb25" /> - </identifier> - <questionnaire value="http://phr.kanta.fi/Questionnaire/Questionnaire-openChoice" /> - <status value="completed" /> - <subject> - <reference value="Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86" /> - </subject> - <authored value="2018-07-25T13:44:16Z" /> - <source> - <reference value="Patient/25a53703-27f9-4354-8f1b-a8b2f8f3ee86" /> - </source> - <item> - <linkId value="1" /> - <text value="Question1" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - <item> - <linkId value="2" /> - <text value="Question2" /> - <answer> - <valueString value="Open answer" /> - </answer> - </item> - <item> - <linkId value="3" /> - <text value="Question3" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> -</QuestionnaireResponse> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-invalid.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-invalid.xml deleted file mode 100644 index efe16227b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-invalid.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="questionnaire-enableWhen-test" /> - <language value="en-US" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test</p> - </div> - </text> - <url value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <name value="TestQuestionnnaire"/> - <status value="draft" /> - <item> - <linkId value="group" /> - <text value="group" /> - <type value="group" /> - <enableWhen> - <question value="condition" /> - <operator value="="/> - <answerBoolean value="true" /> - </enableWhen> - <repeats value="true" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-nested.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-nested.xml deleted file mode 100644 index d9fb3d2da..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-nested.xml +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="questionnaire-enableWhen-test" /> - <language value="en-US" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test</p> - </div> - </text> - <url value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <status value="draft" /> - <item> - <linkId value="group" /> - <text value="group" /> - <type value="group" /> - <repeats value="true" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <type value="boolean" /> - <enableWhen> - <question value="condition" /> - <operator value="="/> - <answerBoolean value="true" /> - </enableWhen> - <required value="true" /> - <repeats value="false" /> - </item> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-order.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-order.xml deleted file mode 100644 index cfc5db9eb..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test-order.xml +++ /dev/null @@ -1,33 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="questionnaire-enableWhen-test" /> - <language value="en-US" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test</p> - </div> - </text> - <url value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <name value="TestQuestionnnaire"/> - <status value="draft" /> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <type value="boolean" /> - <enableWhen> - <question value="condition" /> - <operator value="="/> - <answerBoolean value="true" /> - </enableWhen> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="condition" /> - <text value="condition" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test.xml deleted file mode 100644 index 5259dbd5a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test.xml +++ /dev/null @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="questionnaire-enableWhen-test" /> - <language value="en-US" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test</p> - </div> - </text> - <url value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <status value="draft" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <type value="boolean" /> - <enableWhen> - <question value="condition" /> - <operator value="="/> - <answerBoolean value="true" /> - </enableWhen> - <required value="true" /> - <repeats value="false" /> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test3.xml deleted file mode 100644 index ff47017f3..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaire-enableWhen-test3.xml +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Questionnaire xmlns="http://hl7.org/fhir"> - <id value="questionnaire-enableWhen-test" /> - <language value="en-US" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test</p> - </div> - </text> - <url value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <status value="draft" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <type value="boolean" /> - <required value="true" /> - <repeats value="false" /> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <type value="boolean" /> - <enableWhen> - <question value="condition" /> - <answerBoolean value="true" /> - </enableWhen> - <required value="true" /> - <repeats value="false" /> - </item> -</Questionnaire> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test-nested.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test-nested.xml deleted file mode 100644 index 484251f06..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test-nested.xml +++ /dev/null @@ -1,88 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<QuestionnaireResponse xmlns="http://hl7.org/fhir"> - <id value="questionnaireResponse-enableWhen-test" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test response</p> - </div> - </text> - <questionnaire value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <status value="completed" /> - <!-- group 0: spacer --> - <item> - <linkId value="group" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="true" /> - </answer> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - </item> - <!-- group 1: condition true, present (valid) --> - <item> - <linkId value="group" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="true" /> - </answer> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - </item> - <!-- group 2: condition false, present (invalid) --> - <item> - <linkId value="group" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - </item> - <!-- group 3: condition true, absent (invalid) --> - <item> - <linkId value="group" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="true" /> - </answer> - </item> - </item> - <!-- group 4: condition false, absent (valid) --> - <item> - <linkId value="group" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> - </item> -</QuestionnaireResponse> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test.xml deleted file mode 100644 index a43b97555..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test.xml +++ /dev/null @@ -1,26 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<QuestionnaireResponse xmlns="http://hl7.org/fhir"> - <id value="questionnaireResponse-enableWhen-test" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test response</p> - </div> - </text> - <questionnaire value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - <status value="completed" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="true" /> - </answer> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> -</QuestionnaireResponse> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test3.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test3.xml deleted file mode 100644 index 36517d8e4..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/questionnaireResponse-enableWhen-test3.xml +++ /dev/null @@ -1,28 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<QuestionnaireResponse xmlns="http://hl7.org/fhir"> - <id value="questionnaireResponse-enableWhen-test" /> - <text> - <status value="generated" /> - <div xmlns="http://www.w3.org/1999/xhtml" lang="en-US"> - <p>enableWhen test response</p> - </div> - </text> - <questionnaire> - <reference value="http://hl7.org/fhir/us/hai/Questionnaire/questionnaire-enableWhen-test" /> - </questionnaire> - <status value="completed" /> - <item> - <linkId value="condition" /> - <text value="condition" /> - <answer> - <valueBoolean value="true" /> - </answer> - </item> - <item> - <linkId value="enable-when" /> - <text value="enable when condition true" /> - <answer> - <valueBoolean value="false" /> - </answer> - </item> -</QuestionnaireResponse> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-logical.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-logical.xml deleted file mode 100644 index 505d7ca5b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-logical.xml +++ /dev/null @@ -1,13 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <identifier> - <system value="http://something/somepath"/> - <value value="something"/> - </identifier> - <type value="ValueSet"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-typed.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-typed.xml deleted file mode 100644 index fdd192389..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad-typed.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <reference value="Patient/test"/> - <type value="Group"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad.xml deleted file mode 100644 index bd8aebf3c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-bad.xml +++ /dev/null @@ -1,9 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <reference value="Patient/test-fail"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-contained.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-contained.xml deleted file mode 100644 index fd1c58f94..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-contained.xml +++ /dev/null @@ -1,17 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <contained> - <Patient> - <id value="pat"/> - <name> - <text value="some name"/> - </name> - </Patient> - </contained> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <reference value="#pat"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical-1.xml deleted file mode 100644 index 0b7f00d8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical-1.xml +++ /dev/null @@ -1,12 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <identifier> - <system value="http://something/somepath"/> - <value value="something"/> - </identifier> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical.xml deleted file mode 100644 index 0b7f00d8b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-logical.xml +++ /dev/null @@ -1,12 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <identifier> - <system value="http://something/somepath"/> - <value value="something"/> - </identifier> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-typed.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-typed.xml deleted file mode 100644 index 72d269c7b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good-typed.xml +++ /dev/null @@ -1,10 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <reference value="Patient/test"/> - <type value="Patient"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good.xml deleted file mode 100644 index 616a72d1f..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/reference-good.xml +++ /dev/null @@ -1,9 +0,0 @@ -<Observation xmlns="http://hl7.org/fhir"> - <status value="final"/> - <code> - <text value="test"/> - </code> - <subject> - <reference value="Patient/test"/> - </subject> -</Observation> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-example.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-example.json deleted file mode 100644 index 7b217e870..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-example.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "resourceType":"Observation", - "id":"1minute-apgar-score", - "meta":{ - "versionId":"2", - "lastUpdated":"10/2/2017 5:13:51 PM", - "profile": [ - "http://AAUprofiles/StructureDefinition/DAS28ObservationPractioner" - ] - }, - "contained": [ - { - "resourceType":"Patient", - "id":"newborn", - "identifier": [ - { - "system":"http://acmehealthcare/org/mrns", - "value":"12345" - } - ], - "active":true, - "name": [ - { - "family":"Chalmers", - "given": [ - "Peter", - "James" - ] - } - ], - "gender":"male", - "birthDate":"2016-05-18", - "_birthDate":{ - "extension": [ - { - "url":"http://hl7.org/fhir/StructureDefinition/patient-birthTime", - "valueDateTime":"5/18/2016 10:28:45 AM" - } - ] - } - } - ], - "status":"final", - "category": [ - { - "coding": [ - { - "system":"http://hl7.org/fhir/observation-category", - "code":"survey", - "display":"Survey" - } - ], - "text":"Survey" - } - ], - "code":{ - "coding": [ - { - "system":"http://snomed.info/sct", - "code":"444060007" - } - ], - "text":"1 minute Apgar Score" - }, - "subject":{ - "reference":"#newborn" - }, - "effectiveDateTime":"5/18/2016 10:33:22 PM", - "performer": [ - { - "reference":"Practitioner/example" - } - ], - "valueQuantity":{ - "value":"0", - "system":"http://unitsofmeasure.org", - "code":"{score}" - }, - "component": [ - { - "code":{ - "coding": [ - { - "system":"http://snomed.info/sct", - "code":"55235003" - } - ], - "text":"Apgar color score" - } - }, - { - "code":{ - "coding": [ - { - "system":"http://snomed.info/sct", - "code":"446661009" - } - ], - "text":"Apgar color score" - } - } - ] -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-profile.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-profile.json deleted file mode 100644 index 2ea5ca621..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/simpl-profile.json +++ /dev/null @@ -1,20139 +0,0 @@ -{ - "resourceType": "StructureDefinition", - "id": "6463b2c9-00b8-4a83-a37f-38715e5e6fb9", - "meta": { - "lastUpdated": "2017-10-06T10:40:50.49+00:00" - }, - "url": "http://AAUprofiles/StructureDefinition/DAS28ObservationPractioner", - "name": "DAS28ObservationPractioner", - "status": "draft", - "experimental": true, - "date": "2017-10-05T07:35:50.498+00:00", - "fhirVersion": "3.0.1", - "kind": "resource", - "abstract": false, - "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": "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 lab reports, etc.", - "alias": [ - "Vital Signs", - "Measurement", - "Results", - "Tests" - ], - "min": 0, - "max": "*", - "base": { - "path": "Resource", - "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)" - }, - { - "key": "dom-1", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", - "expression": "contained.text.empty()", - "xpath": "not(parent::f:contained and f:text)" - }, - { - "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))" - }, - { - "key": "dom-3", - "severity": "error", - "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", - "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", - "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" - }, - { - "key": "obs-7", - "severity": "error", - "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", - "expression": "value.empty() or code!=component.code", - "xpath": "not(exists(f:*[starts-with(local-name(.), 'value')])) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)" - }, - { - "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')])))" - } - ], - "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]" - }, - { - "identity": "w5", - "map": "clinical.diagnostics" - } - ] - }, - { - "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": [ - { - "code": "id" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.meta", - "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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "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.", - "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. \n\nThis element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", - "valueReference": { - "reference": "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": "extensible", - "description": "A human language.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/languages" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.text", - "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 may 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 in formation 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", - "dom-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "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", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions 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() | (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": "Observation.modifierExtension", - "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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions 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.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() | (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')])" - } - ], - "isModifier": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.identifier", - "path": "Observation.identifier", - "short": "Business Identifier for observation", - "definition": "A unique identifier assigned to this observation.", - "requirements": "Allows observations to be distinguished and referenced.", - "min": 0, - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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": "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" - }, - { - "identity": "w5", - "map": "id" - } - ] - }, - { - "id": "Observation.identifier.id", - "path": "Observation.identifier.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.identifier.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.identifier.use", - "path": "Observation.identifier.use", - "short": "usual | official | temp | secondary (If known)", - "definition": "The purpose of this identifier.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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 .", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/identifier-use" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "N/A" - }, - { - "identity": "rim", - "map": "Role.code or implied by context" - } - ] - }, - { - "id": "Observation.identifier.type", - "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. \n\nWhere 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "valueSetReference": { - "reference": "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.type.id", - "path": "Observation.identifier.type.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.identifier.type.extension", - "path": "Observation.identifier.type.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.identifier.type.coding", - "path": "Observation.identifier.type.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.coding.id", - "path": "Observation.identifier.type.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.identifier.type.coding.extension", - "path": "Observation.identifier.type.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.identifier.type.coding.system", - "path": "Observation.identifier.type.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.coding.version", - "path": "Observation.identifier.type.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.coding.code", - "path": "Observation.identifier.type.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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.identifier.type.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.coding.userSelected", - "path": "Observation.identifier.type.coding.userSelected", - "short": "If this coding was chosen directly by the user", - "definition": "Indicates that this coding was chosen by a user directly - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.identifier.type.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.identifier.type.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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": 0, - "max": "1", - "base": { - "path": "Identifier.system", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "uri" - } - ], - "example": [ - { - "label": "General", - "valueUri": "http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "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": "This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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\"). If duration is required, specify the type as Interval|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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "key": "per-1", - "severity": "error", - "human": "If present, start SHALL have a lower value than end", - "expression": "start.empty() or end.empty() or (start <= end)", - "xpath": "not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "DR" - }, - { - "identity": "rim", - "map": "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[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.period.id", - "path": "Observation.identifier.period.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.identifier.period.extension", - "path": "Observation.identifier.period.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.identifier.period.start", - "path": "Observation.identifier.period.start", - "short": "Starting time with inclusive boundary", - "definition": "The start of the period. The boundary is inclusive.", - "comment": "If the low element is missing, the meaning is that the low boundary is not known.", - "min": 0, - "max": "1", - "base": { - "path": "Period.start", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "dateTime" - } - ], - "condition": [ - "ele-1", - "per-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "DR.1" - }, - { - "identity": "rim", - "map": "./low" - } - ] - }, - { - "id": "Observation.identifier.period.end", - "path": "Observation.identifier.period.end", - "short": "End time with inclusive boundary, if not ongoing", - "definition": "The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time.", - "comment": "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03.", - "min": 0, - "max": "1", - "base": { - "path": "Period.end", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "dateTime" - } - ], - "meaningWhenMissing": "If the end of the period is missing, it means that the period is ongoing", - "condition": [ - "ele-1", - "per-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "DR.2" - }, - { - "identity": "rim", - "map": "./high" - } - ] - }, - { - "id": "Observation.identifier.assigner", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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.identifier.assigner.id", - "path": "Observation.identifier.assigner.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.identifier.assigner.extension", - "path": "Observation.identifier.assigner.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.identifier.assigner.reference", - "path": "Observation.identifier.assigner.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.identifier.assigner.identifier", - "path": "Observation.identifier.assigner.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.identifier.assigner.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.identifier.assigner.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.basedOn", - "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.", - "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": "*", - "base": { - "path": "Observation.basedOn", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/CarePlan" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceRequest" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImmunizationRecommendation" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/MedicationRequest" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/NutritionOrder" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" - }, - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": ".outboundRelationship[typeCode=FLFS].target" - } - ] - }, - { - "id": "Observation.basedOn.id", - "path": "Observation.basedOn.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.basedOn.extension", - "path": "Observation.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.basedOn.reference", - "path": "Observation.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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.basedOn.identifier", - "path": "Observation.basedOn.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.basedOn.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.status", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", - "valueString": "default: final" - } - ], - "path": "Observation.status", - "short": "registered | preliminary | final | amended +", - "definition": "The status of the result value.", - "comment": "This element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.", - "requirements": "Need to track the status of individual results. Some results are finalized before the whole report is finalized.", - "min": 1, - "max": "1", - "base": { - "path": "Observation.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationStatus" - } - ], - "strength": "required", - "description": "Codes providing the status of an observation.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-status" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "workflow", - "map": "Event.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\"" - }, - { - "identity": "w5", - "map": "status" - } - ] - }, - { - "id": "Observation.category", - "path": "Observation.category", - "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": 0, - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationCategory" - } - ], - "strength": "preferred", - "description": "Codes for high level observation categories.", - "valueSetReference": { - "reference": "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": "rim", - "map": ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code" - }, - { - "identity": "w5", - "map": "class" - } - ] - }, - { - "id": "Observation.category.id", - "path": "Observation.category.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.category.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.category.coding", - "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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.id", - "path": "Observation.category.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.category.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.category.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "path": "Observation.code", - "short": "Type of observation (code / type)", - "definition": "Describes what was observed. Sometimes this is called the observation \"name\".", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationCode" - } - ], - "strength": "example", - "description": "Codes identifying names of simple observations.", - "valueSetReference": { - "reference": "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": "workflow", - "map": "Event.code" - }, - { - "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|" - }, - { - "identity": "w5", - "map": "what" - } - ] - }, - { - "id": "Observation.code.id", - "path": "Observation.code.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.code.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.code.coding", - "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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.code.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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 de-reference to some definition that establish 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" - } - ], - "fixedUri": "http://snomed.info/sct", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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. 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", - "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" - } - ], - "fixedCode": "444060007", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 may 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" - } - ], - "fixedString": "Disease activity score in rheumatoid arthritis using C-reactive protein (observable entity)", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "DAS28 Observable", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "path": "Observation.subject", - "short": "Observation of Danish patient", - "definition": "The patient, or group of patients, location, or device whose characteristics (direct or indirect) are described by the observation and into whose record the observation is placed. Comments: Indirect characteristics may be those of a specimen, fetus, donor, other observer (for example a relative or EMT), or any observation made about the subject.", - "comment": "One would expect this element to be a cardinality of 1..1. The only circumstance in which the subject can be missing is when the observation is made by a device that does not know the patient. In this case, the observation SHALL be matched to a patient through some context/channel matching technique, and at this point, the observation should be updated.\r\rIf the target of the observation is different than the subject, the general extension [observation-focal-subject](extension-observation-focal-subject.html). may be used. However, the distinction between the patient's own value for an observation versus that of the fetus, or the donor or blood product unit, etc., are often specified in the observation code.", - "requirements": "Observations have no value if you don't know who or what they're about.", - "min": 1, - "max": "1", - "base": { - "path": "Observation.subject", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": "http://AAUprofiles/StructureDefinition/DanishPatient", - "aggregation": [ - "referenced" - ] - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": "v2", - "map": "PID-3" - }, - { - "identity": "rim", - "map": "participation[typeCode=SBJ]" - }, - { - "identity": "w5", - "map": "who.focus" - } - ] - }, - { - "id": "Observation.subject.id", - "path": "Observation.subject.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.subject.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.subject.identifier", - "path": "Observation.subject.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.context", - "path": "Observation.context", - "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 or episode but still be tied to the context of the encounter or episode (e.g. pre-admission lab tests).", - "requirements": "For some observations it may be important to know the link between an observation and a particular encounter.", - "alias": [ - "Encounter" - ], - "min": 0, - "max": "1", - "base": { - "path": "Observation.context", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" - }, - { - "code": "Reference", - "targetProfile": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": "v2", - "map": "PV1" - }, - { - "identity": "rim", - "map": "inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]" - }, - { - "identity": "w5", - "map": "context" - } - ] - }, - { - "id": "Observation.context.id", - "path": "Observation.context.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.context.extension", - "path": "Observation.context.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.context.reference", - "path": "Observation.context.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.context.identifier", - "path": "Observation.context.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.context.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.context.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "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.", - "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" - }, - { - "code": "Period" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "workflow", - "map": "Event.occurrence[x]" - }, - { - "identity": "v2", - "map": "OBX-14, and/or OBX-19 after v2.4 (depends on who observation made)" - }, - { - "identity": "rim", - "map": "effectiveTime" - }, - { - "identity": "w5", - "map": "when.done" - } - ] - }, - { - "id": "Observation.issued", - "path": "Observation.issued", - "short": "Date/Time this was made available", - "definition": "The date and time this observation was made available to providers, typically after the results have been reviewed and verified.", - "comment": "Updated when the result is updated.", - "min": 0, - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "OBR.22 (or MSH.7), or perhaps OBX-19 (depends on who observation made)" - }, - { - "identity": "rim", - "map": "participation[typeCode=AUT].time" - }, - { - "identity": "w5", - "map": "when.recorded" - } - ] - }, - { - "id": "Observation.performer", - "path": "Observation.performer", - "short": "The practioner is responsible for the observation", - "definition": "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 (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": "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://hl7.org/fhir/StructureDefinition/Practitioner", - "aggregation": [ - "referenced" - ] - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": "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]" - }, - { - "identity": "w5", - "map": "who.actor" - } - ] - }, - { - "id": "Observation.performer.id", - "path": "Observation.performer.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.performer.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.performer.identifier", - "path": "Observation.performer.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.value[x]:valueQuantity", - "path": "Observation.valueQuantity", - "sliceName": "valueQuantity", - "short": "CalculatedDAS28score", - "definition": "The information determined as a result of making the observation, if the information has a simple value.", - "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": "An observation exists to have a value, though it may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, MO, CO, depending on the values" - }, - { - "identity": "workflow", - "map": "Event.notDone, Event.notDoneReason (maps to valeu[x] or dataAbsentReason)" - }, - { - "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.valueQuantity.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.value[x]:valueQuantity.extension", - "path": "Observation.valueQuantity.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "valueQuantity:valueQuantity.value", - "path": "Observation.valueQuantity.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": "1", - "base": { - "path": "Quantity.value", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "decimal" - } - ], - "minValueDecimal": 0, - "maxValueDecimal": 10, - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.valueQuantity.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": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "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.valueQuantity.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.valueQuantity.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.valueQuantity.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "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\". The 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" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" - } - }, - "mapping": [ - { - "identity": "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.notDone, Event.notDoneReason (maps to valeu[x] or dataAbsentReason)" - }, - { - "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.dataAbsentReason.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.dataAbsentReason.coding", - "path": "Observation.dataAbsentReason.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.dataAbsentReason.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "path": "Observation.interpretation", - "short": "High, low, normal, etc.", - "definition": "The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationInterpretation" - } - ], - "strength": "extensible", - "description": "Codes identifying interpretations of observations.", - "valueSetReference": { - "reference": "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.interpretation.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.interpretation.coding", - "path": "Observation.interpretation.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.id", - "path": "Observation.interpretation.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.interpretation.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.interpretation.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.comment", - "path": "Observation.comment", - "short": "Comments about result", - "definition": "May include statements about significant, unexpected or unreliable values, or information about the source of the value where this may be relevant to the interpretation of the result.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "requirements": "Need to be able to provide free text additional information.", - "min": 0, - "max": "1", - "base": { - "path": "Observation.comment", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "workflow", - "map": "Event.note" - }, - { - "identity": "v2", - "map": "NTE.3 (partner NTE to OBX, or sometimes another (child?) OBX)" - }, - { - "identity": "rim", - "map": "subjectOf.observationEvent[code=\"annotation\"].value" - } - ] - }, - { - "id": "Observation.bodySite", - "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. If the use case requires BodySite to be handled as a separate resource (e.g. to identify and track separately) then use the standard extension[ body-site-instance](extension-body-site-instance.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "BodySite" - } - ], - "strength": "example", - "description": "Codes describing anatomical locations. May include laterality.", - "valueSetReference": { - "reference": "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.bodySite.id", - "path": "Observation.bodySite.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.bodySite.extension", - "path": "Observation.bodySite.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.bodySite.coding", - "path": "Observation.bodySite.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.coding.id", - "path": "Observation.bodySite.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.bodySite.coding.extension", - "path": "Observation.bodySite.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.bodySite.coding.system", - "path": "Observation.bodySite.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.coding.version", - "path": "Observation.bodySite.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.coding.code", - "path": "Observation.bodySite.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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.bodySite.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.coding.userSelected", - "path": "Observation.bodySite.coding.userSelected", - "short": "If this coding was chosen directly by the user", - "definition": "Indicates that this coding was chosen by a user directly - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.bodySite.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.bodySite.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method", - "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": "1", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationMethod" - } - ], - "strength": "example", - "description": "Methods for simple observations.", - "valueSetReference": { - "reference": "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.method.id", - "path": "Observation.method.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.method.extension", - "path": "Observation.method.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.method.coding", - "path": "Observation.method.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.coding.id", - "path": "Observation.method.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.method.coding.extension", - "path": "Observation.method.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.method.coding.system", - "path": "Observation.method.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.coding.version", - "path": "Observation.method.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.coding.code", - "path": "Observation.method.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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.method.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.coding.userSelected", - "path": "Observation.method.coding.userSelected", - "short": "If this coding was chosen directly by the user", - "definition": "Indicates that this coding was chosen by a user directly - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.method.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.method.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.specimen", - "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": "1", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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.specimen.id", - "path": "Observation.specimen.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.specimen.extension", - "path": "Observation.specimen.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.specimen.reference", - "path": "Observation.specimen.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.specimen.identifier", - "path": "Observation.specimen.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.specimen.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.specimen.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.device", - "path": "Observation.device", - "short": "(Measurement) Device", - "definition": "The device used to generate the observation data.", - "comment": "An extension should be used if further typing of the device is needed. Devices used to support obtaining an observation can be represented using either an extension or through the Observation.related element.", - "min": 0, - "max": "0", - "base": { - "path": "Observation.device", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" - }, - { - "code": "Reference", - "targetProfile": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.device.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.device.identifier", - "path": "Observation.device.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.referenceRange", - "path": "Observation.referenceRange", - "short": "Provides guide for interpretation", - "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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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))" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.modifierExtension", - "path": "Observation.referenceRange.modifierExtension", - "short": "Extensions that cannot be ignored", - "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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "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() | (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')])" - } - ], - "isModifier": true, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.referenceRange.low", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - }, - { - "key": "sqty-1", - "severity": "error", - "human": "The comparator is not used on a SimpleQuantity", - "expression": "comparator.empty()", - "xpath": "not(exists(f:comparator))" - } - ], - "isModifier": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, MO, CO, depending on the values" - }, - { - "identity": "v2", - "map": "OBX-7" - }, - { - "identity": "rim", - "map": "value:IVL_PQ.low" - } - ] - }, - { - "id": "Observation.referenceRange.low.id", - "path": "Observation.referenceRange.low.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.low.extension", - "path": "Observation.referenceRange.low.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.low.value", - "path": "Observation.referenceRange.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.low.comparator", - "path": "Observation.referenceRange.low.comparator", - "short": "< | <= | >= | > - how to understand the value", - "definition": "Not allowed to be used in this context", - "comment": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN.1 / CQ.1" - }, - { - "identity": "rim", - "map": "IVL properties" - } - ] - }, - { - "id": "Observation.referenceRange.low.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.low.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "(see OBX.6 etc.) / CQ.2" - }, - { - "identity": "rim", - "map": "PQ.unit" - } - ] - }, - { - "id": "Observation.referenceRange.low.system", - "path": "Observation.referenceRange.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.low.code", - "path": "Observation.referenceRange.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.high", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - }, - { - "key": "sqty-1", - "severity": "error", - "human": "The comparator is not used on a SimpleQuantity", - "expression": "comparator.empty()", - "xpath": "not(exists(f:comparator))" - } - ], - "isModifier": false, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, MO, CO, depending on the values" - }, - { - "identity": "v2", - "map": "OBX-7" - }, - { - "identity": "rim", - "map": "value:IVL_PQ.high" - } - ] - }, - { - "id": "Observation.referenceRange.high.id", - "path": "Observation.referenceRange.high.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.high.extension", - "path": "Observation.referenceRange.high.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.high.value", - "path": "Observation.referenceRange.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.high.comparator", - "path": "Observation.referenceRange.high.comparator", - "short": "< | <= | >= | > - how to understand the value", - "definition": "Not allowed to be used in this context", - "comment": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN.1 / CQ.1" - }, - { - "identity": "rim", - "map": "IVL properties" - } - ] - }, - { - "id": "Observation.referenceRange.high.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.high.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "(see OBX.6 etc.) / CQ.2" - }, - { - "identity": "rim", - "map": "PQ.unit" - } - ] - }, - { - "id": "Observation.referenceRange.high.system", - "path": "Observation.referenceRange.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.high.code", - "path": "Observation.referenceRange.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationRangeMeaning" - } - ], - "strength": "extensible", - "description": "Code for the meaning of a reference range.", - "valueSetReference": { - "reference": "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.type.id", - "path": "Observation.referenceRange.type.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.type.extension", - "path": "Observation.referenceRange.type.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.type.coding", - "path": "Observation.referenceRange.type.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.coding.id", - "path": "Observation.referenceRange.type.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.type.coding.extension", - "path": "Observation.referenceRange.type.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.type.coding.system", - "path": "Observation.referenceRange.type.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.coding.version", - "path": "Observation.referenceRange.type.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.coding.code", - "path": "Observation.referenceRange.type.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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.type.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.coding.userSelected", - "path": "Observation.referenceRange.type.coding.userSelected", - "short": "If this coding was chosen directly by the user", - "definition": "Indicates that this coding was chosen by a user directly - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.type.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.type.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo", - "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationRangeType" - } - ], - "strength": "example", - "description": "Codes identifying the population the reference range applies to.", - "valueSetReference": { - "reference": "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.appliesTo.id", - "path": "Observation.referenceRange.appliesTo.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.appliesTo.extension", - "path": "Observation.referenceRange.appliesTo.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.appliesTo.coding", - "path": "Observation.referenceRange.appliesTo.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.coding.id", - "path": "Observation.referenceRange.appliesTo.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.appliesTo.coding.extension", - "path": "Observation.referenceRange.appliesTo.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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.appliesTo.coding.system", - "path": "Observation.referenceRange.appliesTo.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.coding.version", - "path": "Observation.referenceRange.appliesTo.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.coding.code", - "path": "Observation.referenceRange.appliesTo.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", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.appliesTo.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.coding.userSelected", - "path": "Observation.referenceRange.appliesTo.coding.userSelected", - "short": "If this coding was chosen directly by the user", - "definition": "Indicates that this coding was chosen by a user directly - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.appliesTo.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.appliesTo.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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))" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "NR and also possibly SN (but see also quantity)" - }, - { - "identity": "rim", - "map": "IVL<QTY[not(type=\"TS\")]> [lowClosed=\"true\" and highClosed=\"true\"]or URG<QTY[not(type=\"TS\")]>" - }, - { - "identity": "rim", - "map": "outboundRelationship[typeCode=PRCN].targetObservationCriterion[code=\"age\"].value" - } - ] - }, - { - "id": "Observation.referenceRange.age.id", - "path": "Observation.referenceRange.age.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.age.extension", - "path": "Observation.referenceRange.age.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.age.low", - "path": "Observation.referenceRange.age.low", - "short": "Low limit", - "definition": "The low limit. The boundary is inclusive.", - "comment": "If the low element is missing, the low boundary is not known.", - "min": 0, - "max": "1", - "base": { - "path": "Range.low", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Quantity", - "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" - } - ], - "condition": [ - "ele-1", - "rng-2" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - }, - { - "key": "sqty-1", - "severity": "error", - "human": "The comparator is not used on a SimpleQuantity", - "expression": "comparator.empty()", - "xpath": "not(exists(f:comparator))" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, MO, CO, depending on the values" - }, - { - "identity": "v2", - "map": "NR.1" - }, - { - "identity": "rim", - "map": "./low" - } - ] - }, - { - "id": "Observation.referenceRange.age.low.id", - "path": "Observation.referenceRange.age.low.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.age.low.extension", - "path": "Observation.referenceRange.age.low.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.age.low.value", - "path": "Observation.referenceRange.age.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age.low.comparator", - "path": "Observation.referenceRange.age.low.comparator", - "short": "< | <= | >= | > - how to understand the value", - "definition": "Not allowed to be used in this context", - "comment": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN.1 / CQ.1" - }, - { - "identity": "rim", - "map": "IVL properties" - } - ] - }, - { - "id": "Observation.referenceRange.age.low.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.age.low.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "(see OBX.6 etc.) / CQ.2" - }, - { - "identity": "rim", - "map": "PQ.unit" - } - ] - }, - { - "id": "Observation.referenceRange.age.low.system", - "path": "Observation.referenceRange.age.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age.low.code", - "path": "Observation.referenceRange.age.low.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age.high", - "path": "Observation.referenceRange.age.high", - "short": "High limit", - "definition": "The high limit. The boundary is inclusive.", - "comment": "If the high element is missing, the high boundary is not known.", - "min": 0, - "max": "1", - "base": { - "path": "Range.high", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "Quantity", - "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" - } - ], - "condition": [ - "ele-1", - "rng-2" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - }, - { - "key": "sqty-1", - "severity": "error", - "human": "The comparator is not used on a SimpleQuantity", - "expression": "comparator.empty()", - "xpath": "not(exists(f:comparator))" - } - ], - "isModifier": false, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, MO, CO, depending on the values" - }, - { - "identity": "v2", - "map": "NR.2" - }, - { - "identity": "rim", - "map": "./high" - } - ] - }, - { - "id": "Observation.referenceRange.age.high.id", - "path": "Observation.referenceRange.age.high.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.referenceRange.age.high.extension", - "path": "Observation.referenceRange.age.high.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.referenceRange.age.high.value", - "path": "Observation.referenceRange.age.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age.high.comparator", - "path": "Observation.referenceRange.age.high.comparator", - "short": "< | <= | >= | > - how to understand the value", - "definition": "Not allowed to be used in this context", - "comment": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN.1 / CQ.1" - }, - { - "identity": "rim", - "map": "IVL properties" - } - ] - }, - { - "id": "Observation.referenceRange.age.high.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.referenceRange.age.high.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "(see OBX.6 etc.) / CQ.2" - }, - { - "identity": "rim", - "map": "PQ.unit" - } - ] - }, - { - "id": "Observation.referenceRange.age.high.system", - "path": "Observation.referenceRange.age.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.referenceRange.age.high.code", - "path": "Observation.referenceRange.age.high.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "OBX-7" - }, - { - "identity": "rim", - "map": "value:ST" - } - ] - }, - { - "id": "Observation.related", - "path": "Observation.related", - "short": "Resource related to this observation", - "definition": "A reference to another resource (usually another Observation) whose relationship is defined by the relationship type code.", - "comment": "For a discussion on the ways Observations can assembled in groups together see [Notes below](observation.html#4.20.4).", - "requirements": "Normally, an observation will have either a value or a set of related observations. A few observations (e.g. Apgar score) may have both a value and a set of related observations or sometimes a QuestionnaireResponse from which the measure is derived.", - "min": 0, - "max": "56", - "base": { - "path": "Observation.related", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "Relationships established by OBX-4 usage" - }, - { - "identity": "rim", - "map": "outBoundRelationship" - } - ] - }, - { - "id": "Observation.related.id", - "path": "Observation.related.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.related.extension", - "path": "Observation.related.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.related.modifierExtension", - "path": "Observation.related.modifierExtension", - "short": "Extensions that cannot be ignored", - "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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "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() | (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')])" - } - ], - "isModifier": true, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.related.type", - "path": "Observation.related.type", - "short": "has-member | derived-from | sequel-to | replaces | qualified-by | interfered-by", - "definition": "A code specifying the kind of relationship that exists with the target resource.", - "comment": "The \"derived-from\" type is the only logical choice when referencing the QuestionnaireAnswer resource.", - "requirements": "A relationship type SHOULD be provided.", - "min": 0, - "max": "1", - "base": { - "path": "Observation.related.type", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationRelationshipType" - } - ], - "strength": "required", - "description": "Codes specifying how two observations are related.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "N/A" - }, - { - "identity": "rim", - "map": ".typeCode" - } - ] - }, - { - "id": "Observation.related.target", - "path": "Observation.related.target", - "short": "Resource that is related to this one", - "definition": "A reference to the observation or [QuestionnaireResponse](questionnaireresponse.html#) resource that is related to this observation.", - "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": "Observation.related.target", - "min": 1, - "max": "1" - }, - "type": [ - { - "code": "Reference", - "targetProfile": "http://aauprofiles/StructureDefinition/JointSymptomsObservation", - "aggregation": [ - "contained" - ] - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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 %resource.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, '#')])" - } - ], - "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": ".targetObservation" - } - ] - }, - { - "id": "Observation.related.target.id", - "path": "Observation.related.target.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.related.target.extension", - "path": "Observation.related.target.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.related.target.reference", - "path": "Observation.related.target.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.related.target.identifier", - "path": "Observation.related.target.identifier", - "short": "Logical reference, when literal reference is not known", - "definition": "An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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.related.target.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.related.target.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.component", - "path": "Observation.component", - "slicing": { - "discriminator": [ - { - "type": "type", - "path": "code.coding.code" - } - ], - "rules": "open" - }, - "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": "*", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.modifierExtension", - "path": "Observation.component.modifierExtension", - "short": "Extensions that cannot be ignored", - "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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "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() | (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')])" - } - ], - "isModifier": true, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.component.code", - "path": "Observation.component.code", - "short": "Type of component observation (code / type)", - "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationCode" - } - ], - "strength": "example", - "description": "Codes identifying names of simple observations.", - "valueSetReference": { - "reference": "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": "sct-concept", - "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" - }, - { - "identity": "v2", - "map": "OBX-3" - }, - { - "identity": "rim", - "map": "code" - }, - { - "identity": "w5", - "map": "what" - } - ] - }, - { - "id": "Observation.component.code.id", - "path": "Observation.component.code.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.code.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.code.coding", - "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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.code.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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]", - "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": "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. 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 boolean values use valueCodeableConcept and select codes from <http://hl7.org/fhir/ValueSet/v2-0136> (these \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed\"). The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (the name format is \"'value' + the type name\" with a capital on the first letter of the type).", - "requirements": "An observation exists to have a value, though it may 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": "Range" - }, - { - "code": "Ratio" - }, - { - "code": "SampledData" - }, - { - "code": "Attachment" - }, - { - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, 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", - "path": "Observation.component.dataAbsentReason", - "short": "Why the component 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 \"test not done\". The 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" - } - }, - "mapping": [ - { - "identity": "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.dataAbsentReason.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.dataAbsentReason.coding", - "path": "Observation.component.dataAbsentReason.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.id", - "path": "Observation.component.dataAbsentReason.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.dataAbsentReason.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.dataAbsentReason.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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", - "path": "Observation.component.interpretation", - "short": "High, low, normal, etc.", - "definition": "The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag.", - "comment": "The component interpretation applies only to the individual component value. For an overall interpretation all components together use thes Observation.interpretation element.", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationInterpretation" - } - ], - "strength": "extensible", - "description": "Codes identifying interpretations of observations.", - "valueSetReference": { - "reference": "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": "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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.interpretation.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.interpretation.coding", - "path": "Observation.component.interpretation.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.id", - "path": "Observation.component.interpretation.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component.interpretation.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component.interpretation.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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 may 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:CRP", - "path": "Observation.component", - "sliceName": "CRP", - "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "containment by OBX-4?" - }, - { - "identity": "rim", - "map": "outBoundRelationship[typeCode=COMP]" - } - ] - }, - { - "id": "Observation.component:CRP.id", - "path": "Observation.component.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.modifierExtension", - "path": "Observation.component.modifierExtension", - "short": "Extensions that cannot be ignored", - "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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "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() | (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')])" - } - ], - "isModifier": true, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.component:CRP.code", - "path": "Observation.component.code", - "short": "Type of component observation (code / type)", - "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationCode" - } - ], - "strength": "example", - "description": "Codes identifying names of simple observations.", - "valueSetReference": { - "reference": "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": "sct-concept", - "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" - }, - { - "identity": "v2", - "map": "OBX-3" - }, - { - "identity": "rim", - "map": "code" - }, - { - "identity": "w5", - "map": "what" - } - ] - }, - { - "id": "Observation.component:CRP.code.id", - "path": "Observation.component.code.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.code.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.code.coding", - "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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.code.coding.id", - "path": "Observation.component.code.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.code.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.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 de-reference to some definition that establish 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" - } - ], - "fixedUri": "http://snomed.info/sct", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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 may not exceed 1MB in size", - "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" - } - ], - "fixedCode": "55235003", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "short": "Actual component result", - "definition": "The information determined as a result of making the observation, if the information has a simple value.", - "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. 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 boolean values use valueCodeableConcept and select codes from <http://hl7.org/fhir/ValueSet/v2-0136> (these \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed\"). The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (the name format is \"'value' + the type name\" with a capital on the first letter of the type).", - "requirements": "An observation exists to have a value, though it may 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" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, 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:CRP.value[x]:valueQuantity.id", - "path": "Observation.component.valueQuantity.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.value[x]:valueQuantity.extension", - "path": "Observation.component.valueQuantity.extension", - "slicing": { - "discriminator": [ - { - "type": "value", - "path": "url" - } - ], - "description": "Extensions are always sliced by (at least) url", - "rules": "open" - }, - "short": "Additional Content defined by implementations", - "definition": "May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.value[x]:valueQuantity.value", - "path": "Observation.component.valueQuantity.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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.value[x]:valueQuantity.comparator", - "path": "Observation.component.valueQuantity.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": "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.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isModifier": true, - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" - } - }, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN.1 / CQ.1" - }, - { - "identity": "rim", - "map": "IVL properties" - } - ] - }, - { - "id": "valueQuantity:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "short": "Unit representation", - "definition": "A human-readable form of the unit.", - "comment": "Note that FHIR strings may 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": "1", - "base": { - "path": "Quantity.unit", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "fixedString": "mg/L", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "(see OBX.6 etc.) / CQ.2" - }, - { - "identity": "rim", - "map": "PQ.unit" - } - ] - }, - { - "id": "valueQuantity:valueQuantity.system", - "path": "Observation.component.valueQuantity.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": "1", - "base": { - "path": "Quantity.system", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "uri" - } - ], - "fixedUri": "http://unitsofmeasssure.org", - "condition": [ - "ele-1", - "qty-3" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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": "valueQuantity:valueQuantity.code", - "path": "Observation.component.valueQuantity.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": "1", - "base": { - "path": "Quantity.code", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "code" - } - ], - "fixedCode": "mg/L", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason", - "path": "Observation.component.dataAbsentReason", - "short": "Why the component 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 \"test not done\". The 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" - } - }, - "mapping": [ - { - "identity": "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:CRP.dataAbsentReason.id", - "path": "Observation.component.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.dataAbsentReason.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.dataAbsentReason.coding", - "path": "Observation.component.dataAbsentReason.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason.coding.id", - "path": "Observation.component.dataAbsentReason.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.dataAbsentReason.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.dataAbsentReason.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason.coding.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason.coding.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason.coding.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.dataAbsentReason.coding.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation", - "path": "Observation.component.interpretation", - "short": "High, low, normal, etc.", - "definition": "The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag.", - "comment": "The component interpretation applies only to the individual component value. For an overall interpretation all components together use thes Observation.interpretation element.", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationInterpretation" - } - ], - "strength": "extensible", - "description": "Codes identifying interpretations of observations.", - "valueSetReference": { - "reference": "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:CRP.interpretation.id", - "path": "Observation.component.interpretation.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.interpretation.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.interpretation.coding", - "path": "Observation.component.interpretation.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation.coding.id", - "path": "Observation.component.interpretation.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:CRP.interpretation.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:CRP.interpretation.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation.coding.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation.coding.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation.coding.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.interpretation.coding.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:CRP.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 may 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:GeneralHealth", - "path": "Observation.component", - "sliceName": "GeneralHealth", - "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": 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "containment by OBX-4?" - }, - { - "identity": "rim", - "map": "outBoundRelationship[typeCode=COMP]" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.id", - "path": "Observation.component.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.modifierExtension", - "path": "Observation.component.modifierExtension", - "short": "Extensions that cannot be ignored", - "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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "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() | (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')])" - } - ], - "isModifier": true, - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "rim", - "map": "N/A" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.code", - "path": "Observation.component.code", - "short": "Type of component observation (code / type)", - "definition": "Describes what was observed. Sometimes this is called the observation \"code\".", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "isSummary": true, - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationCode" - } - ], - "strength": "example", - "description": "Codes identifying names of simple observations.", - "valueSetReference": { - "reference": "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": "sct-concept", - "map": "< 363787002 |Observable entity| OR \r< 386053000 |Evaluation procedure|" - }, - { - "identity": "v2", - "map": "OBX-3" - }, - { - "identity": "rim", - "map": "code" - }, - { - "identity": "w5", - "map": "what" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.code.id", - "path": "Observation.component.code.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.code.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.code.coding", - "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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.code.coding.id", - "path": "Observation.component.code.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.code.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.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 de-reference to some definition that establish 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" - } - ], - "fixedUri": "http://snomed.info/sct", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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 may not exceed 1MB in size", - "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" - } - ], - "fixedCode": "446661009", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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 may 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" - } - ], - "fixedString": "Visual analog scale score", - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "short": "Actual component result", - "definition": "The information determined as a result of making the observation, if the information has a simple value.", - "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. 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 boolean values use valueCodeableConcept and select codes from <http://hl7.org/fhir/ValueSet/v2-0136> (these \"yes/no\" concepts can be mapped to the display name \"true/false\" or other mutually exclusive terms that may be needed\"). The element, Observation.value[x], has a variable name depending on the type as follows: valueQuantity, valueCodeableConcept, valueRatio, valueChoice, valuePeriod, valueSampleData, or valueString (the name format is \"'value' + the type name\" with a capital on the first letter of the type).", - "requirements": "An observation exists to have a value, though it may 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" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - }, - { - "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)" - } - ], - "isSummary": true, - "mapping": [ - { - "identity": "rim", - "map": "n/a" - }, - { - "identity": "v2", - "map": "SN (see also Range) or CQ" - }, - { - "identity": "rim", - "map": "PQ, IVL<PQ>, 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:GeneralHealth.dataAbsentReason", - "path": "Observation.component.dataAbsentReason", - "short": "Why the component 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 \"test not done\". The 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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.", - "valueSetReference": { - "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" - } - }, - "mapping": [ - { - "identity": "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:GeneralHealth.dataAbsentReason.id", - "path": "Observation.component.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.dataAbsentReason.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.dataAbsentReason.coding", - "path": "Observation.component.dataAbsentReason.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.dataAbsentReason.coding.id", - "path": "Observation.component.dataAbsentReason.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.dataAbsentReason.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.dataAbsentReason.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.dataAbsentReason.coding.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.dataAbsentReason.coding.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.dataAbsentReason.coding.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.dataAbsentReason.coding.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation", - "path": "Observation.component.interpretation", - "short": "High, low, normal, etc.", - "definition": "The assessment made based on the result of the observation. Intended as a simple compact code often placed adjacent to the result value in reports and flow sheets to signal the meaning/normalcy status of the result. Otherwise known as abnormal flag.", - "comment": "The component interpretation applies only to the individual component value. For an overall interpretation all components together use thes Observation.interpretation element.", - "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": "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "binding": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", - "valueString": "ObservationInterpretation" - } - ], - "strength": "extensible", - "description": "Codes identifying interpretations of observations.", - "valueSetReference": { - "reference": "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:GeneralHealth.interpretation.id", - "path": "Observation.component.interpretation.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.interpretation.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.interpretation.coding", - "path": "Observation.component.interpretation.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 translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings.", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation.coding.id", - "path": "Observation.component.interpretation.coding.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.", - "comment": "Note that FHIR strings may not exceed 1MB in size", - "min": 0, - "max": "1", - "base": { - "path": "Element.id", - "min": 0, - "max": "1" - }, - "type": [ - { - "code": "string" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "mapping": [ - { - "identity": "rim", - "map": "n/a" - } - ] - }, - { - "id": "Observation.component:GeneralHealth.interpretation.coding.extension", - "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. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", - "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", - "alias": [ - "extensions", - "user content" - ], - "min": 0, - "max": "*", - "base": { - "path": "Element.extension", - "min": 0, - "max": "*" - }, - "type": [ - { - "code": "Extension" - } - ], - "condition": [ - "ele-1" - ], - "constraint": [ - { - "key": "ele-1", - "severity": "error", - "human": "All FHIR elements must have a @value or children", - "expression": "hasValue() | (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": "Observation.component:GeneralHealth.interpretation.coding.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 de-reference to some definition that establish 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation.coding.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation.coding.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 may not exceed 1MB in size", - "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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation.coding.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 may 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.interpretation.coding.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 - i.e. 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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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() | (children().count() > id.count())", - "xpath": "@value|f:*|h:div" - } - ], - "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:GeneralHealth.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 may 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.code.coding.system", - "path": "Observation.code.coding.system", - "fixedUri": "http://snomed.info/sct" - }, - { - "id": "Observation.code.coding.code", - "path": "Observation.code.coding.code", - "fixedCode": "444060007" - }, - { - "id": "Observation.code.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.code.coding.display", - "fixedString": "Disease activity score in rheumatoid arthritis using C-reactive protein (observable entity)" - }, - { - "id": "Observation.code.text", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.code.text", - "short": "DAS28 Observable" - }, - { - "id": "Observation.subject", - "path": "Observation.subject", - "short": "Observation of Danish patient", - "min": 1, - "type": [ - { - "code": "Reference", - "targetProfile": "http://AAUprofiles/StructureDefinition/DanishPatient", - "aggregation": [ - "referenced" - ] - } - ] - }, - { - "id": "Observation.performer", - "path": "Observation.performer", - "short": "The practioner is responsible for the observation", - "min": 1, - "max": "1", - "type": [ - { - "code": "Reference", - "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner", - "aggregation": [ - "referenced" - ] - } - ] - }, - { - "id": "Observation.value[x]:valueQuantity", - "path": "Observation.valueQuantity", - "sliceName": "valueQuantity", - "short": "CalculatedDAS28score", - "min": 1, - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "valueQuantity:valueQuantity.value", - "path": "Observation.valueQuantity.value", - "minValueDecimal": 0, - "maxValueDecimal": 10 - }, - { - "id": "Observation.bodySite", - "path": "Observation.bodySite", - "max": "0" - }, - { - "id": "Observation.device", - "path": "Observation.device", - "max": "0" - }, - { - "id": "Observation.related", - "path": "Observation.related", - "max": "56" - }, - { - "id": "Observation.related.target", - "path": "Observation.related.target", - "type": [ - { - "code": "Reference", - "targetProfile": "http://aauprofiles/StructureDefinition/JointSymptomsObservation", - "aggregation": [ - "contained" - ] - } - ] - }, - { - "id": "Observation.component", - "path": "Observation.component", - "slicing": { - "discriminator": [ - { - "type": "type", - "path": "code.coding.code" - } - ], - "rules": "open" - } - }, - { - "id": "Observation.component:CRP", - "path": "Observation.component", - "sliceName": "CRP", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:CRP.code.coding.system", - "path": "Observation.component.code.coding.system", - "fixedUri": "http://snomed.info/sct" - }, - { - "id": "Observation.component:CRP.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "55235003" - }, - { - "id": "Observation.component:CRP.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "type": [ - { - "code": "Quantity" - } - ] - }, - { - "id": "valueQuantity:valueQuantity.unit", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.valueQuantity.unit", - "fixedString": "mg/L" - }, - { - "id": "valueQuantity:valueQuantity.system", - "path": "Observation.component.valueQuantity.system", - "fixedUri": "http://unitsofmeasssure.org" - }, - { - "id": "valueQuantity:valueQuantity.code", - "path": "Observation.component.valueQuantity.code", - "fixedCode": "mg/L" - }, - { - "id": "Observation.component:GeneralHealth", - "path": "Observation.component", - "sliceName": "GeneralHealth", - "min": 1, - "max": "1" - }, - { - "id": "Observation.component:GeneralHealth.code.coding.system", - "path": "Observation.component.code.coding.system", - "fixedUri": "http://snomed.info/sct" - }, - { - "id": "Observation.component:GeneralHealth.code.coding.code", - "path": "Observation.component.code.coding.code", - "fixedCode": "446661009" - }, - { - "id": "Observation.component:GeneralHealth.code.coding.display", - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", - "valueBoolean": true - } - ], - "path": "Observation.component.code.coding.display", - "fixedString": "Visual analog scale score" - }, - { - "id": "Observation.component:GeneralHealth.value[x]:valueQuantity", - "path": "Observation.component.valueQuantity", - "sliceName": "valueQuantity", - "type": [ - { - "code": "Quantity" - } - ] - } - ] - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type-profile.xml deleted file mode 100644 index 8e6c5eae1..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type-profile.xml +++ /dev/null @@ -1,94 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="slice-by-polymorphic-type"/> - <url value="http://hl7.org/fhir/StructureDefinition/slice-by-polymorphic-type"/> - <name value="Test slicing by polymorphic type"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Communication"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Communication"/> - <derivation value="constraint"/> - <snapshot> - <element id="Communication"> - <path value="Communication"/> - </element> - <element id="Communication.payload"> - <path value="Communication.payload"/> - <slicing> - <discriminator> - <type value="type"/> - <path value="content"/> - </discriminator> - <rules value="closed"/> - </slicing> - </element> - <element id="Communication.payload:string"> - <path value="Communication.payload"/> - <sliceName value="string"/> - <max value="1"/> - </element> - <element id="Communication.payload:string.contentString"> - <path value="Communication.payload.contentString"/> - <comment value="Foo"/> - <min value="1"/> - <type> - <code value="string"/> - </type> - </element> - <element id="Communication.payload:attachment"> - <path value="Communication.payload"/> - <sliceName value="attachment"/> - <max value="20"/> - </element> - <element id="Communication.payload:attachment.contentAttachment"> - <path value="Communication.payload.contentAttachment"/> - <comment value="Bar"/> - <min value="1"/> - <type> - <code value="Attachment"/> - </type> - </element> - </snapshot> - <differential> - <element id="Communication"> - <path value="Communication"/> - </element> - <element id="Communication.payload"> - <path value="Communication.payload"/> - <slicing> - <discriminator> - <type value="type"/> - <path value="content"/> - </discriminator> - <rules value="closed"/> - </slicing> - </element> - <element id="Communication.payload:string"> - <path value="Communication.payload"/> - <sliceName value="string"/> - <max value="1"/> - </element> - <element id="Communication.payload:string.contentString"> - <path value="Communication.payload.contentString"/> - <comment value="Foo"/> - <min value="1"/> - <type> - <code value="string"/> - </type> - </element> - <element id="Communication.payload:attachment"> - <path value="Communication.payload"/> - <sliceName value="attachment"/> - <max value="20"/> - </element> - <element id="Communication.payload:attachment.contentAttachment"> - <path value="Communication.payload.contentAttachment"/> - <comment value="Bar"/> - <min value="1"/> - <type> - <code value="Attachment"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type.xml deleted file mode 100644 index 7badb61ad..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type.xml +++ /dev/null @@ -1,12 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Communication xmlns="http://hl7.org/fhir"> - <status value="completed"/> - <payload> - <contentString value="someString"/> - </payload> - <payload> - <contentAttachment> - <title value="someAttachment"/> - </contentAttachment> - </payload> -</Communication> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2-profile.xml deleted file mode 100644 index a5fcf199b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2-profile.xml +++ /dev/null @@ -1,40 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="slice-by-polymorphic-type2-profile"/> - <url value="http://hl7.org/fhir/StructureDefinition/slice-by-polymorphic-type2-profile"/> - <name value="SliceByPolymorphicType2Profile"/> - <title value="Test slicing by polymorphic type"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="PlanDefinition"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PlanDefinition"/> - <derivation value="constraint"/> - <differential> - <element id="PlanDefinition"> - <path value="PlanDefinition"/> - </element> - <element id="PlanDefinition.goal"> - <path value="PlanDefinition.goal"/> - </element> - <element id="PlanDefinition.goal.target"> - <path value="PlanDefinition.goal.target"/> - </element> - <element id="PlanDefinition.goal.target.detail[x]"> - <path value="PlanDefinition.goal.target.detail[x]"/> - <type> - <code value="CodeableConcept"/> - </type> - <type> - <code value="Range"/> - </type> - </element> - <element id="PlanDefinition.goal.target.detailCodeableConcept"> - <path value="PlanDefinition.goal.target.detailCodeableConcept"/> - <type> - <code value="CodeableConcept"/> - </type> - <mustSupport value="true"/> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2.xml deleted file mode 100644 index 18d834624..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-by-polymorphic-type2.xml +++ /dev/null @@ -1,16 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!--<PlanDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../../../../../FHIR/schema/fhir-single.xsd">--> -<PlanDefinition xmlns="http://hl7.org/fhir"> - <id value="slice-by-polymorphic-type2"/> - <status value="active"/> - <goal> - <description> - <text value="Some goal"/> - </description> - <target> - <detailCodeableConcept> - <text value="Some Text"/> - </detailCodeableConcept> - </target> - </goal> -</PlanDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-patient.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-patient.xml deleted file mode 100644 index c63361b7c..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-patient.xml +++ /dev/null @@ -1,13 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<Patient xmlns="http://hl7.org/fhir"> - <!-- Simple example to test validation against --> - <id value="slice-profile-and-local-patient"/> - <identifier> - <type> - <coding> - <system value="http://terminology.hl7.org/CodeSystem/v2-0203"/> - <code value="MR"/> - </coding> - </type> - </identifier> -</Patient> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-profile.xml deleted file mode 100644 index 757697b96..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slice-profile-and-local-profile.xml +++ /dev/null @@ -1,56 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="slice-profile-and-local-profile"/> - <url value="http://hl7.org/fhir/StructureDefinition/slice-profile-and-local-profile"/> - <name value="slice-profile-and-local-profile"/> - <status value="draft"/> - <description value="Profile to test validation when slice has both a profile declaration and local constraints"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <differential> - <element id="Patient"> - <path value="Patient"/> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="type.coding.system"/> - </discriminator> - <discriminator> - <type value="value"/> - <path value="type.coding.code"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.identifier:foo"> - <path value="Patient.identifier"/> - <sliceName value="foo"/> - <min value="1"/> - <type> - <code value="Identifier"/> - <!-- This profile isn't actually declaring anything new - but it's enough for test purposes. In practice, it would point to something useful --> - <profile value="http://hl7.org/fhir/StructureDefinition/Identifier"/> - </type> - </element> - <element id="Patient.identifier:foo.type"> - <path value="Patient.identifier.type"/> - </element> - <element id="Patient.identifier:foo.type.coding"> - <path value="Patient.identifier.type.coding"/> - </element> - <element id="Patient.identifier:foo.type.coding.system"> - <path value="Patient.identifier.type.coding.system"/> - <fixedUri value="http://terminology.hl7.org/CodeSystem/v2-0203"/> - </element> - <element id="Patient.identifier:foo.type.coding.code"> - <path value="Patient.identifier.type.coding.code"/> - <fixedUri value="MR"/> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.profile.xml deleted file mode 100644 index 23522953a..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.profile.xml +++ /dev/null @@ -1,13313 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" standalone="no"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="CareConnect-Patient-1"/> - <meta> - <lastUpdated value="2018-03-28T13:59:04.782+01:00"/> - </meta> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"> - <valueCode value="pa"/> - </extension> - <url value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/> - <version value="1.2.0"/> - <name value="CareConnect-Patient-1"/> - <status value="draft"/> - <date value="2018-11-05"/> - <publisher value="HL7 UK"/> - <contact> - <name value="INTEROPen"/> - <telecom> - <system value="email"/> - <value value="admin@interopen.org"/> - <use value="work"/> - </telecom> - </contact> - <description value="The Patient resource represents the patient involved in the provision of healthcare related services."/> - <purpose value="CURATED BY INTEROPen see: http://www.interopen.org/careconnect-curation-methodology/"/> - <copyright value="Copyright © 2016 HL7 UK Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html"/> - <fhirVersion value="3.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Patient"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Patient"/> - <derivation value="constraint"/> - <snapshot> - <element id="Patient"> - <path value="Patient"/> - <short value="Information about an individual or animal receiving health care services"/> - <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services."/> - <alias value="SubjectOfCare Client Resident"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Resource"/> - <min value="0"/> - <max value="*"/> - </base> - <constraint> - <key value="dom-2"/> - <severity value="error"/> - <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/> - <expression value="contained.contained.empty()"/> - <xpath value="not(parent::f:contained and f:contained)"/> - </constraint> - <constraint> - <key value="dom-1"/> - <severity value="error"/> - <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/> - <expression value="contained.text.empty()"/> - <xpath value="not(parent::f:contained and f:text)"/> - </constraint> - <constraint> - <key value="dom-4"/> - <severity value="error"/> - <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/> - <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/> - <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/> - </constraint> - <constraint> - <key value="dom-3"/> - <severity value="error"/> - <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/> - <expression value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()"/> - <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="Entity. Role, or Act"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Patient[classCode=PAT]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="ClinicalDocument.recordTarget.patientRole"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="administrative.individual"/> - </mapping> - </element> - <element id="Patient.id"> - <path value="Patient.id"/> - <short value="Logical id of this artifact"/> - <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="id"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.meta"> - <path value="Patient.meta"/> - <short value="Metadata about the resource"/> - <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Resource.meta"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Meta"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.implicitRules"> - <path value="Patient.implicitRules"/> - <short value="A set of rules under which this content was created"/> - <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content."/> - <comment value="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. This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Resource.implicitRules"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.language"> - <path value="Patient.language"/> - <short value="Language of the resource content"/> - <definition value="The base language in which the resource is written."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Resource.language"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueReference> - <reference value="http://hl7.org/fhir/ValueSet/all-languages"/> - </valueReference> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Language"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="extensible"/> - <description value="A human language."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/languages"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.text"> - <path value="Patient.text"/> - <short value="Text summary of the resource, for human interpretation"/> - <definition value="A human-readable narrative that contains a summary of the resource, and may 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 value="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 in formation is added later."/> - <alias value="narrative"/> - <alias value="html"/> - <alias value="xhtml"/> - <alias value="display"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Narrative"/> - </type> - <condition value="ele-1"/> - <condition value="dom-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Act.text?"/> - </mapping> - </element> - <element id="Patient.contained"> - <path value="Patient.contained"/> - <short value="Contained, inline Resources"/> - <definition value="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 value="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."/> - <alias value="inline resources"/> - <alias value="anonymous resources"/> - <alias value="contained resources"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.contained"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Resource"/> - </type> - <mapping> - <identity value="rim"/> - <map value="Entity. Role, or Act"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension"> - <path value="Patient.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:ethnicCategory"> - <path value="Patient.extension"/> - <sliceName value="ethnicCategory"/> - <short value="Ethnic category"/> - <definition value="The ethnicity of the subject."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EthnicCategory-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:religiousAffiliation"> - <path value="Patient.extension"/> - <sliceName value="religiousAffiliation"/> - <short value="Religious affiliation"/> - <definition value="The religious affiliation of the subject."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ReligiousAffiliation-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:patient-cadavericDonor"> - <path value="Patient.extension"/> - <sliceName value="patient-cadavericDonor"/> - <short value="Flag indicating whether the patient authorized the donation of body parts after death"/> - <definition value="Flag indicating whether the patient authorized the donation of body parts after death."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:residentialStatus"> - <path value="Patient.extension"/> - <sliceName value="residentialStatus"/> - <short value="The residential status of the patient"/> - <definition value="The residential status of the patient. For example if this patient is a UK resident."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ResidentialStatus-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:treatmentCategory"> - <path value="Patient.extension"/> - <sliceName value="treatmentCategory"/> - <short value="The treatment category for this patient"/> - <definition value="The treatment category for this patient. For example if this patient is entitled to free healthcare treatment."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-TreatmentCategory-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:nhsCommunication"> - <path value="Patient.extension"/> - <sliceName value="nhsCommunication"/> - <short value="NHS communication preferences for a resource"/> - <definition value="Communication preferences including a list of Languages which may be used for communication"/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSCommunication-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:birthPlace"> - <path value="Patient.extension"/> - <sliceName value="birthPlace"/> - <short value="Birth Place: The registered place of birth of the patient."/> - <definition value="Birth Place: The registered place of birth of the patient. A sytem may use the address.text if they don't store the birthPlace address in discrete elements."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/birthPlace"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:nominatedPharmacy"> - <path value="Patient.extension"/> - <sliceName value="nominatedPharmacy"/> - <short value="A patient's nominated pharmacy"/> - <definition value="A patient's nominated pharmacy."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NominatedPharmacy-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.extension:deathNotificationStatus"> - <path value="Patient.extension"/> - <sliceName value="deathNotificationStatus"/> - <short value="Representation of a patient’s death notification status (as held on Personal Demographics Service (PDS))"/> - <definition value="This extension is constrained to represent a patient’s death notification (as held on Personal Demographics Service (PDS))."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="DomainResource.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DeathNotificationStatus-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.modifierExtension"> - <path value="Patient.modifierExtension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Extensions that cannot be ignored"/> - <definition value="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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="DomainResource.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <isModifier value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="openAtEnd"/> - </slicing> - <short value="An identifier for this patient"/> - <definition value="An identifier for this patient."/> - <requirements value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment value="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 value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description value="Identifies the purpose for this identifier, if known ."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier.type"> - <path value="Patient.identifier.type"/> - <short value="Description of identifier"/> - <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> - <comment value="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 value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="extensible"/> - <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/identifier-type"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier.system"> - <path value="Patient.identifier.system"/> - <short value="The namespace for the identifier value"/> - <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> - <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <example> - <label value="General"/> - <valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier.value"> - <path value="Patient.identifier.value"/> - <short value="The value that is unique"/> - <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition value="Time period during which identifier is/was valid for use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber"> - <path value="Patient.identifier"/> - <sliceName value="nhsNumber"/> - <short value="The patient's NHS number"/> - <definition value="An identifier for this patient."/> - <requirements value="Patients are almost always assigned specific numerical identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.identifier"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".id"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="id"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.id"> - <path value="Patient.identifier.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.extension:nhsNumberVerificationStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="nhsNumberVerificationStatus"/> - <short value="NHS number verification status"/> - <definition value="The verification/tracing status of the NHS number."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.use"> - <path value="Patient.identifier.use"/> - <short value="usual | official | temp | secondary (If known)"/> - <definition value="The purpose of this identifier."/> - <comment value="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 value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierUse"/> - </extension> - <strength value="required"/> - <description value="Identifies the purpose for this identifier, if known ."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/identifier-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.type"> - <path value="Patient.identifier.type"/> - <short value="Description of identifier"/> - <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose."/> - <comment value="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 value="Allows users to make use of identifiers when the identifier system is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="IdentifierType"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="extensible"/> - <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/identifier-type"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.code or implied by context"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.system"> - <path value="Patient.identifier.system"/> - <short value="The namespace for the identifier value"/> - <definition value="Establishes the namespace for the value - that is, a URL that describes a set values that are unique."/> - <comment value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier"/> - <requirements value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <fixedUri value="https://fhir.nhs.uk/Id/nhs-number"/> - <example> - <label value="General"/> - <valueUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.4 / EI-2-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.root or Role.id.root"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierType"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.value"> - <path value="Patient.identifier.value"/> - <short value="The value that is unique"/> - <definition value="The portion of the identifier typically relevant to the user and which is unique within the context of the system."/> - <comment value="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 value="1"/> - <max value="1"/> - <base> - <path value="Identifier.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="123456"/> - </example> - <example> - <label value="General"/> - <valueString value="1234567890"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.1 / EI.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.period"> - <path value="Patient.identifier.period"/> - <short value="Time period when id is/was valid for use"/> - <definition value="Time period during which identifier is/was valid for use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Identifier.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.7 + CX.8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="Role.effectiveTime or implied by context"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.identifier:nhsNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <short value="Organization that issued id (may be just text)"/> - <definition value="Organization that issued/manages the identifier."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Identifier.assigner"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX.4 / (CX.4,CX.9,CX.10)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./IdentifierIssuingAuthority"/> - </mapping> - </element> - <element id="Patient.active"> - <path value="Patient.active"/> - <short value="Whether this patient's record is in active use"/> - <definition value="Whether this patient record is in active use."/> - <comment value="Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient This element is labeled as a modifier because when the patient record is marked as not active it is not expected to be used/referenced without being changed back to active."/> - <requirements value="Need to be able to mark a patient record as not to be used because it was created in error."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.active"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <defaultValueBoolean value='true'/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="statusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="w5"/> - <map value="status"/> - </mapping> - </element> - <element id="Patient.name"> - <path value="Patient.name"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="use"/> - </discriminator> - <ordered value="false"/> - <rules value="openAtEnd"/> - </slicing> - <short value="A name associated with the patient"/> - <definition value="A name associated with the individual."/> - <comment value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name."/> - <min value="1"/> - <max value="*"/> - <base> - <path value="Patient.name"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="HumanName"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="EN (actually, PN)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ProviderName"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-5, PID-9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.name"/> - </mapping> - </element> - <element id="Patient.name.id"> - <path value="Patient.name.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name.extension"> - <path value="Patient.name.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name.use"> - <path value="Patient.name.use"/> - <short value="usual | official | temp | nickname | anonymous | old | maiden"/> - <definition value="Identifies the purpose for this name."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <description value="The use of a human name"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/name-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.7, but often indicated by which field contains the name"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./NamePurpose"/> - </mapping> - </element> - <element id="Patient.name.text"> - <path value="Patient.name.text"/> - <short value="Text representation of the full name"/> - <definition value="A full text representation of the name."/> - <comment value="Can provide both a text representation and structured parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="implied by XPN.11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - </element> - <element id="Patient.name.family"> - <path value="Patient.name.family"/> - <short value="Family name (often called 'Surname')"/> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."/> - <comment value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."/> - <alias value="surname"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.family"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.1/FN.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = FAM]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./FamilyName"/> - </mapping> - </element> - <element id="Patient.name.given"> - <path value="Patient.name.given"/> - <short value="Given names (not always 'first'). Includes middle names"/> - <definition value="Given name."/> - <comment value="If only initials are recorded, they may be used in place of the full name. Not called 'first name' since given names do not always come first."/> - <alias value="first name"/> - <alias value="middle name"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.given"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Given Names appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.2 + XPN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = GIV]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./GivenNames"/> - </mapping> - </element> - <element id="Patient.name.prefix"> - <path value="Patient.name.prefix"/> - <short value="Parts that come before the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.prefix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Prefixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = PFX]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./TitleCode"/> - </mapping> - </element> - <element id="Patient.name.suffix"> - <path value="Patient.name.suffix"/> - <short value="Parts that come after the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.suffix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Suffixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN/4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = SFX]"/> - </mapping> - </element> - <element id="Patient.name.period"> - <path value="Patient.name.period"/> - <short value="Time period when name was/is in use"/> - <definition value="Indicates the period of time when this name was valid for the named person."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows names to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.13 + XPN.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.name.period.id"> - <path value="Patient.name.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name.period.extension"> - <path value="Patient.name.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name.period.start"> - <path value="Patient.name.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.name.period.end"> - <path value="Patient.name.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.name:official"> - <path value="Patient.name"/> - <sliceName value="official"/> - <short value="A name associated with the patient"/> - <definition value="A name associated with the individual."/> - <comment value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.name"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="HumanName"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="EN (actually, PN)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ProviderName"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-5, PID-9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.name"/> - </mapping> - </element> - <element id="Patient.name:official.id"> - <path value="Patient.name.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name:official.extension"> - <path value="Patient.name.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name:official.use"> - <path value="Patient.name.use"/> - <short value="usual | official | temp | nickname | anonymous | old | maiden"/> - <definition value="Identifies the purpose for this name."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="HumanName.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <fixedCode value="official"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <description value="The use of a human name"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-NameUse-1"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.7, but often indicated by which field contains the name"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./NamePurpose"/> - </mapping> - </element> - <element id="Patient.name:official.text"> - <path value="Patient.name.text"/> - <short value="Text representation of the full name"/> - <definition value="A full text representation of the name."/> - <comment value="Can provide both a text representation and structured parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="implied by XPN.11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - </element> - <element id="Patient.name:official.family"> - <path value="Patient.name.family"/> - <short value="Family name (often called 'Surname')"/> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."/> - <comment value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."/> - <alias value="surname"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="HumanName.family"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.1/FN.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = FAM]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./FamilyName"/> - </mapping> - </element> - <element id="Patient.name:official.given"> - <path value="Patient.name.given"/> - <short value="Given names (not always 'first'). Includes middle names"/> - <definition value="Given name."/> - <comment value="If only initials are recorded, they may be used in place of the full name. Not called 'first name' since given names do not always come first."/> - <alias value="first name"/> - <alias value="middle name"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.given"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Given Names appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.2 + XPN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = GIV]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./GivenNames"/> - </mapping> - </element> - <element id="Patient.name:official.prefix"> - <path value="Patient.name.prefix"/> - <short value="Parts that come before the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.prefix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Prefixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = PFX]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./TitleCode"/> - </mapping> - </element> - <element id="Patient.name:official.suffix"> - <path value="Patient.name.suffix"/> - <short value="Parts that come after the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.suffix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Suffixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN/4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = SFX]"/> - </mapping> - </element> - <element id="Patient.name:official.period"> - <path value="Patient.name.period"/> - <short value="Time period when name was/is in use"/> - <definition value="Indicates the period of time when this name was valid for the named person."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows names to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.13 + XPN.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.name:official.period.id"> - <path value="Patient.name.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name:official.period.extension"> - <path value="Patient.name.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name:official.period.start"> - <path value="Patient.name.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.name:official.period.end"> - <path value="Patient.name.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.name:other"> - <path value="Patient.name"/> - <sliceName value="other"/> - <short value="A name associated with the patient"/> - <definition value="A name associated with the individual."/> - <comment value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.name"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="HumanName"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="EN (actually, PN)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ProviderName"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-5, PID-9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.name"/> - </mapping> - </element> - <element id="Patient.name:other.id"> - <path value="Patient.name.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name:other.extension"> - <path value="Patient.name.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name:other.use"> - <path value="Patient.name.use"/> - <short value="usual | official | temp | nickname | anonymous | old | maiden"/> - <definition value="Identifies the purpose for this name."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="HumanName.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <description value="The use of a human name"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-NameUse-1"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.7, but often indicated by which field contains the name"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./NamePurpose"/> - </mapping> - </element> - <element id="Patient.name:other.text"> - <path value="Patient.name.text"/> - <short value="Text representation of the full name"/> - <definition value="A full text representation of the name."/> - <comment value="Can provide both a text representation and structured parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="implied by XPN.11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - </element> - <element id="Patient.name:other.family"> - <path value="Patient.name.family"/> - <short value="Family name (often called 'Surname')"/> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."/> - <comment value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."/> - <alias value="surname"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.family"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.1/FN.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = FAM]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./FamilyName"/> - </mapping> - </element> - <element id="Patient.name:other.given"> - <path value="Patient.name.given"/> - <short value="Given names (not always 'first'). Includes middle names"/> - <definition value="Given name."/> - <comment value="If only initials are recorded, they may be used in place of the full name. Not called 'first name' since given names do not always come first."/> - <alias value="first name"/> - <alias value="middle name"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.given"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Given Names appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.2 + XPN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = GIV]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./GivenNames"/> - </mapping> - </element> - <element id="Patient.name:other.prefix"> - <path value="Patient.name.prefix"/> - <short value="Parts that come before the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.prefix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Prefixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = PFX]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./TitleCode"/> - </mapping> - </element> - <element id="Patient.name:other.suffix"> - <path value="Patient.name.suffix"/> - <short value="Parts that come after the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.suffix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Suffixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN/4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = SFX]"/> - </mapping> - </element> - <element id="Patient.name:other.period"> - <path value="Patient.name.period"/> - <short value="Time period when name was/is in use"/> - <definition value="Indicates the period of time when this name was valid for the named person."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows names to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.13 + XPN.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.name:other.period.id"> - <path value="Patient.name.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.name:other.period.extension"> - <path value="Patient.name.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.name:other.period.start"> - <path value="Patient.name.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.name:other.period.end"> - <path value="Patient.name.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.telecom"> - <path value="Patient.telecom"/> - <short value="A contact detail for the individual"/> - <definition value="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted."/> - <comment value="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 may 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 value="People have (primary) ways to contact them in some way such as phone, email."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.telecom"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="ContactPoint"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="cpt-2"/> - <severity value="error"/> - <human value="A system is required if a value is provided."/> - <expression value="value.empty() or system.exists()"/> - <xpath value="not(exists(f:value)) or exists(f:system)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="TEL"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ContactPoint"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-13, PID-14, PID-40"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="telecom"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".telecom"/> - </mapping> - </element> - <element id="Patient.telecom.id"> - <path value="Patient.telecom.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.telecom.extension"> - <path value="Patient.telecom.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.telecom.system"> - <path value="Patient.telecom.system"/> - <short value="phone | fax | email | pager | url | sms | other"/> - <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="ContactPoint.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <condition value="cpt-2"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactPointSystem"/> - </extension> - <strength value="required"/> - <description value="Telecommunications form for contact point"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/contact-point-system"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./scheme"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./ContactPointType"/> - </mapping> - </element> - <element id="Patient.telecom.value"> - <path value="Patient.telecom.value"/> - <short value="The actual contact point details"/> - <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)."/> - <comment value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value."/> - <requirements value="Need to support legacy numbers that are not in a tightly controlled format."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="ContactPoint.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.1 (or XTN.12)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./url"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.telecom.use"> - <path value="Patient.telecom.use"/> - <short value="home | work | temp | old | mobile - purpose of this contact point"/> - <definition value="Identifies the purpose for the contact point."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old."/> - <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactPointUse"/> - </extension> - <strength value="required"/> - <description value="Use of contact point"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/contact-point-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.2 - but often indicated by field"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./ContactPointPurpose"/> - </mapping> - </element> - <element id="Patient.telecom.rank"> - <path value="Patient.telecom.rank"/> - <short value="Specify preferred order of use (1 = highest)"/> - <definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values."/> - <comment value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.rank"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="positiveInt"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.telecom.period"> - <path value="Patient.telecom.period"/> - <short value="Time period when the contact point was/is in use"/> - <definition value="Time period when the contact point was/is in use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.telecom.period.id"> - <path value="Patient.telecom.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.telecom.period.extension"> - <path value="Patient.telecom.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.telecom.period.start"> - <path value="Patient.telecom.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.telecom.period.end"> - <path value="Patient.telecom.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.gender"> - <path value="Patient.gender"/> - <short value="male | female | other | unknown"/> - <definition value="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes."/> - <comment value="The gender may 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 M and F, though the vast majority of systems and contexts only support M and F. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, 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, chromosonal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a 'hard' error."/> - <requirements value="Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.gender"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <description value="The gender of a person used for administrative purposes."/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-8"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.administrativeGenderCode"/> - </mapping> - </element> - <element id="Patient.birthDate"> - <path value="Patient.birthDate"/> - <short value="The date of birth for the individual"/> - <definition value="The date of birth for the individual."/> - <comment value="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 maternaty/infant care systems)."/> - <requirements value="Age of the individual drives many clinical processes."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.birthDate"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="date"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.birthTime"/> - </mapping> - <mapping> - <identity value="loinc"/> - <map value="21112-8"/> - </mapping> - </element> - <element id="Patient.birthDate.id"> - <path value="Patient.birthDate.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.birthDate.extension"> - <path value="Patient.birthDate.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.birthDate.extension:patient-birthTime"> - <path value="Patient.birthDate.extension"/> - <sliceName value="patient-birthTime"/> - <short value="The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively."/> - <definition value="The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.birthDate.value"> - <path value="Patient.birthDate.value"/> - <representation value="xmlAttr"/> - <short value="Primitive value for date"/> - <definition value="Primitive value for date"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="date.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex"> - <valueString value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?"/> - </extension> - <code> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type"> - <valueString value="string"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type"> - <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type"> - <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date"/> - </extension> - </code> - </type> - </element> - <element id="Patient.deceased[x]"> - <path value="Patient.deceased[x]"/> - <short value="Indicates if the individual is deceased or not"/> - <definition value="Indicates if the individual is deceased or not."/> - <comment value="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. 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."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.deceased[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-30 (bool) and PID-29 (datetime)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.address"> - <path value="Patient.address"/> - <short value="Addresses for the individual"/> - <definition value="Addresses for the individual."/> - <comment value="Patient may have multiple addresses with different uses or applicable periods."/> - <requirements value="May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.address"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Address"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Address"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="addr"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".addr"/> - </mapping> - </element> - <element id="Patient.address.id"> - <path value="Patient.address.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.address.extension"> - <path value="Patient.address.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.address.use"> - <path value="Patient.address.use"/> - <short value="home | work | temp | old - purpose of this address"/> - <definition value="The purpose of this address."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows an appropriate address to be chosen from a list of many."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="home"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AddressUse"/> - </extension> - <strength value="required"/> - <description value="The use of an address"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/address-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./AddressPurpose"/> - </mapping> - </element> - <element id="Patient.address.type"> - <path value="Patient.address.type"/> - <short value="postal | physical | both"/> - <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="both"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AddressType"/> - </extension> - <strength value="required"/> - <description value="The type of an address (physical / postal)"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/address-type"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.18"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="address type parameter"/> - </mapping> - </element> - <element id="Patient.address.text"> - <path value="Patient.address.text"/> - <short value="Text representation of the address"/> - <definition value="A full text representation of the address."/> - <comment value="Can provide both a text representation and parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="137 Nowhere Street, Erewhon 9132"/> - </example> - <example> - <label value="General"/> - <valueString value="42 Grove Street, Overtown, West Yorkshire, LS21 1PF"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="address label parameter"/> - </mapping> - </element> - <element id="Patient.address.line"> - <path value="Patient.address.line"/> - <short value="Street name, number, direction & P.O. Box etc."/> - <definition value="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="home | work | temp | old - purpose of this address."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Address.line"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="The order in which lines should appear in an address label"/> - <example> - <label value="General"/> - <valueString value="137 Nowhere Street"/> - </example> - <example> - <label value="General"/> - <valueString value="42 Grove Street"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = AL]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="street"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StreetAddress (newline delimitted)"/> - </mapping> - </element> - <element id="Patient.address.city"> - <path value="Patient.address.city"/> - <short value="Name of city, town etc."/> - <definition value="The name of the city, town, village or other community or delivery center."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Municpality"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.city"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="Erewhon"/> - </example> - <example> - <label value="General"/> - <valueString value="Overtown"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CTY]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="locality"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Jurisdiction"/> - </mapping> - </element> - <element id="Patient.address.district"> - <path value="Patient.address.district"/> - <short value="District name (aka county)"/> - <definition value="The name of the administrative area (county)."/> - <comment value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead."/> - <alias value="County"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.district"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="Madison"/> - </example> - <example> - <label value="General"/> - <valueString value="West Yorkshire"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CNT | CPA]"/> - </mapping> - </element> - <element id="Patient.address.state"> - <path value="Patient.address.state"/> - <short value="Sub-unit of country (abbreviations ok)"/> - <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Province"/> - <alias value="Territory"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.state"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = STA]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="region"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Region"/> - </mapping> - </element> - <element id="Patient.address.postalCode"> - <path value="Patient.address.postalCode"/> - <short value="Postal code for area"/> - <definition value="A postal code designating a region defined by the postal service."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Zip"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.postalCode"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="9132"/> - </example> - <example> - <label value="General"/> - <valueString value="LS21 1PF"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = ZIP]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./PostalIdentificationCode"/> - </mapping> - </element> - <element id="Patient.address.country"> - <path value="Patient.address.country"/> - <short value="Country (e.g. can be ISO 3166 2 or 3 letter code)"/> - <definition value="Country - a nation as commonly understood or generally accepted."/> - <comment value="ISO 3166 3 letter codes can be used in place of a full country name."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.country"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="GBR"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CNT]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="country"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Country"/> - </mapping> - </element> - <element id="Patient.address.period"> - <path value="Patient.address.period"/> - <short value="Time period when address was/is in use"/> - <definition value="Time period when address was/is in use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows addresses to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <example> - <label value="General"/> - <valuePeriod> - <start value="2010-03-23"/> - <end value="2010-07-01"/> - </valuePeriod> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.12 / XAD.13 + XAD.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.address.period.id"> - <path value="Patient.address.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.address.period.extension"> - <path value="Patient.address.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.address.period.start"> - <path value="Patient.address.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.address.period.end"> - <path value="Patient.address.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.maritalStatus"> - <path value="Patient.maritalStatus"/> - <short value="Marital (civil) status of a patient"/> - <definition value="This field contains a patient's most recent marital (civil) status."/> - <comment value="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 value="Most, if not all systems capture it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.maritalStatus"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="MaritalStatus"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <description value="The domestic partnership status of a person."/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-MaritalStatus-1"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-16"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN]/maritalStatusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".patient.maritalStatusCode"/> - </mapping> - </element> - <element id="Patient.maritalStatus.id"> - <path value="Patient.maritalStatus.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.maritalStatus.extension"> - <path value="Patient.maritalStatus.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding"> - <path value="Patient.maritalStatus.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.id"> - <path value="Patient.maritalStatus.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.extension"> - <path value="Patient.maritalStatus.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.system"> - <path value="Patient.maritalStatus.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <example> - <label value="General"/> - <valueUri value="http://hl7.org/fhir/v3/MaritalStatus"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.version"> - <path value="Patient.maritalStatus.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.code"> - <path value="Patient.maritalStatus.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.maritalStatus.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.maritalStatus.coding.userSelected"> - <path value="Patient.maritalStatus.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.maritalStatus.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.maritalStatus.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.multipleBirth[x]"> - <path value="Patient.multipleBirth[x]"/> - <short value="Whether patient is part of a multiple birth"/> - <definition value="Indicates whether the patient is part of a multiple (bool) or indicates the actual birth order (integer)."/> - <comment value="Where the valueInteger is provided, the number is the birth number in the sequence. E.g. The middle birth in tripplets would be valueInteger=2 and the third born would have valueInteger=3 If a bool value was provided for this tripplets examle, then all 3 patient records would have valueBool=true (the ordering is not indicated)."/> - <requirements value="For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.multipleBirth[x]"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <type> - <code value="integer"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-24 (bool), PID-25 (integer)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.photo"> - <path value="Patient.photo"/> - <short value="Image of the patient"/> - <definition value="Image of the patient."/> - <comment value="When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as 'Attachment'."/> - <requirements value="Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.photo"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Attachment"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="att-1"/> - <severity value="error"/> - <human value="It the Attachment has data, it SHALL have a contentType"/> - <expression value="data.empty() or contentType.exists()"/> - <xpath value="not(exists(f:data)) or exists(f:contentType)"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="ED/RP"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="ED"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="OBX-5 - needs a profile"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.photo.id"> - <path value="Patient.photo.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.photo.extension"> - <path value="Patient.photo.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.photo.contentType"> - <path value="Patient.photo.contentType"/> - <short value="Mime type of the content, with charset etc."/> - <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Processors of the data need to be able to know how to interpret the data."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.contentType"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="text/plain; charset=UTF-8, image/png"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="MimeType"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <description value="The mime type of an attachment. Any valid mime type is allowed."/> - <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./mediaType, ./charset"/> - </mapping> - </element> - <element id="Patient.photo.language"> - <path value="Patient.photo.language"/> - <short value="Human language of the content (BCP-47)"/> - <definition value="The human language of the content. The value can be any valid value according to BCP 47."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Users need to be able to choose between the languages in a set of attachments."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.language"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="en-AU"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueReference> - <reference value="http://hl7.org/fhir/ValueSet/all-languages"/> - </valueReference> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Language"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="extensible"/> - <description value="A human language."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/languages"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./language"/> - </mapping> - </element> - <element id="Patient.photo.data"> - <path value="Patient.photo.data"/> - <short value="Data inline, base64ed"/> - <definition value="The actual data of the attachment - a sequence of bytes. In XML, represented using base64."/> - <comment value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON."/> - <requirements value="The data needs to able to be transmitted inline."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.data"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="base64Binary"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="ED.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./data"/> - </mapping> - </element> - <element id="Patient.photo.url"> - <path value="Patient.photo.url"/> - <short value="Uri where the data can be found"/> - <definition value="An alternative location where the data can be accessed."/> - <comment value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data."/> - <requirements value="The data needs to be transmitted by reference."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.url"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <example> - <label value="General"/> - <valueUri value="http://www.acme.com/logo-small.png"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./reference/literal"/> - </mapping> - </element> - <element id="Patient.photo.size"> - <path value="Patient.photo.size"/> - <short value="Number of bytes of content (if url provided)"/> - <definition value="The number of bytes of data that make up this attachment (before base64 encoding, if that is done)."/> - <comment value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference."/> - <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.size"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="unsignedInt"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A (needs data type R3 proposal)"/> - </mapping> - </element> - <element id="Patient.photo.hash"> - <path value="Patient.photo.hash"/> - <short value="Hash of the data (sha-1, base64ed)"/> - <definition value="The calculated hash of the data using SHA-1. Represented using base64."/> - <comment value="The hash is calculated on the data prior to base64 encoding, if the data is based64 encoded."/> - <requirements value="Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.hash"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="base64Binary"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm='SHA-1']"/> - </mapping> - </element> - <element id="Patient.photo.title"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.photo.title"/> - <short value="Label to display in place of the data"/> - <definition value="A label or set of text to display in place of the data."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.title"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="Official Corporate Logo"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./title/data"/> - </mapping> - </element> - <element id="Patient.photo.creation"> - <path value="Patient.photo.creation"/> - <short value="Date attachment was first created"/> - <definition value="The date that the attachment was first created."/> - <requirements value="This is often tracked as an integrity issue for use of the attachment."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Attachment.creation"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A (needs data type R3 proposal)"/> - </mapping> - </element> - <element id="Patient.contact"> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Contact"/> - </extension> - <path value="Patient.contact"/> - <short value="A contact party (e.g. guardian, partner, friend) for the patient"/> - <definition value="A contact party (e.g. guardian, partner, friend) for the patient."/> - <comment value="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 value="Need to track people you can contact about the patient."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="pat-1"/> - <severity value="error"/> - <human value="SHALL at least contain a contact's details or a reference to an organization"/> - <expression value="name.exists() or telecom.exists() or address.exists() or organization.exists()"/> - <xpath value="exists(f:name) or exists(f:telecom) or exists(f:address) or exists(f:organization)"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.id"> - <path value="Patient.contact.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.extension"> - <path value="Patient.contact.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.modifierExtension"> - <path value="Patient.contact.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.relationship"> - <path value="Patient.contact.relationship"/> - <short value="The kind of relationship"/> - <definition value="The nature of the relationship between the patient and the contact person."/> - <comment value="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 value="Used to determine which contact person is the most relevant to approach, depending on circumstances."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact.relationship"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactRelationship"/> - </extension> - <strength value="extensible"/> - <description value="The nature of the relationship between a patient and a contact person for that patient."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/v2-0131"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-7, NK1-3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.relationship.id"> - <path value="Patient.contact.relationship.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.relationship.extension"> - <path value="Patient.contact.relationship.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding"> - <path value="Patient.contact.relationship.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.id"> - <path value="Patient.contact.relationship.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.extension"> - <path value="Patient.contact.relationship.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.system"> - <path value="Patient.contact.relationship.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.version"> - <path value="Patient.contact.relationship.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.code"> - <path value="Patient.contact.relationship.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.contact.relationship.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.contact.relationship.coding.userSelected"> - <path value="Patient.contact.relationship.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.contact.relationship.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.contact.relationship.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.contact.name"> - <path value="Patient.contact.name"/> - <short value="A name associated with the contact person"/> - <definition value="A name associated with the contact person."/> - <comment value="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 may or may 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 value="Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.contact.name"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="HumanName"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="EN (actually, PN)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ProviderName"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="name"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.name.id"> - <path value="Patient.contact.name.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.name.extension"> - <path value="Patient.contact.name.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.name.use"> - <path value="Patient.contact.name.use"/> - <short value="usual | official | temp | nickname | anonymous | old | maiden"/> - <definition value="Identifies the purpose for this name."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="HumanName.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <description value="The use of a human name"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/name-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.7, but often indicated by which field contains the name"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./NamePurpose"/> - </mapping> - </element> - <element id="Patient.contact.name.text"> - <path value="Patient.contact.name.text"/> - <short value="Text representation of the full name"/> - <definition value="A full text representation of the name."/> - <comment value="Can provide both a text representation and structured parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="implied by XPN.11"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - </element> - <element id="Patient.contact.name.family"> - <path value="Patient.contact.name.family"/> - <short value="Family name (often called 'Surname')"/> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father."/> - <comment value="Family Name may be decomposed into specific parts using extensions (de, nl, es related cultures)."/> - <alias value="surname"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.family"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.1/FN.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = FAM]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./FamilyName"/> - </mapping> - </element> - <element id="Patient.contact.name.given"> - <path value="Patient.contact.name.given"/> - <short value="Given names (not always 'first'). Includes middle names"/> - <definition value="Given name."/> - <comment value="If only initials are recorded, they may be used in place of the full name. Not called 'first name' since given names do not always come first."/> - <alias value="first name"/> - <alias value="middle name"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.given"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Given Names appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.2 + XPN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = GIV]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./GivenNames"/> - </mapping> - </element> - <element id="Patient.contact.name.prefix"> - <path value="Patient.contact.name.prefix"/> - <short value="Parts that come before the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.prefix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Prefixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = PFX]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./TitleCode"/> - </mapping> - </element> - <element id="Patient.contact.name.suffix"> - <path value="Patient.contact.name.suffix"/> - <short value="Parts that come after the name"/> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="HumanName.suffix"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="Suffixes appear in the correct order for presenting the name"/> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN/4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./part[partType = SFX]"/> - </mapping> - </element> - <element id="Patient.contact.name.period"> - <path value="Patient.contact.name.period"/> - <short value="Time period when name was/is in use"/> - <definition value="Indicates the period of time when this name was valid for the named person."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows names to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="HumanName.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XPN.13 + XPN.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.contact.name.period.id"> - <path value="Patient.contact.name.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.name.period.extension"> - <path value="Patient.contact.name.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.name.period.start"> - <path value="Patient.contact.name.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.contact.name.period.end"> - <path value="Patient.contact.name.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.contact.telecom"> - <path value="Patient.contact.telecom"/> - <short value="A contact detail for the person"/> - <definition value="A contact detail for the person, e.g. a telephone number or an email address."/> - <comment value="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 value="People have (primary) ways to contact them in some way such as phone, email."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.contact.telecom"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="ContactPoint"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="cpt-2"/> - <severity value="error"/> - <human value="A system is required if a value is provided."/> - <expression value="value.empty() or system.exists()"/> - <xpath value="not(exists(f:value)) or exists(f:system)"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="TEL"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="ContactPoint"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-5, NK1-6, NK1-40"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="telecom"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.telecom.id"> - <path value="Patient.contact.telecom.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.telecom.extension"> - <path value="Patient.contact.telecom.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.telecom.system"> - <path value="Patient.contact.telecom.system"/> - <short value="phone | fax | email | pager | url | sms | other"/> - <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <condition value="cpt-2"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactPointSystem"/> - </extension> - <strength value="required"/> - <description value="Telecommunications form for contact point"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/contact-point-system"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./scheme"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./ContactPointType"/> - </mapping> - </element> - <element id="Patient.contact.telecom.value"> - <path value="Patient.contact.telecom.value"/> - <short value="The actual contact point details"/> - <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)."/> - <comment value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value."/> - <requirements value="Need to support legacy numbers that are not in a tightly controlled format."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.value"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.1 (or XTN.12)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./url"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Value"/> - </mapping> - </element> - <element id="Patient.contact.telecom.use"> - <path value="Patient.contact.telecom.use"/> - <short value="home | work | temp | old | mobile - purpose of this contact point"/> - <definition value="Identifies the purpose for the contact point."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old."/> - <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="ContactPointUse"/> - </extension> - <strength value="required"/> - <description value="Use of contact point"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/contact-point-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XTN.2 - but often indicated by field"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./ContactPointPurpose"/> - </mapping> - </element> - <element id="Patient.contact.telecom.rank"> - <path value="Patient.contact.telecom.rank"/> - <short value="Specify preferred order of use (1 = highest)"/> - <definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values."/> - <comment value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.rank"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="positiveInt"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.telecom.period"> - <path value="Patient.contact.telecom.period"/> - <short value="Time period when the contact point was/is in use"/> - <definition value="Time period when the contact point was/is in use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="ContactPoint.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>']"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.contact.telecom.period.id"> - <path value="Patient.contact.telecom.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.telecom.period.extension"> - <path value="Patient.contact.telecom.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.telecom.period.start"> - <path value="Patient.contact.telecom.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.contact.telecom.period.end"> - <path value="Patient.contact.telecom.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.contact.address"> - <path value="Patient.contact.address"/> - <short value="Address for the contact person"/> - <definition value="Address for the contact person."/> - <comment value="Note: address is for postal addresses, not physical locations."/> - <requirements value="Need to keep track where the contact person can be contacted per postal mail or visited."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.address"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Address"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Address"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="addr"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.address.id"> - <path value="Patient.contact.address.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.address.extension"> - <path value="Patient.contact.address.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.address.use"> - <path value="Patient.contact.address.use"/> - <short value="home | work | temp | old - purpose of this address"/> - <definition value="The purpose of this address."/> - <comment value="This is labeled as 'Is Modifier' because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old."/> - <requirements value="Allows an appropriate address to be chosen from a list of many."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.use"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="home"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AddressUse"/> - </extension> - <strength value="required"/> - <description value="The use of an address"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/address-use"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./AddressPurpose"/> - </mapping> - </element> - <element id="Patient.contact.address.type"> - <path value="Patient.contact.address.type"/> - <short value="postal | physical | both"/> - <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.type"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <example> - <label value="General"/> - <valueCode value="both"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AddressType"/> - </extension> - <strength value="required"/> - <description value="The type of an address (physical / postal)"/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/address-type"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.18"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="unique(./use)"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="address type parameter"/> - </mapping> - </element> - <element id="Patient.contact.address.text"> - <path value="Patient.contact.address.text"/> - <short value="Text representation of the address"/> - <definition value="A full text representation of the address."/> - <comment value="Can provide both a text representation and parts."/> - <requirements value="A renderable, unencoded form."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="137 Nowhere Street, Erewhon 9132"/> - </example> - <example> - <label value="General"/> - <valueString value="120, Grove Street, Overtown, West Yorkshire, LS21 1PT"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./formatted"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="address label parameter"/> - </mapping> - </element> - <element id="Patient.contact.address.line"> - <path value="Patient.contact.address.line"/> - <short value="Street name, number, direction & P.O. Box etc."/> - <definition value="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="home | work | temp | old - purpose of this address."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Address.line"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="string"/> - </type> - <orderMeaning value="The order in which lines should appear in an address label"/> - <example> - <label value="General"/> - <valueString value="137 Nowhere Street"/> - </example> - <example> - <label value="General"/> - <valueString value="120, Grove Street"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = AL]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="street"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StreetAddress (newline delimitted)"/> - </mapping> - </element> - <element id="Patient.contact.address.city"> - <path value="Patient.contact.address.city"/> - <short value="Name of city, town etc."/> - <definition value="The name of the city, town, village or other community or delivery center."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Municpality"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.city"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="Erewhon"/> - </example> - <example> - <label value="General"/> - <valueString value="Overtown"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CTY]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="locality"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Jurisdiction"/> - </mapping> - </element> - <element id="Patient.contact.address.district"> - <path value="Patient.contact.address.district"/> - <short value="District name (aka county)"/> - <definition value="The name of the administrative area (county)."/> - <comment value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead."/> - <alias value="County"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.district"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="Madison"/> - </example> - <example> - <label value="General"/> - <valueString value="West Yorkshire"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.9"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CNT | CPA]"/> - </mapping> - </element> - <element id="Patient.contact.address.state"> - <path value="Patient.contact.address.state"/> - <short value="Sub-unit of country (abbreviations ok)"/> - <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Province"/> - <alias value="Territory"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.state"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = STA]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="region"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Region"/> - </mapping> - </element> - <element id="Patient.contact.address.postalCode"> - <path value="Patient.contact.address.postalCode"/> - <short value="Postal code for area"/> - <definition value="A postal code designating a region defined by the postal service."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <alias value="Zip"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.postalCode"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="9132"/> - </example> - <example> - <label value="General"/> - <valueString value="LS21 1PT"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.5"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = ZIP]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./PostalIdentificationCode"/> - </mapping> - </element> - <element id="Patient.contact.address.country"> - <path value="Patient.contact.address.country"/> - <short value="Country (e.g. can be ISO 3166 2 or 3 letter code)"/> - <definition value="Country - a nation as commonly understood or generally accepted."/> - <comment value="ISO 3166 3 letter codes can be used in place of a full country name."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.country"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <example> - <label value="General"/> - <valueString value="GBR"/> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="AD.part[parttype = CNT]"/> - </mapping> - <mapping> - <identity value="vcard"/> - <map value="country"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./Country"/> - </mapping> - </element> - <element id="Patient.contact.address.period"> - <path value="Patient.contact.address.period"/> - <short value="Time period when address was/is in use"/> - <definition value="Time period when address was/is in use."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <requirements value="Allows addresses to be placed in historical context."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Address.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <example> - <label value="General"/> - <valuePeriod> - <start value="2010-03-23"/> - <end value="2010-07-01"/> - </valuePeriod> - </example> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="XAD.12 / XAD.13 + XAD.14"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./usablePeriod[type='IVL<TS>'"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="./StartDate and ./EndDate"/> - </mapping> - </element> - <element id="Patient.contact.address.period.id"> - <path value="Patient.contact.address.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.address.period.extension"> - <path value="Patient.contact.address.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.address.period.start"> - <path value="Patient.contact.address.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.contact.address.period.end"> - <path value="Patient.contact.address.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.contact.gender"> - <path value="Patient.contact.gender"/> - <short value="male | female | other | unknown"/> - <definition value="Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Needed to address the person correctly."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.gender"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <description value="The gender of a person used for administrative purposes."/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-15"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.organization"> - <path value="Patient.contact.organization"/> - <short value="Organization that is associated with the contact"/> - <definition value="Organization on behalf of which the contact is acting or for which the contact is working."/> - <comment value="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 value="For guardians or business related contacts, the organization is relevant."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.organization"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - <condition value="ele-1"/> - <condition value="pat-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="NK1-13, NK1-30, NK1-31, NK1-32, NK1-41"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="scoper"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.organization.id"> - <path value="Patient.contact.organization.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.organization.extension"> - <path value="Patient.contact.organization.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.organization.reference"> - <path value="Patient.contact.organization.reference"/> - <short value="Literal reference, Relative, internal or absolute URL"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.reference"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <condition value="ref-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.organization.identifier"> - <path value="Patient.contact.organization.identifier"/> - <short value="Logical reference, when literal reference is not known"/> - <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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 value="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. When 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 Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Reference.identifier"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".identifier"/> - </mapping> - </element> - <element id="Patient.contact.organization.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.contact.organization.display"/> - <short value="Text alternative for the resource"/> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.period"> - <path value="Patient.contact.period"/> - <short value="The period during which this contact person or organization is valid to be contacted relating to this patient"/> - <definition value="The period during which this contact person or organization is valid to be contacted relating to this patient."/> - <comment value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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'). If duration is required, specify the type as Interval|Duration."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.contact.period"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Period"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="per-1"/> - <severity value="error"/> - <human value="If present, start SHALL have a lower value than end"/> - <expression value="start.empty() or end.empty() or (start <= end)"/> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="IVL<TS>[lowClosed='true' and highClosed='true'] or URG<TS>[lowClosed='true' and highClosed='true']"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="effectiveTime"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.period.id"> - <path value="Patient.contact.period.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.contact.period.extension"> - <path value="Patient.contact.period.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.contact.period.start"> - <path value="Patient.contact.period.start"/> - <short value="Starting time with inclusive boundary"/> - <definition value="The start of the period. The boundary is inclusive."/> - <comment value="If the low element is missing, the meaning is that the low boundary is not known."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.start"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./low"/> - </mapping> - </element> - <element id="Patient.contact.period.end"> - <path value="Patient.contact.period.end"/> - <short value="End time with inclusive boundary, if not ongoing"/> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time."/> - <comment value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Period.end"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="dateTime"/> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing"/> - <condition value="ele-1"/> - <condition value="per-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="DR.2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./high"/> - </mapping> - </element> - <element id="Patient.animal"> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Animal"/> - </extension> - <path value="Patient.animal"/> - <short value="This patient is known to be an animal (non-human)"/> - <definition value="This patient is known to be an animal."/> - <comment value="The animal element is labeled 'Is Modifier' since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records. The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required. (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)."/> - <requirements value="Many clinical systems are extended to care for animal patients as well as human."/> - <min value="0"/> - <max value="0"/> - <base> - <path value="Patient.animal"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=ANM]"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.id"> - <path value="Patient.animal.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.extension"> - <path value="Patient.animal.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.modifierExtension"> - <path value="Patient.animal.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.species"> - <path value="Patient.animal.species"/> - <short value="E.g. Dog, Cow"/> - <definition value="Identifies the high level taxonomic categorization of the kind of animal."/> - <comment value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification. It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species. (The common example is that the word 'Hereford' does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for 'Hereford Cattle Breed' does.)."/> - <requirements value="Need to know what kind of animal."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.animal.species"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalSpecies"/> - </extension> - <strength value="example"/> - <description value="The species of an animal."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/animal-species"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-35"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.species.id"> - <path value="Patient.animal.species.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.species.extension"> - <path value="Patient.animal.species.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.species.coding"> - <path value="Patient.animal.species.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.id"> - <path value="Patient.animal.species.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.extension"> - <path value="Patient.animal.species.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.system"> - <path value="Patient.animal.species.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.version"> - <path value="Patient.animal.species.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.code"> - <path value="Patient.animal.species.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.species.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.animal.species.coding.userSelected"> - <path value="Patient.animal.species.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.animal.species.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.species.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.animal.breed"> - <path value="Patient.animal.breed"/> - <short value="E.g. Poodle, Angus"/> - <definition value="Identifies the detailed categorization of the kind of animal."/> - <comment value="Breed MAY be used to provide further taxonomic or non-taxonomic classification. It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type."/> - <requirements value="May need to know the specific kind within the species."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.animal.breed"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalBreed"/> - </extension> - <strength value="example"/> - <description value="The breed of an animal."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/animal-breeds"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-37"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.breed.id"> - <path value="Patient.animal.breed.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.breed.extension"> - <path value="Patient.animal.breed.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding"> - <path value="Patient.animal.breed.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.id"> - <path value="Patient.animal.breed.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.extension"> - <path value="Patient.animal.breed.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.system"> - <path value="Patient.animal.breed.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.version"> - <path value="Patient.animal.breed.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.code"> - <path value="Patient.animal.breed.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.breed.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.animal.breed.coding.userSelected"> - <path value="Patient.animal.breed.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.animal.breed.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.breed.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus"> - <path value="Patient.animal.genderStatus"/> - <short value="E.g. Neutered, Intact"/> - <definition value="Indicates the current state of the animal's reproductive organs."/> - <comment value="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 value="Gender status can affect housing and animal behavior."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.animal.genderStatus"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AnimalGenderStatus"/> - </extension> - <strength value="example"/> - <description value="The state of the animal's reproductive organs."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/animal-genderstatus"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="N/A"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="genderStatusCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.id"> - <path value="Patient.animal.genderStatus.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.extension"> - <path value="Patient.animal.genderStatus.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding"> - <path value="Patient.animal.genderStatus.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.id"> - <path value="Patient.animal.genderStatus.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.extension"> - <path value="Patient.animal.genderStatus.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.system"> - <path value="Patient.animal.genderStatus.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.version"> - <path value="Patient.animal.genderStatus.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.code"> - <path value="Patient.animal.genderStatus.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.genderStatus.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.coding.userSelected"> - <path value="Patient.animal.genderStatus.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.animal.genderStatus.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.animal.genderStatus.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.communication"> - <path value="Patient.communication"/> - <short value="A list of Languages which may be used to communicate with the patient about his or her health"/> - <definition value="Languages which may be used to communicate with the patient about his or her health."/> - <comment value="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 value="If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest."/> - <min value="0"/> - <max value="0"/> - <base> - <path value="Patient.communication"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="LanguageCommunication"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="patient.languageCommunication"/> - </mapping> - </element> - <element id="Patient.communication.id"> - <path value="Patient.communication.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication.extension"> - <path value="Patient.communication.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.communication.modifierExtension"> - <path value="Patient.communication.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.communication.language"> - <path value="Patient.communication.language"/> - <short value="The language which can be used to communicate with the patient about his or her health"/> - <definition value="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 value="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 value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.communication.language"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="CodeableConcept"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet"> - <valueReference> - <reference value="http://hl7.org/fhir/ValueSet/all-languages"/> - </valueReference> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="Language"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="extensible"/> - <description value="A human language."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/languages"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-15, LAN-2"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".languageCode"/> - </mapping> - </element> - <element id="Patient.communication.language.id"> - <path value="Patient.communication.language.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication.language.extension"> - <path value="Patient.communication.language.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.communication.language.coding"> - <path value="Patient.communication.language.coding"/> - <short value="Code defined by a terminology system"/> - <definition value="A reference to a code defined by a terminology system."/> - <comment value="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 value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="CodeableConcept.coding"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Coding"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1-8, C*E.10-22"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="union(., ./translation)"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.id"> - <path value="Patient.communication.language.coding.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.extension"> - <path value="Patient.communication.language.coding.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.system"> - <path value="Patient.communication.language.coding.system"/> - <short value="Identity of the terminology system"/> - <definition value="The identification of the code system that defines the meaning of the symbol in the code."/> - <comment value="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 de-reference to some definition that establish the system clearly and unambiguously."/> - <requirements value="Need to be unambiguous about the source of the definition of the symbol."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.system"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="uri"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.3"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystem"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.version"> - <path value="Patient.communication.language.coding.version"/> - <short value="Version of the system - if relevant"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.version"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.7"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./codeSystemVersion"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.code"> - <path value="Patient.communication.language.coding.code"/> - <short value="Symbol in syntax defined by the system"/> - <definition value="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 value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to refer to a particular code in the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.code"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./code"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.communication.language.coding.display"/> - <short value="Representation defined by the system"/> - <definition value="A representation of the meaning of the code in the system, following the rules of the system."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Coding.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.2 - but note this is not well followed"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CV.displayName"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName"/> - </mapping> - </element> - <element id="Patient.communication.language.coding.userSelected"> - <path value="Patient.communication.language.coding.userSelected"/> - <short value="If this coding was chosen directly by the user"/> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)."/> - <comment value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Coding.userSelected"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="Sometimes implied by being first"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="CD.codingRationale"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="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 ]"/> - </mapping> - </element> - <element id="Patient.communication.language.text"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.communication.language.text"/> - <short value="Plain text representation of the concept"/> - <definition value="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 value="Very often the text is the same as a displayName of one of the codings."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="CodeableConcept.text"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="C*E.9. But note many systems use C*E.2 for this"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="./originalText[mediaType/code='text/plain']/data"/> - </mapping> - <mapping> - <identity value="orim"/> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"/> - </mapping> - </element> - <element id="Patient.communication.preferred"> - <path value="Patient.communication.preferred"/> - <short value="Language preference indicator"/> - <definition value="Indicates whether or not the patient prefers this language (over other languages he masters up a certain level)."/> - <comment value="This language is specifically identified for communicating healthcare information."/> - <requirements value="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 value="0"/> - <max value="1"/> - <base> - <path value="Patient.communication.preferred"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="boolean"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-15"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="preferenceInd"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".preferenceInd"/> - </mapping> - </element> - <element id="Patient.generalPractitioner"> - <path value="Patient.generalPractitioner"/> - <short value="Patient's nominated primary care provider"/> - <definition value="Patient's nominated care provider."/> - <comment value="This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity 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."/> - <alias value="careProvider"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.generalPractitioner"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PD1-4"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="subjectOf.CareEvent.performer.AssignedEntity"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.generalPractitioner.id"> - <path value="Patient.generalPractitioner.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.generalPractitioner.extension"> - <path value="Patient.generalPractitioner.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.generalPractitioner.reference"> - <path value="Patient.generalPractitioner.reference"/> - <short value="Literal reference, Relative, internal or absolute URL"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.reference"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <condition value="ref-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.generalPractitioner.identifier"> - <path value="Patient.generalPractitioner.identifier"/> - <short value="Logical reference, when literal reference is not known"/> - <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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 value="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. When 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 Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Reference.identifier"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".identifier"/> - </mapping> - </element> - <element id="Patient.generalPractitioner.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.generalPractitioner.display"/> - <short value="Text alternative for the resource"/> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.managingOrganization"> - <path value="Patient.managingOrganization"/> - <short value="Organization that is the custodian of the patient record"/> - <definition value="Organization that is the custodian of the patient record."/> - <comment value="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 value="Need to know who recognizes this patient record, manages and updates it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Patient.managingOrganization"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="scoper"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value=".providerOrganization"/> - </mapping> - </element> - <element id="Patient.managingOrganization.id"> - <path value="Patient.managingOrganization.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.managingOrganization.extension"> - <path value="Patient.managingOrganization.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.managingOrganization.reference"> - <path value="Patient.managingOrganization.reference"/> - <short value="Literal reference, Relative, internal or absolute URL"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.reference"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <condition value="ref-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.managingOrganization.identifier"> - <path value="Patient.managingOrganization.identifier"/> - <short value="Logical reference, when literal reference is not known"/> - <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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 value="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. When 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 Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Reference.identifier"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".identifier"/> - </mapping> - </element> - <element id="Patient.managingOrganization.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.managingOrganization.display"/> - <short value="Text alternative for the resource"/> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link"> - <path value="Patient.link"/> - <short value="Link to another patient resource that concerns the same actual person"/> - <definition value="Link to another patient resource that concerns the same actual patient."/> - <comment value="There is no assumption that linked patient records have mutual links. This element is labelled as a modifier because it may 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'."/> - <requirements value="There are multiple usecases: * Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers."/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Patient.link"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="BackboneElement"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="outboundLink"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.id"> - <path value="Patient.link.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.extension"> - <path value="Patient.link.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.modifierExtension"> - <path value="Patient.link.modifierExtension"/> - <short value="Extensions that cannot be ignored"/> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <alias value="modifiers"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="BackboneElement.modifierExtension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <isModifier value='true'/> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.other"> - <path value="Patient.link.other"/> - <short value="The other patient or related person resource that the link refers to"/> - <definition value="The other patient resource that the link refers to."/> - <comment value="Referencing a RelatedPerson here removes the need to use a Person record to associate a Patient and RelatedPerson as the same individual."/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.link.other"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> - </type> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ref-1"/> - <severity value="error"/> - <human value="SHALL have a contained resource if a local reference is provided"/> - <expression value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))"/> - <xpath value="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, '#')])"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="PID-3, MRG-1"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="id"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.other.id"> - <path value="Patient.link.other.id"/> - <representation value="xmlAttr"/> - <short value="xml:id (or equivalent in JSON)"/> - <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Element.id"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - </element> - <element id="Patient.link.other.extension"> - <path value="Patient.link.other.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <description value="Extensions are always sliced by (at least) url"/> - <rules value="open"/> - </slicing> - <short value="Additional Content defined by implementations"/> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension."/> - <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone."/> - <alias value="extensions"/> - <alias value="user content"/> - <min value="0"/> - <max value="*"/> - <base> - <path value="Element.extension"/> - <min value="0"/> - <max value="*"/> - </base> - <type> - <code value="Extension"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <constraint> - <key value="ext-1"/> - <severity value="error"/> - <human value="Must have either extensions or value[x], not both"/> - <expression value="extension.exists() != value.exists()"/> - <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])"/> - </constraint> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.other.reference"> - <path value="Patient.link.other.reference"/> - <short value="Literal reference, Relative, internal or absolute URL"/> - <definition value="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 value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.reference"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <condition value="ref-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.other.identifier"> - <path value="Patient.link.other.identifier"/> - <short value="Logical reference, when literal reference is not known"/> - <definition value="An identifier for the other resource. This is used when there is no way to reference the other resource directly, either because the entity 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 value="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. When 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 Applications converting a logical reference to a literal reference may choose to leave the logical reference present, or remove it."/> - <min value="0"/> - <max value="1"/> - <base> - <path value="Reference.identifier"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="Identifier"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="v2"/> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]"/> - </mapping> - <mapping> - <identity value="servd"/> - <map value="Identifier"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value=".identifier"/> - </mapping> - </element> - <element id="Patient.link.other.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.link.other.display"/> - <short value="Text alternative for the resource"/> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference."/> - <comment value="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 value="0"/> - <max value="1"/> - <base> - <path value="Reference.display"/> - <min value="0"/> - <max value="1"/> - </base> - <type> - <code value="string"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="N/A"/> - </mapping> - </element> - <element id="Patient.link.type"> - <path value="Patient.link.type"/> - <short value="replaced-by | replaces | refer | seealso - type of link"/> - <definition value="The type of link between this patient resource and another patient resource."/> - <comment value="Note that FHIR strings may not exceed 1MB in size"/> - <min value="1"/> - <max value="1"/> - <base> - <path value="Patient.link.type"/> - <min value="1"/> - <max value="1"/> - </base> - <type> - <code value="code"/> - </type> - <condition value="ele-1"/> - <constraint> - <key value="ele-1"/> - <severity value="error"/> - <human value="All FHIR elements must have a @value or children"/> - <expression value="hasValue() | (children().count() > id.count())"/> - <xpath value="@value|f:*|h:div"/> - </constraint> - <isSummary value='true'/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="LinkType"/> - </extension> - <strength value="required"/> - <description value="The type of link between this patient resource and another patient resource."/> - <valueSetReference> - <reference value="http://hl7.org/fhir/ValueSet/link-type"/> - </valueSetReference> - </binding> - <mapping> - <identity value="rim"/> - <map value="n/a"/> - </mapping> - <mapping> - <identity value="rim"/> - <map value="typeCode"/> - </mapping> - <mapping> - <identity value="cda"/> - <map value="n/a"/> - </mapping> - </element> - </snapshot> - <differential> - <element id="Patient.extension"> - <path value="Patient.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.extension:ethnicCategory"> - <path value="Patient.extension"/> - <sliceName value="ethnicCategory"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-EthnicCategory-1"/> - </type> - </element> - <element id="Patient.extension:religiousAffiliation"> - <path value="Patient.extension"/> - <sliceName value="religiousAffiliation"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ReligiousAffiliation-1"/> - </type> - </element> - <element id="Patient.extension:patient-cadavericDonor"> - <path value="Patient.extension"/> - <sliceName value="patient-cadavericDonor"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor"/> - </type> - </element> - <element id="Patient.extension:residentialStatus"> - <path value="Patient.extension"/> - <sliceName value="residentialStatus"/> - <short value="The residential status of the patient"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-ResidentialStatus-1"/> - </type> - </element> - <element id="Patient.extension:treatmentCategory"> - <path value="Patient.extension"/> - <sliceName value="treatmentCategory"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-TreatmentCategory-1"/> - </type> - </element> - <element id="Patient.extension:nhsCommunication"> - <path value="Patient.extension"/> - <sliceName value="nhsCommunication"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSCommunication-1"/> - </type> - </element> - <element id="Patient.extension:birthPlace"> - <path value="Patient.extension"/> - <sliceName value="birthPlace"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/birthPlace"/> - </type> - </element> - <element id="Patient.extension:nominatedPharmacy"> - <path value="Patient.extension"/> - <sliceName value="nominatedPharmacy"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NominatedPharmacy-1"/> - </type> - </element> - <element id="Patient.extension:deathNotificationStatus"> - <path value="Patient.extension"/> - <sliceName value="deathNotificationStatus"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-DeathNotificationStatus-1"/> - </type> - </element> - <element id="Patient.identifier"> - <path value="Patient.identifier"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="system"/> - </discriminator> - <ordered value="false"/> - <rules value="openAtEnd"/> - </slicing> - </element> - <element id="Patient.identifier:nhsNumber"> - <path value="Patient.identifier"/> - <sliceName value="nhsNumber"/> - <short value="The patient's NHS number"/> - <max value="1"/> - </element> - <element id="Patient.identifier:nhsNumber.extension"> - <path value="Patient.identifier.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.identifier:nhsNumber.extension:nhsNumberVerificationStatus"> - <path value="Patient.identifier.extension"/> - <sliceName value="nhsNumberVerificationStatus"/> - <min value="1"/> - <max value="1"/> - <type> - <code value="Extension"/> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1"/> - </type> - </element> - <element id="Patient.identifier:nhsNumber.system"> - <path value="Patient.identifier.system"/> - <min value="1"/> - <fixedUri value="https://fhir.nhs.uk/Id/nhs-number"/> - </element> - <element id="Patient.identifier:nhsNumber.value"> - <path value="Patient.identifier.value"/> - <min value="1"/> - <example> - <label value="General"/> - <valueString value="1234567890"/> - </example> - </element> - <element id="Patient.identifier:nhsNumber.assigner"> - <path value="Patient.identifier.assigner"/> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - </element> - <element id="Patient.name"> - <path value="Patient.name"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="use"/> - </discriminator> - <ordered value="false"/> - <rules value="openAtEnd"/> - </slicing> - <min value="1"/> - </element> - <element id="Patient.name:official"> - <path value="Patient.name"/> - <sliceName value="official"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.name:official.use"> - <path value="Patient.name.use"/> - <min value="1"/> - <fixedCode value="official"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-NameUse-1"/> - </valueSetReference> - </binding> - </element> - <element id="Patient.name:official.family"> - <path value="Patient.name.family"/> - <min value="1"/> - </element> - <element id="Patient.name:other"> - <path value="Patient.name"/> - <sliceName value="other"/> - </element> - <element id="Patient.name:other.use"> - <path value="Patient.name.use"/> - <min value="1"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="NameUse"/> - </extension> - <strength value="required"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-NameUse-1"/> - </valueSetReference> - </binding> - </element> - <element id="Patient.telecom.system"> - <path value="Patient.telecom.system"/> - <min value="1"/> - </element> - <element id="Patient.telecom.value"> - <path value="Patient.telecom.value"/> - <min value="1"/> - </element> - <element id="Patient.gender"> - <path value="Patient.gender"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"/> - </valueSetReference> - </binding> - </element> - <element id="Patient.birthDate.extension"> - <path value="Patient.birthDate.extension"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="url"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Patient.birthDate.extension:patient-birthTime"> - <path value="Patient.birthDate.extension"/> - <sliceName value="patient-birthTime"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime"/> - </type> - </element> - <element id="Patient.address.text"> - <path value="Patient.address.text"/> - <example> - <label value="General"/> - <valueString value="42 Grove Street, Overtown, West Yorkshire, LS21 1PF"/> - </example> - </element> - <element id="Patient.address.line"> - <path value="Patient.address.line"/> - <example> - <label value="General"/> - <valueString value="42 Grove Street"/> - </example> - </element> - <element id="Patient.address.city"> - <path value="Patient.address.city"/> - <example> - <label value="General"/> - <valueString value="Overtown"/> - </example> - </element> - <element id="Patient.address.district"> - <path value="Patient.address.district"/> - <example> - <label value="General"/> - <valueString value="West Yorkshire"/> - </example> - </element> - <element id="Patient.address.postalCode"> - <path value="Patient.address.postalCode"/> - <example> - <label value="General"/> - <valueString value="LS21 1PF"/> - </example> - </element> - <element id="Patient.address.country"> - <path value="Patient.address.country"/> - <example> - <label value="General"/> - <valueString value="GBR"/> - </example> - </element> - <element id="Patient.maritalStatus"> - <path value="Patient.maritalStatus"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="MaritalStatus"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-MaritalStatus-1"/> - </valueSetReference> - </binding> - </element> - <element id="Patient.maritalStatus.coding"> - <path value="Patient.maritalStatus.coding"/> - <min value="1"/> - <max value="1"/> - </element> - <element id="Patient.maritalStatus.coding.system"> - <path value="Patient.maritalStatus.coding.system"/> - <min value="1"/> - <example> - <label value="General"/> - <valueUri value="http://hl7.org/fhir/v3/MaritalStatus"/> - </example> - </element> - <element id="Patient.maritalStatus.coding.code"> - <path value="Patient.maritalStatus.coding.code"/> - <min value="1"/> - </element> - <element id="Patient.maritalStatus.coding.display"> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable"> - <valueBoolean value='true'/> - </extension> - <path value="Patient.maritalStatus.coding.display"/> - <min value="1"/> - </element> - <element id="Patient.contact.name"> - <path value="Patient.contact.name"/> - <min value="1"/> - </element> - <element id="Patient.contact.name.use"> - <path value="Patient.contact.name.use"/> - <min value="1"/> - </element> - <element id="Patient.contact.address.text"> - <path value="Patient.contact.address.text"/> - <example> - <label value="General"/> - <valueString value="120, Grove Street, Overtown, West Yorkshire, LS21 1PT"/> - </example> - </element> - <element id="Patient.contact.address.line"> - <path value="Patient.contact.address.line"/> - <example> - <label value="General"/> - <valueString value="120, Grove Street"/> - </example> - </element> - <element id="Patient.contact.address.city"> - <path value="Patient.contact.address.city"/> - <example> - <label value="General"/> - <valueString value="Overtown"/> - </example> - </element> - <element id="Patient.contact.address.district"> - <path value="Patient.contact.address.district"/> - <example> - <label value="General"/> - <valueString value="West Yorkshire"/> - </example> - </element> - <element id="Patient.contact.address.postalCode"> - <path value="Patient.contact.address.postalCode"/> - <example> - <label value="General"/> - <valueString value="LS21 1PT"/> - </example> - </element> - <element id="Patient.contact.address.country"> - <path value="Patient.contact.address.country"/> - <example> - <label value="General"/> - <valueString value="GBR"/> - </example> - </element> - <element id="Patient.contact.gender"> - <path value="Patient.contact.gender"/> - <binding> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName"> - <valueString value="AdministrativeGender"/> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding"> - <valueBoolean value='true'/> - </extension> - <strength value="required"/> - <valueSetReference> - <reference value="https://fhir.hl7.org.uk/STU3/ValueSet/CareConnect-AdministrativeGender-1"/> - </valueSetReference> - </binding> - </element> - <element id="Patient.contact.organization"> - <path value="Patient.contact.organization"/> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - </element> - <element id="Patient.animal"> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Animal"/> - </extension> - <path value="Patient.animal"/> - <max value="0"/> - </element> - <element id="Patient.communication"> - <path value="Patient.communication"/> - <max value="0"/> - </element> - <element id="Patient.generalPractitioner"> - <path value="Patient.generalPractitioner"/> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Practitioner-1"/> - </type> - </element> - <element id="Patient.managingOrganization"> - <path value="Patient.managingOrganization"/> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1"/> - </type> - </element> - <element id="Patient.link.other"> - <path value="Patient.link.other"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson"/> - </type> - <type> - <code value="Reference"/> - <targetProfile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.xml deleted file mode 100644 index 24dc3ca25..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-example-uk.xml +++ /dev/null @@ -1,809 +0,0 @@ -<Bundle xmlns="http://hl7.org/fhir"> - <id value="1099207a-18c3-4c38-b758-15c7a4d10f8b" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Message-Bundle-1" /> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122" /> - <value value="135515c5-9d2c-4479-ad3c-8ce769b354fe" /> - </identifier> - <type value="message" /> - <entry> - <fullUrl value="urn:uuid:ca5b12de-3d58-478f-90af-91d5834e1f44" /> - <resource> - <MessageHeader> - <id value="ca5b12de-3d58-478f-90af-91d5834e1f44" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-MessageHeader-2" /> - </meta> - <extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-ITK-MessageHandling-2"> - <extension url="BusAckRequested"> - <valueBoolean value="true" /> - </extension> - <extension url="InfAckRequested"> - <valueBoolean value="true" /> - </extension> - <extension url="RecipientType"> - <valueCoding> - <system value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-RecipientType-1" /> - <code value="FA" /> - <display value="For Action" /> - </valueCoding> - </extension> - <extension url="Priority"> - <valueCoding> - <system value="https://fhir.nhs.uk/STU3/CodeSystem/eRS-Priority-1" /> - <code value="routine" /> - <display value="Routine" /> - </valueCoding> - </extension> - <extension url="MessageDefinition"> - <valueReference> - <reference value="https://fhir.nhs.uk/STU3/MessageDefinition/ITK-DM-Immunization-MessageDefinition-1" /> - </valueReference> - </extension> - <extension url="SenderReference"> - <valueString value="urn:uuid:8b62d280-ec6e-4e5d-8c83-2a7f1a3d1706" /> - </extension> - <extension url="LocalExtension"> - <valueReference> - <reference value="urn:uuid:f9a9b89d-6090-4551-afa7-388c856e4935" /> - </valueReference> - </extension> - </extension> - <event> - <system value="https://fhir.nhs.uk/STU3/CodeSystem/ITK-MessageEvent-2" /> - <code value="ITK009D" /> - <display value="ITK Digital Medicine Immunization Document" /> - </event> - <receiver> - <reference value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - </receiver> - <sender> - <reference value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - </sender> - <timestamp value="2019-05-15T14:35:35.4858822+01:00" /> - <source> - <endpoint value="1.2.826.0.1285.0.2.0.107" /> - </source> - </MessageHeader> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <resource> - <Practitioner> - <id value="b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1" /> - </meta> - <identifier> - <system value="https://fhir.hl7.org.uk/Id/sds-user-id" /> - <value value="None" /> - </identifier> - <name> - <use value="usual" /> - <family value="Smith" /> - <given value="John" /> - <prefix value="Mr" /> - </name> - </Practitioner> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - <resource> - <Practitioner> - <id value="4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - <meta> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" /> - </meta> - <identifier> - <system value="https://fhir.nhs.uk/Id/ods-organization-code" /> - <value value="G1234" /> - </identifier> - </Practitioner> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:2e4a58de-65ae-463f-94b3-85990fdef626" /> - <resource> - <Bundle> - <id value="2e4a58de-65ae-463f-94b3-85990fdef626" /> - <meta> - <lastUpdated value="2019-05-15T14:35:35.487914+01:00" /> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/ITK-Document-Bundle-1" /> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122" /> - <value value="0e69e58b-ddf9-4f5e-af35-8f1a45d89bcd" /> - </identifier> - <type value="document" /> - <entry> - <fullUrl value="urn:uuid:3a032e97-de6a-4080-9943-7523f502ecb2" /> - <resource> - <Composition> - <id value="3a032e97-de6a-4080-9943-7523f502ecb2" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-DM-Immunization-Composition-1" /> - </meta> - <extension url="https://fhir.nhs.uk/STU3/StructureDefinition/Extension-CareSettingType-1"> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct" /> - <code value="310080006" /> - <display value="Pharmacy service" /> - </coding> - </valueCodeableConcept> - </extension> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122" /> - <value value="bb3cce4c-dd80-4301-a8ca-a5e9151f0894" /> - </identifier> - <status value="final" /> - <type> - <coding> - <system value="http://snomed.info/sct" /> - <code value="41000179103" /> - <display value="Immunisation record" /> - </coding> - </type> - <subject> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - </subject> - <encounter> - <reference value="urn:uuid:daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - </encounter> - <date value="2019-04-01T17:58:00Z" /> - <author> - <reference value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - </author> - <title value="Test Pharmacy (HF) Immunisation record" /> - <custodian> - <reference value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - </custodian> - <section> - <title value="Allergies and adverse reactions" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="886921000000105" /> - <display value="Allergies and adverse reactions" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Causative agent</th> - <td>No known allergy</td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="urn:uuid:6e6a1792-0545-4894-8e27-1e5f8a0fece7" /> - </entry> - </section> - <section> - <title value="Attendance details" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="1077881000000105" /> - <display value="Attendance details" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Date and time of contact</th> - <td>15-May-2019 14:30</td> - </tr> - <tr> - <th>Organisation name</th> - <td>Name: Test Pharmacy (HF)</td> - </tr> - <tr> - <th>Organisation address</th> - <td> - <p>Address:</p> - <p>Address Line: 9 Goldhawk Road</p> - <p>City: London</p> - <p>Post Code: W12 8QQ</p> - </td> - </tr> - <tr> - <th>Organisation contact details</th> - <td> - <p>Contact details: Tel. 02087439440 Email. info@testpharmacy.com</p> - </td> - </tr> - <tr> - <th>Person accompanying patient</th> - <td>Not Applicable</td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="urn:uuid:daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - </entry> - </section> - <section> - <title value="Consent" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="cons" /> - <display value="Consent" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Consent for treatment record</th> - <td>Patient's consent for treatment has been attained.</td> - </tr> - <tr> - <th>Consent for information sharing</th> - <td>Patient is happy for the immunzation details to be shares with their Registered GP.</td> - </tr> - <tr> - <th>Consent relating to child</th> - <td>Not Applicable</td> - </tr> - </tbody> - </table> - </div> - </text> - </section> - <section> - <title value="Eligibility Criteria" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="eligcrit" /> - <display value="Eligibility criteria" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Eligibility criteria</th> - </tr> - <tr> - <td> - <p>Chronic respiratory disease</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - </section> - <section> - <title value="GP Practice" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="886711000000101" /> - <display value="GP Practice" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>GP name</th> - <td> - <p>Prefix: Dr</p> - <p>Given Name: Paul</p> - <p>Family Name: Rastall</p> - </td> - </tr> - <tr> - <th>GP practice identifier</th> - <td> - <p>ODS Organization Code: G1234</p> - </td> - </tr> - <tr> - <th>GP practice details</th> - <td> - <p>Name: Test GP (HF)</p> - <p>Address:</p> - <p>Address Line: 9 Goldhawk Road</p> - <p>City: London</p> - <p>Post Code: W12 8QQ</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - </entry> - </section> - <section> - <title value="History" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="717121000000105" /> - <display value="History" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Relevant past medical, surgical and mental health history</th> - <td> - <p>Patient has Chronic Obstructive Pulmonary Disease (COPD). She was advised to have the flu vaccination as she is at greater risk from flu and its complications when she last attended her GP Practice.</p> - <p>Patient requested the vaccination.</p> - <p>No history of vaccination recorded at Pharmacy.</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - </section> - <section> - <title value="Immunizations" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="1102181000000102" /> - <display value="Immunisations" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <td>Vaccine product: Seasonal influenza vaccination given by pharmacist.</td> - <td>Serialisation code: xyz991</td> - <td>Site: Right upper arm</td> - <td>Route: Subcutaneous route</td> - <td>Indication: Patient requested procedure.</td> - </tr> - <tr> - <td>Administered by: Mr SMITH, John</td> - <td>GPhC identifier: GPHC123</td> - <td>Date Time: 15-May-2019 14:30</td> - <td>Route: Subcutaneous route</td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="urn:uuid:16e62784-c26c-4553-9e0b-a822cc5da3a8" /> - </entry> - </section> - <section> - <title value="Information and advice given" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="1052951000000105" /> - <display value="Information and advice given" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Information and advice given</th> - <td> - <p>Patient advised the side effects of the vaccine and requested to see their registered GP if any of the symptoms last longer than the expected duration.</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - </section> - <section> - <title value="Patient demographics" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="886731000000109" /> - <display value="Patient demographics" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Patient name</th> - <td> - <p>Given Name: Orlando</p> - <p>Family Name: Camargo</p> - </td> - </tr> - <tr> - <th>Date of birth</th> - <td>1996-03-18</td> - </tr> - <tr> - <th>Gender</th> - <td>Male</td> - </tr> - <tr> - <th>NHS number</th> - <td>999999999</td> - </tr> - <tr> - <th>Patient address</th> - <td> - <p>Address Line: Flat 7 Switch House 4 Blackwall Way London</p> - <p>Post Code: E14 9QS</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - <entry> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - </entry> - </section> - <section> - <title value="Referrer details" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="1052891000000108" /> - <display value="Referrer details" /> - </coding> - </code> - <text> - <status value="additional" /> - <div xmlns="http://www.w3.org/1999/xhtml"> - <table width="100%"> - <tbody> - <tr> - <th>Referrer details</th> - <td> - <p>Self referral.</p> - </td> - </tr> - </tbody> - </table> - </div> - </text> - </section> - </Composition> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - <resource> - <Encounter> - <id value="daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Encounter-1" /> - </meta> - <status value="finished" /> - <subject> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <display value="CAMARGO, Orlando" /> - </subject> - <participant> - <type> - <coding> - <system value="http://hl7.org/fhir/v3/ParticipationType" /> - <code value="PPRF" /> - <display value="primary performer" /> - </coding> - </type> - <individual> - <reference value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <display value="SMITH, John" /> - </individual> - </participant> - <period> - <start value="2019-04-01T17:58:00Z" /> - </period> - <serviceProvider> - <reference value="urn:uuid:b20058d3-e2b7-455a-b34b-efd0a321b86b" /> - <display value="Test Pharmacy (HF)" /> - </serviceProvider> - </Encounter> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:b20058d3-e2b7-455a-b34b-efd0a321b86b" /> - <resource> - <Organization> - <id value="b20058d3-e2b7-455a-b34b-efd0a321b86b" /> - <meta> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" /> - </meta> - <identifier> - <system value="https://fhir.nhs.uk/Id/ods-organization-code" /> - <value value="FT321" /> - </identifier> - <name value="Test Pharmacy (HF)" /> - <address> - <line value="9 Golhawk Road" /> - <postalCode value="W12 8QQ" /> - </address> - </Organization> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - <resource> - <Organization> - <id value="4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - <meta> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Organization-1" /> - </meta> - <identifier> - <system value="https://fhir.nhs.uk/Id/ods-organization-code" /> - <value value="G1234" /> - </identifier> - <name value="Test GP (HF)" /> - <address> - <line value="9 Goldhawk Road" /> - <postalCode value="W12 8QQ" /> - </address> - </Organization> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <resource> - <Patient> - <id value="c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <meta> - <profile value="https://fhir.hl7.org.uk/STU3/StructureDefinition/CareConnect-Patient-1" /> - </meta> - <identifier> - <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1"> - <valueCodeableConcept> - <coding> - <system value="https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1" /> - <code value="01" /> - <display value="Number present and verified" /> - </coding> - </valueCodeableConcept> - </extension> - <system value="https://fhir.hl7.org.uk/Id/nhs-number" /> - <value value="999999999" /> - </identifier> - <name> - <use value="usual" /> - <family value="Camargo" /> - <given value="Orlando" /> - </name> - <gender value="male" /> - <birthDate value="1996-03-18" /> - <address> - <use value="home" /> - <line value="Flat 7" /> - <line value="Switch House 4 Blackwall Way" /> - <line value="London" /> - <postalCode value="E14 9QS" /> - </address> - <generalPractitioner> - <reference value="urn:uuid:69976732-dec7-4c1b-9c40-7545a751ab81" /> - </generalPractitioner> - <managingOrganization> - <reference value="urn:uuid:4ea115f8-f6f3-4e2c-a9c4-33c57b1099de" /> - </managingOrganization> - </Patient> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:69976732-dec7-4c1b-9c40-7545a751ab81" /> - <resource> - <Practitioner> - <id value="69976732-dec7-4c1b-9c40-7545a751ab81" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1" /> - </meta> - <name> - <use value="usual" /> - <family value="Paul" /> - <given value="Rastall" /> - </name> - </Practitioner> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <resource> - <Practitioner> - <id value="b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Header-Practitioner-1" /> - </meta> - <identifier> - <system value="https://fhir.hl7.org.uk/Id/gphc-number" /> - <value value="GPHC123" /> - </identifier> - <name> - <use value="usual" /> - <family value="Smith" /> - <given value="John" /> - <prefix value="Mr" /> - </name> - </Practitioner> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:16e62784-c26c-4553-9e0b-a822cc5da3a8" /> - <resource> - <Immunization> - <id value="16e62784-c26c-4553-9e0b-a822cc5da3a8" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-DM-Immunization-1" /> - </meta> - <extension url="https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-VaccinationProcedure-1"> - <valueCodeableConcept> - <coding> - <system value="http://snomed.info/sct" /> - <code value="822851000000102" /> - <display value="Seasonal influenza vaccination" /> - </coding> - </valueCodeableConcept> - </extension> - <status value="completed" /> - <notGiven value="false" /> - <vaccineCode> - <coding> - <system value="http://snomed.info/sct" /> - <code value="22704311000001109" /> - <display value="Fluarix Tetra vaccine suspension for injection 0.5ml pre-filled syringes (GlaxoSmithKline UK Ltd)" /> - </coding> - </vaccineCode> - <patient> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <display value="CAMARGO, Orlando" /> - </patient> - <encounter> - <reference value="urn:uuid:daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - </encounter> - <date value="2019-04-01T17:58:00Z" /> - <primarySource value="true" /> - <site> - <coding> - <system value="http://snomed.info/sct" /> - <code value="368209003" /> - <display value="Right upper arm" /> - </coding> - </site> - <route> - <coding> - <system value="http://snomed.info/sct" /> - <code value="34206005" /> - <display value="Subcutaneous route" /> - </coding> - </route> - <practitioner> - <role> - <coding> - <system value="http://hl7.org/fhir/v2/0443" /> - <code value="AP" /> - <display value="Administering Provider" /> - </coding> - </role> - <actor> - <reference value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <display value="SMITH, John" /> - </actor> - </practitioner> - <explanation> - <reason> - <coding> - <system value="http://snomed.info/sct" /> - <code value="17097001" /> - <display value="Chronic respiratory disease" /> - </coding> - </reason> - </explanation> - </Immunization> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:6e6a1792-0545-4894-8e27-1e5f8a0fece7" /> - <resource> - <List> - <id value="6e6a1792-0545-4894-8e27-1e5f8a0fece7" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-Allergy-List-1" /> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122" /> - <value value="6e6a1792-0545-4894-8e27-1e5f8a0fece7" /> - </identifier> - <status value="current" /> - <mode value="snapshot" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="886921000000105" /> - <display value="Allergies and adverse reactions" /> - </coding> - </code> - <subject> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <display value="CAMARGO, Orlando" /> - </subject> - <encounter> - <reference value="urn:uuid:daa36336-2ab0-4116-85a2-49c0eef49f1e" /> - </encounter> - <source> - <reference value="urn:uuid:b2e94ad6-814b-40f4-babe-9ab9b709f54c" /> - <display value="SMITH, John" /> - </source> - <entry> - <item> - <reference value="urn:uuid:885bfda2-7dd0-4c11-ab91-79a2473ee604" /> - </item> - </entry> - </List> - </resource> - </entry> - <entry> - <fullUrl value="urn:uuid:885bfda2-7dd0-4c11-ab91-79a2473ee604" /> - <resource> - <AllergyIntolerance> - <id value="885bfda2-7dd0-4c11-ab91-79a2473ee604" /> - <meta> - <profile value="https://fhir.nhs.uk/STU3/StructureDefinition/CareConnect-ITK-AllergyIntolerance-1" /> - </meta> - <identifier> - <system value="https://tools.ietf.org/html/rfc4122" /> - <value value="885bfda2-7dd0-4c11-ab91-79a2473ee604" /> - </identifier> - <clinicalStatus value="active" /> - <verificationStatus value="confirmed" /> - <code> - <coding> - <system value="http://snomed.info/sct" /> - <code value="716186003" /> - <display value="No known allergy" /> - </coding> - </code> - <patient> - <reference value="urn:uuid:c8ef222f-bdb3-487d-a1f5-9731aef8d67a" /> - <display value="CAMARGO, Orlando" /> - </patient> - </AllergyIntolerance> - </resource> - </entry> - </Bundle> - </resource> - </entry> -</Bundle> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string-profile.xml deleted file mode 100644 index ca646b1e5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string-profile.xml +++ /dev/null @@ -1,48 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="CCDA-on-FHIR-Referral-Note"/> - <url value="http://hl7.org/fhir/ccda/StructureDefinition/slicing-types-by-string-profile"/> - <name value="Test of slicing by type with string"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Communication"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Communication"/> - <derivation value="constraint"/> - <differential> - <element> - <path value="Communication"/> - </element> - <element> - <path value="Communication.payload"/> - <slicing> - <discriminator> - <type value="type"/> - <path value="content"/> - </discriminator> - <rules value="closed"/> - </slicing> - </element> - <element> - <path value="Communication.payload"/> - <sliceName value="string"/> - </element> - <element> - <path value="Communication.payload.contentString"/> - <min value="1"/> - <type> - <code value="string"/> - </type> - </element> - <element> - <path value="Communication.payload"/> - <sliceName value="attachment"/> - <max value="10"/> - </element> - <element> - <path value="Communication.payload.contentAttachment"/> - <type> - <code value="Attachment"/> - </type> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string.xml deleted file mode 100644 index 3c09943a6..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/slicing-types-by-string.xml +++ /dev/null @@ -1,17 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<Communication xmlns="http://hl7.org/fhir"> - <status value="in-progress"/> - <payload> - <contentString value="test"/> - </payload> - <payload> - <contentAttachment> - <title value="some title"/> - </contentAttachment> - </payload> - <payload> - <contentAttachment> - <title value="some other title"/> - </contentAttachment> - </payload> -</Communication> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-example.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-example.xml deleted file mode 100644 index 286935c37..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-example.xml +++ /dev/null @@ -1,15 +0,0 @@ -<Parameters xmlns="http://hl7.org/fhir"> - <parameter> - <name value="string"/> - <valueString value="ccc"> - <extension url="http://hl7.org/fhir/StructureDefinition/translation"> - <extension url="lang"> - <valueCode value="en"/> - </extension> - <extension url="content"> - <valueString value="ddd"/> - </extension> - </extension> - </valueString> - </parameter> -</Parameters> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-profile.xml deleted file mode 100644 index cbf4b69f2..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/string-extensions-and-constraints-profile.xml +++ /dev/null @@ -1,65 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../schema/fhir-single.xsd"> - <id value="string-extensions-and-constraints"/> - <url value="http://hl7.org/fhir/StructureDefinition/string-extensions-and-constraints"/> - <name value="Test extensions and constraints on strings to make sure that local constraints are enforced on simple types"/> - <status value="draft"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="Parameters"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Parameters"/> - <derivation value="constraint"/> - <differential> - <element id="Parameters"> - <path value="Parameters"/> - </element> - <element id="Parameters.parameter"> - <path value="Parameters.parameter"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="name"/> - </discriminator> - <rules value="open"/> - </slicing> - </element> - <element id="Parameters.parameter:string"> - <path value="Parameters.parameter"/> - <sliceName value="string"/> - </element> - <element id="Parameters.parameter:string.name"> - <path value="Parameters.parameter.name"/> - <fixedString value="string"/> - </element> - <element id="Parameters.parameter:string.valueString"> - <extension url="http://hl7.org/fhir/StructureDefinition/regex"> - <valueString value="(a)*"/> - </extension> - <path value="Parameters.parameter.valueString"/> - <type> - <code value="string"/> - </type> - <maxLength value="2"/> - </element> - <element id="Parameters.parameter:string.valueString.extension:translation"> - <path value="Parameters.parameter.valueString.extension"/> - <sliceName value="translation"/> - <type> - <code value="Extension"/> - <profile value="http://hl7.org/fhir/StructureDefinition/translation"/> - </type> - </element> - <element id="Parameters.parameter:string.valueString.extension:translation.extension:content"> - <path value="Parameters.parameter.valueString.extension.extension"/> - <sliceName value="content"/> - </element> - <element id="Parameters.parameter:string.valueString.extension:translation.extension:content.valueString"> - <extension url="http://hl7.org/fhir/StructureDefinition/regex"> - <valueString value="(b)*"/> - </extension> - <path value="Parameters.parameter.valueString.extension.extension.valueString"/> - <sliceName value="content"/> - <maxLength value="2"/> - </element> - </differential> -</StructureDefinition> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/synthea.json b/org.hl7.fhir.validation/src/test/resources/validation-examples/synthea.json deleted file mode 100644 index 988725669..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/synthea.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "resourceType": "Encounter", - "id": "f003", - "class" : { - "system" : "http://terminology.hl7.org/CodeSystem/v3-ActCode", - "code" : "AMB" - }, - "text": { - "status": "generated", - "div": - "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative with Details</b></p></div>" - }, - "identifier": [ - { - "use": "official", - "system": "http://www.bmc.nl/zorgportal/identifiers/encounters", - "value": "v6751" - } - ], - "status": "completed", - "subject": { - "reference": "Patient/f001", - "display": "P. van de Heuvel" - }, - "reasonCode": { - "extension": [ - { - "url": "http://hl7.org/fhir/StructureDefinition/iso21090-nullFlavor", - "valueCode": "UNK" - } - ] - }, - "serviceProvider": { - "reference": "Organization/f001" - } -} \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-pat.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-pat.xml deleted file mode 100644 index 4557d61a5..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-pat.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!--Sample male patient. This includes optional elements in addition to the minimum dataset for the patient.--> -<Patient xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../Schemas/Patient.xsd"> - <id value="bc3027a7-924c-44b5-8f1b-bfd5266c6905"/> - <!--Identifies the profile being used--> - <meta> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Patient-1"/> - </meta> - <!--nhsCommunication complex extension start--> -<extension url="Extension-CareConnect-NHSCommunication-1" > - <extension url="language" > - <valueCodeableConcept> - <coding> - <system value="https://fhir.hl7.org.uk/ValueSet/CareConnect-HumanLanguage-1"/> - <code value="ga"/> - <display value="Irish"/> - </coding> - </valueCodeableConcept> - </extension> - <extension url="preferred"> - <valueBoolean value="true"/> - </extension> - <extension url="interpreterRequired"> - <valueBoolean value="false"/> - </extension> -</extension> - <!--Primary patient identifier i.e. NHS number and code to indicate it's been verified--> - - <identifier> - <extension url="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1"> - <valueCodeableConcept> - <coding> - <system value="https://fhir.hl7.org.uk/ValueSet/CareConnect-NHSNumberVerificationStatus-1"/> - <code value="01"/> - <display value="Number present and verified"/> - </coding> - </valueCodeableConcept> - </extension> - <system value="https://fhir.nhs.uk/Id/nhs-number"/> - <value value="9413946000"/> - </identifier> - <identifier> - <system value="https://fhir.nhs.uk/Id/local-patient-identifier"/> - <value value="A1234521"/> - <assigner> - <!-- This can be a reference to the profile elsewhere in the message or just text --> - <reference value="Organization/1ebc76fd-9612-4c72-81dd-de294a0e7287"/> - </assigner> - </identifier> - <name> - <use value="usual"/> - <family value="Jones"/> - <given value="Barry"/> - </name> - <telecom> - <system value="email"/> - <value value="barryJ@googlemail.com"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="0113554466"/> - </telecom> - <gender value="male"/> - <birthDate value="1941-11-01"/> - <address> - <!-- Structured address--> - <line value="The Old Lodge"/> - <line value="1 Little Street"/> - <line value="Chapeltown"/> - <city value="Leeds"/> - <district value="West Yorkshire"/> - <postalCode value="LS6 1UR"/> - </address> - <!-- Patient's Carer contact --> - <contact> - <relationship> - <coding> - <system value="https://fhir.hl7.org.uk/CareConnect-PersonRelationshipType-1"/> - <code value="20"/> - <display value="Carer"/> - </coding> - </relationship> - <name> - <use value="usual"/> - <family value="Bloom"/> - <given value="Sandra"/> - </name> - <telecom> - <system value="email"/> - <value value="Sbloom123@yahoo.com"/> - </telecom> - <telecom> - <system value="phone"/> - <value value="0113237656"/> - </telecom> - </contact> -</Patient> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-sd-pat.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-sd-pat.xml deleted file mode 100644 index dfedb4aef..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/uk-nhs-sd-pat.xml +++ /dev/null @@ -1,15085 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<StructureDefinition xmlns="http://hl7.org/fhir"> - <meta> - <lastUpdated value="2017-05-02T14:21:31.019+01:00" /> - <tag> - <system value="urn:hscic:publishOrder" /> - <code value="6" /> - </tag> - </meta> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm"> - <valueInteger value="5" /> - </extension> - <url value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Patient-1" /> - <version value="1.0.0" /> - <name value="CareConnect-Patient-1" /> - <status value="draft" /> - <publisher value="HL7 UK" /> - <description value="The Patient resource represents the patient involved in the provision of healthcare related services." /> - <copyright value="Copyright © 2016 HL7 UK Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. HL7® FHIR® standard Copyright © 2011+ HL7 The HL7® FHIR® standard is used under the FHIR license. You may obtain a copy of the FHIR license at https://www.hl7.org/fhir/license.html" /> - <fhirVersion value="1.0.1" /> - <mapping> - <identity value="rim" /> - <uri value="http://hl7.org/v3" /> - <name value="RIM" /> - </mapping> - <mapping> - <identity value="cda" /> - <uri value="http://hl7.org/v3/cda" /> - <name value="CDA (R2)" /> - </mapping> - <kind value="resource" /> - <constrainedType value="Patient" /> - <abstract value="false" /> - <base value="http://hl7.org/fhir/StructureDefinition/Patient" /> - <snapshot> - <element> - <path value="Patient" /> - <short value="The Patient resource carries the patient demographic details." /> - <definition value="Demographics and other administrative information about an individual or animal receiving care or other health-related services." /> - <alias value="SubjectOfCare Client Resident" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Resource" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Patient" /> - </type> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" /> - </extension> - <key value="dom-4" /> - <severity value="error" /> - <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" /> - <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="contained.where(('#'+id in %resource.descendants().reference).not()).empty()" /> - </extension> - <key value="dom-3" /> - <severity value="error" /> - <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource" /> - <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="contained.contained.empty()" /> - </extension> - <key value="dom-2" /> - <severity value="error" /> - <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources" /> - <xpath value="not(parent::f:contained and f:contained)" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="contained.text.empty()" /> - </extension> - <key value="dom-1" /> - <severity value="error" /> - <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative" /> - <xpath value="not(parent::f:contained and f:text)" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="Entity. Role, or Act" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="ClinicalDocument.recordTarget.patientRole" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Patient[classCode=PAT]" /> - </mapping> - <mapping> - <identity value="w5" /> - <map value="administrative.individual" /> - </mapping> - </element> - <element> - <path value="Patient.id" /> - <short value="Logical id of this artifact" /> - <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." /> - <comments value="The only time that a resource does not have an id is when it is being submitted to the server using a create operation. Bundles always have an id, though it is usually a generated UUID." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Resource.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.meta" /> - <short value="Metadata about the resource" /> - <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Resource.meta" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Meta" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.implicitRules" /> - <short value="A set of rules under which this content was created" /> - <definition value="A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content." /> - <comments value="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 as much as possible." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Resource.implicitRules" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.language" /> - <short value="Language of the resource content" /> - <definition value="The base language in which the resource is written." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Resource.language" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <binding> - <strength value="required" /> - <description value="A human language." /> - <valueSet value="http://tools.ietf.org/html/bcp47" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.text" /> - <short value="Text summary of the resource, for human interpretation" /> - <definition value="A human-readable narrative that contains a summary of the resource, and may 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." /> - <comments value="Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative." /> - <alias value="narrative" /> - <alias value="html" /> - <alias value="xhtml" /> - <alias value="display" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Narrative" /> - </type> - <condition value="ele-1" /> - <condition value="dom-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Act.text?" /> - </mapping> - </element> - <element> - <path value="Patient.contained" /> - <short value="Contained, inline Resources" /> - <definition value="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." /> - <comments value="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." /> - <alias value="inline resources" /> - <alias value="anonymous resources" /> - <alias value="contained resources" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="DomainResource.contained" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Resource" /> - </type> - <mapping> - <identity value="rim" /> - <map value="Entity. Role, or Act" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="registrationDetails" /> - <short value="Additional registration information for the Patient resource" /> - <definition value="Optional Extensions Element - found in all resources." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-RegistrationDetails-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="ethnicCategory" /> - <short value="Ethnic category" /> - <definition value="The ethnicity of the subject." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-EthnicCategory-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="religiousAffiliation" /> - <short value="Religious affiliation" /> - <definition value="The religious affiliation of the subject." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-ReligiousAffiliation-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="patient-cadavericDonor" /> - <short value="Flag indicating whether the patient authorized the donation of body parts after death." /> - <definition value="Flag indicating whether the patient authorized the donation of body parts after death." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="residentialStatus" /> - <short value="The residential status of the patient " /> - <definition value="The residential status of the patient. For example if this patient is a UK resident." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-ResidentialStatus-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="false" /> - <binding> - <strength value="required" /> - <description value="The residential status of the patient" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-ResidentialStatus-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="treatmentCategory" /> - <short value="The treatment category for this patient" /> - <definition value="The treatment category for this patient. For example if this patient is entitled to free healthcare treatment." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-TreatmentCategory-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="false" /> - <binding> - <strength value="required" /> - <description value="The treatment category of the patient" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-TreatmentCategory-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.extension" /> - <name value="nhsCommunication" /> - <short value="NHS communication preferences for a resource" /> - <definition value="Communication preferences including a list of Languages which may be used for communication" /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="DomainResource.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-NHSCommunication-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="false" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.modifierExtension" /> - <short value="Extensions that cannot be ignored" /> - <definition value="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. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="DomainResource.modifierExtension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier" /> - <slicing> - <discriminator value="system" /> - <ordered value="true" /> - <rules value="openAtEnd" /> - </slicing> - <short value="An identifier for this patient" /> - <definition value="An identifier for this patient." /> - <requirements value="Patients are almost always assigned specific numerical identifiers." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.identifier" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Identifier" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="Identifier" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".id" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="id" /> - </mapping> - <mapping> - <identity value="w5" /> - <map value="id" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.use" /> - <short value="usual | official | temp | secondary (If known)" /> - <definition value="The purpose of this identifier." /> - <comments value="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 value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Identifies the purpose for this identifier, if known ." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type" /> - <short value="Description of identifier" /> - <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." /> - <comments value="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 value="Allows users to make use of identifiers when the identifier system is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.type" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="extensible" /> - <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.system" /> - <short value="The namespace for the identifier" /> - <definition value="Establishes the namespace in which set of possible id values is unique." /> - <comments value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" /> - <requirements value="There are many sequences of identifiers. To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <exampleUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / EI-2-4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.root or Role.id.root" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierType" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.value" /> - <short value="The value that is unique" /> - <definition value="The portion of the identifier typically displayed to the user and which is unique within the context of the system." /> - <comments value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="123456" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.1 / EI.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Value" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period" /> - <short value="Time period when id is/was valid for use" /> - <definition value="Time period during which identifier is/was valid for use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.7 + CX.8" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.effectiveTime or implied by context" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner" /> - <short value="Organization that issued id (may be just text)" /> - <definition value="Organization that issued/manages the identifier." /> - <comments value="The reference may be just a text description of the assigner." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.assigner" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="http://hl7.org/fhir/StructureDefinition/Organization" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / (CX.4,CX.9,CX.10)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierIssuingAuthority" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier" /> - <name value="nhsNumber" /> - <short value="The patient's NHS number" /> - <definition value="The patient's NHS number" /> - <requirements value="Patients are almost always assigned specific numerical identifiers." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.identifier" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Identifier" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="Identifier" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".id" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="id" /> - </mapping> - <mapping> - <identity value="w5" /> - <map value="id" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.extension" /> - <name value="nhsNumberVerificationStatus" /> - <short value="NHS number verification status" /> - <definition value="The verification/tracing status of the NHS number." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.use" /> - <short value="usual | official | temp | secondary (If known)" /> - <definition value="The purpose of this identifier." /> - <comments value="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 value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Identifier.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Identifies the purpose for this identifier, if known ." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type" /> - <short value="Description of identifier" /> - <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." /> - <comments value="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 value="Allows users to make use of identifiers when the identifier system is not known." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Identifier.type" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="extensible" /> - <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.system" /> - <short value="The namespace for the identifier" /> - <definition value="Establishes the namespace in which set of possible id values is unique." /> - <comments value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" /> - <requirements value="There are many sequences of identifiers. To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Identifier.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <fixedUri value="https://fhir.nhs.uk/Id/nhs-number" /> - <exampleUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / EI-2-4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.root or Role.id.root" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierType" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.value" /> - <short value="Ten numeric digit NHS number" /> - <definition value="The portion of the identifier typically displayed to the user and which is unique within the context of the system." /> - <comments value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Identifier.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="123456" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.1 / EI.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Value" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period" /> - <short value="Time period when id is/was valid for use" /> - <definition value="Time period during which identifier is/was valid for use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Identifier.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.7 + CX.8" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.effectiveTime or implied by context" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner" /> - <short value="Organization that issued id (may be just text)" /> - <definition value="Organization that issued/manages the identifier." /> - <comments value="The reference may be just a text description of the assigner." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Identifier.assigner" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="http://hl7.org/fhir/StructureDefinition/Organization" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / (CX.4,CX.9,CX.10)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierIssuingAuthority" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier" /> - <name value="localIdentifier" /> - <short value=" The patient's other identifiers" /> - <definition value="An identifier for this patient." /> - <requirements value="Patients are almost always assigned specific numerical identifiers." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.identifier" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Identifier" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX / EI (occasionally, more often EI maps to a resource id or a URL)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II - see see identifier pattern at http://wiki.hl7.org/index.php?title=Common_Design_Patterns#Identifier_Pattern for relevant discussion. 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]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="Identifier" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".id" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="id" /> - </mapping> - <mapping> - <identity value="w5" /> - <map value="id" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.use" /> - <short value="usual | official | temp | secondary (If known)" /> - <definition value="The purpose of this identifier." /> - <comments value="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 value="Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Identifies the purpose for this identifier, if known ." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type" /> - <short value="Description of identifier" /> - <definition value="A coded type for the identifier that can be used to determine which identifier to use for a specific purpose." /> - <comments value="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 value="Allows users to make use of identifiers when the identifier system is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.type" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="extensible" /> - <description value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose." /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.code or implied by context" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.type.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.system" /> - <short value="The namespace for the identifier" /> - <definition value="Establishes the namespace in which set of possible id values is unique." /> - <comments value="see http://en.wikipedia.org/wiki/Uniform_resource_identifier" /> - <requirements value="There are many sequences of identifiers. To perform matching, we need to know what sequence we're dealing with. The system identifies a particular sequence or set of unique identifiers." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Identifier.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <fixedUri value="https://fhir.nhs.uk/Id/local-patient-identifier" /> - <exampleUri value="http://www.acme.com/identifiers/patient or urn:ietf:rfc:3986 if the Identifier.value itself is a full uri" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / EI-2-4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.root or Role.id.root" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierType" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.value" /> - <short value="The value that is unique" /> - <definition value="The portion of the identifier typically displayed to the user and which is unique within the context of the system." /> - <comments value="If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Identifier.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="123456" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.1 / EI.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Value" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period" /> - <short value="Time period when id is/was valid for use" /> - <definition value="Time period during which identifier is/was valid for use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.7 + CX.8" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="Role.effectiveTime or implied by context" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner" /> - <short value="Organization that issued id (may be just text)" /> - <definition value="Organization that issued/manages the identifier." /> - <comments value="The reference may be just a text description of the assigner." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Identifier.assigner" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CX.4 / (CX.4,CX.9,CX.10)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./IdentifierIssuingAuthority" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.identifier.assigner.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.active" /> - <short value="Whether this patient's record is in active use" /> - <definition value="Whether this patient record is in active use." /> - <comments value="Default is true. If a record is inactive, and linked to an active record, then future patient/record updates should occur on the other patient." /> - <requirements value="Need to be able to mark a patient record as not to be used because it was created in error." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.active" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <defaultValueBoolean value="true" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="statusCode" /> - </mapping> - <mapping> - <identity value="w5" /> - <map value="status" /> - </mapping> - </element> - <element> - <path value="Patient.name" /> - <slicing> - <discriminator value="use" /> - <discriminator value="period.end" /> - <ordered value="false" /> - <rules value="openAtEnd" /> - </slicing> - <short value="A name associated with the patient" /> - <definition value="A name associated with the individual." /> - <comments value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name." /> - <min value="1" /> - <max value="*" /> - <base> - <path value="Patient.name" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="HumanName" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="EN (actually, PN)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ProviderName" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.name" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-5, PID-9" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="name" /> - </mapping> - </element> - <element> - <path value="Patient.name.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.use" /> - <short value="usual | official | temp | nickname | anonymous | old | maiden" /> - <definition value="Identifies the purpose for this name." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of a human name" /> - <valueSet value="http://hl7.org/fhir/ValueSet/name-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.7, but often indicated by which field contains the name" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./NamePurpose" /> - </mapping> - </element> - <element> - <path value="Patient.name.text" /> - <short value="Text representation of the full name" /> - <definition value="A full text representation of the name." /> - <comments value="Can provide both a text representation and structured parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="implied by XPN.11" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - </element> - <element> - <path value="Patient.name.family" /> - <short value="Family name (often called 'Surname')" /> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." /> - <comments value="For family name, hyphenated names such as "Smith-Jones" are a single name, but names with spaces such as "Smith Jones" are broken into multiple parts." /> - <alias value="surname" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.family" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = FAM]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./FamilyName" /> - </mapping> - </element> - <element> - <path value="Patient.name.given" /> - <short value="Given names (not always 'first'). Includes middle names" /> - <definition value="Given name." /> - <comments value="If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first." /> - <alias value="first name" /> - <alias value="middle name" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.given" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.2 + XPN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = GIV]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./GivenNames" /> - </mapping> - </element> - <element> - <path value="Patient.name.prefix" /> - <short value="Parts that come before the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.prefix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = PFX]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./TitleCode" /> - </mapping> - </element> - <element> - <path value="Patient.name.suffix" /> - <short value="Parts that come after the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.suffix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN/4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = SFX]" /> - </mapping> - </element> - <element> - <path value="Patient.name.period" /> - <short value="Time period when name was/is in use" /> - <definition value="Indicates the period of time when this name was valid for the named person." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows names to be placed in historical context." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.13 + XPN.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.name" /> - <name value="usual" /> - <short value="The patient's current usual name" /> - <definition value="The patient's current usual name" /> - <comments value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.name" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="HumanName" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="EN (actually, PN)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ProviderName" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.name" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-5, PID-9" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="name" /> - </mapping> - </element> - <element> - <path value="Patient.name.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.use" /> - <short value="usual | official | temp | nickname | anonymous | old | maiden" /> - <definition value="Identifies the purpose for this name." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <fixedCode value="usual" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of a human name" /> - <valueSet value="http://hl7.org/fhir/ValueSet/name-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.7, but often indicated by which field contains the name" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./NamePurpose" /> - </mapping> - </element> - <element> - <path value="Patient.name.text" /> - <short value="Text representation of the full name" /> - <definition value="A full text representation of the name." /> - <comments value="Can provide both a text representation and structured parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="implied by XPN.11" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - </element> - <element> - <path value="Patient.name.family" /> - <short value="Family name (often called 'Surname')" /> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." /> - <comments value="For family name, hyphenated names such as "Smith-Jones" are a single name, but names with spaces such as "Smith Jones" are broken into multiple parts." /> - <alias value="surname" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.family" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = FAM]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./FamilyName" /> - </mapping> - </element> - <element> - <path value="Patient.name.given" /> - <short value="Given names (not always 'first'). Includes middle names" /> - <definition value="Given name." /> - <comments value="If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first." /> - <alias value="first name" /> - <alias value="middle name" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.given" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.2 + XPN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = GIV]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./GivenNames" /> - </mapping> - </element> - <element> - <path value="Patient.name.prefix" /> - <short value="Parts that come before the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.prefix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = PFX]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./TitleCode" /> - </mapping> - </element> - <element> - <path value="Patient.name.suffix" /> - <short value="Parts that come after the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.suffix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN/4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = SFX]" /> - </mapping> - </element> - <element> - <path value="Patient.name.period" /> - <short value="Time period when name was/is in use" /> - <definition value="Indicates the period of time when this name was valid for the named person." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows names to be placed in historical context." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.13 + XPN.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.name" /> - <name value="other" /> - <short value="The patient's other names" /> - <definition value="The patient's other names" /> - <comments value="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 value="Need to be able to track the patient by multiple names. Examples are your official name and a partner name." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.name" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="HumanName" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="EN (actually, PN)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ProviderName" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.name" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-5, PID-9" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="name" /> - </mapping> - </element> - <element> - <path value="Patient.name.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.use" /> - <short value="usual | official | temp | nickname | anonymous | old | maiden" /> - <definition value="Identifies the purpose for this name." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of a human name" /> - <valueSet value="http://hl7.org/fhir/ValueSet/name-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.7, but often indicated by which field contains the name" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./NamePurpose" /> - </mapping> - </element> - <element> - <path value="Patient.name.text" /> - <short value="Text representation of the full name" /> - <definition value="A full text representation of the name." /> - <comments value="Can provide both a text representation and structured parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="implied by XPN.11" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - </element> - <element> - <path value="Patient.name.family" /> - <short value="Family name (often called 'Surname')" /> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." /> - <comments value="For family name, hyphenated names such as "Smith-Jones" are a single name, but names with spaces such as "Smith Jones" are broken into multiple parts." /> - <alias value="surname" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.family" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = FAM]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./FamilyName" /> - </mapping> - </element> - <element> - <path value="Patient.name.given" /> - <short value="Given names (not always 'first'). Includes middle names" /> - <definition value="Given name." /> - <comments value="If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first." /> - <alias value="first name" /> - <alias value="middle name" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.given" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.2 + XPN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = GIV]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./GivenNames" /> - </mapping> - </element> - <element> - <path value="Patient.name.prefix" /> - <short value="Parts that come before the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.prefix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = PFX]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./TitleCode" /> - </mapping> - </element> - <element> - <path value="Patient.name.suffix" /> - <short value="Parts that come after the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.suffix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN/4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = SFX]" /> - </mapping> - </element> - <element> - <path value="Patient.name.period" /> - <short value="Time period when name was/is in use" /> - <definition value="Indicates the period of time when this name was valid for the named person." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows names to be placed in historical context." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.13 + XPN.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.name.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.telecom" /> - <short value="A contact detail for the individual" /> - <definition value="A contact detail (e.g. a telephone number or an email address) by which the individual may be contacted." /> - <comments value="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 may 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 value="People have (primary) ways to contact them in some way such as phone, email." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.telecom" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="ContactPoint" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="value.empty() or system" /> - </extension> - <key value="cpt-2" /> - <severity value="error" /> - <human value="A system is required if a value is provided." /> - <xpath value="not(exists(f:value)) or exists(f:system)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="TEL" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ContactPoint" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".telecom" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-13, PID-14, PID-40" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="telecom" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.system" /> - <short value="phone | fax | email | pager | other" /> - <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="ContactPoint.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <condition value="cpt-2" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Telecommunications form for contact point" /> - <valueSet value="http://hl7.org/fhir/ValueSet/contact-point-system" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./scheme" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./ContactPointType" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.value" /> - <short value="The actual contact point details" /> - <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." /> - <comments value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value." /> - <requirements value="Need to support legacy numbers that are not in a tightly controlled format." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="ContactPoint.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.1 (or XTN.12)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./url" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Value" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.use" /> - <short value="home | work | temp | old | mobile - purpose of this contact point" /> - <definition value="Identifies the purpose for the contact point." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old." /> - <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Use of contact point" /> - <valueSet value="http://hl7.org/fhir/ValueSet/contact-point-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.2 - but often indicated by field" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./ContactPointPurpose" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.rank" /> - <short value="Specify preferred order of use (1 = highest)" /> - <definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values." /> - <comments value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="ContactPoint.rank" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="positiveInt" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.period" /> - <short value="Time period when the contact point was/is in use" /> - <definition value="Time period when the contact point was/is in use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./useablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.telecom.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.gender" /> - <short value="male | female | other | unknown" /> - <definition value="Administrative Gender - the gender that the patient is considered to have for administration and record keeping purposes." /> - <comments value="The gender may 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 M and F, though the vast majority of systems and contexts only support M and F. Systems providing decision support or enforcing business rules should ideally do this on the basis of Observations dealing with the specific gender aspect of interest (anatomical, chromosonal, 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, chromosonal and other gender aspects. For example, an alert about a hysterectomy on a male should be handled as a warning or overrideable error, not a "hard" error." /> - <requirements value="Needed for identification of the individual, in combination with (at least) name and birth date. Gender of individual drives many clinical processes." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.gender" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The gender of a person used for administrative purposes." /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-AdministrativeGender-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.administrativeGenderCode" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-8" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" /> - </mapping> - </element> - <element> - <path value="Patient.birthDate" /> - <short value="The date of birth for the patient" /> - <definition value="The date of birth for the individual." /> - <comments value="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 maternaty/infant care systems)." /> - <requirements value="Age of the individual drives many clinical processes." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.birthDate" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="date" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="loinc" /> - <map value="21112-8" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.birthTime" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/birthTime" /> - </mapping> - </element> - <element> - <path value="Patient.birthDate.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.birthDate.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.birthDate.extension" /> - <name value="patient-birthTime" /> - <short value="The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively." /> - <definition value="The time of day that the Patient was born. This includes the date to ensure that the timezone information can be communicated effectively." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.birthDate.value" /> - <representation value="xmlAttr" /> - <short value="Primitive value for date" /> - <definition value="Primitive value for date" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="date.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex"> - <valueString value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" /> - </extension> - <code> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type"> - <valueString value="string" /> - </extension> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type"> - <valueString value="xs:gYear, xs:gYearMonth, xs:date" /> - </extension> - </code> - </type> - </element> - <element> - <path value="Patient.deceased[x]" /> - <short value="Indicates if the individual is deceased or not" /> - <definition value="Indicates if the individual is deceased or not." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Patient.deceased[x]" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-30 (bool) and PID-29 (datetime)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/deceasedTime" /> - </mapping> - </element> - <element> - <path value="Patient.address" /> - <short value="Addresses for the individual" /> - <definition value="Addresses for the individual." /> - <comments value="Patient may have multiple addresses with different uses or applicable periods." /> - <requirements value="May need to keep track of patient addresses for contacting, billing or reporting requirements and also to help with identification." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.address" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Address" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="Address" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".addr" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-11" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="addr" /> - </mapping> - </element> - <element> - <path value="Patient.address.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.address.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.address.use" /> - <short value="home | work | temp | old - purpose of this address" /> - <definition value="The purpose of this address." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows an appropriate address to be chosen from a list of many." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="home" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of an address" /> - <valueSet value="http://hl7.org/fhir/ValueSet/address-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./AddressPurpose" /> - </mapping> - </element> - <element> - <path value="Patient.address.type" /> - <short value="postal | physical | both" /> - <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.type" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="both" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The type of an address (physical / postal)" /> - <valueSet value="http://hl7.org/fhir/ValueSet/address-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.18" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="address type parameter" /> - </mapping> - </element> - <element> - <path value="Patient.address.text" /> - <short value="Text representation of the address" /> - <definition value="A full text representation of the address." /> - <comments value="Can provide both a text representation and parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="42 Grove Street, Overtown, West Yorkshire, LS21 1PF" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="address label parameter" /> - </mapping> - </element> - <element> - <path value="Patient.address.line" /> - <short value="Street name, number, direction & P.O. Box etc." /> - <definition value="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="home | work | temp | old - purpose of this address." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Address.line" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="42, Grove Street" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = AL]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="street" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StreetAddress (newline delimitted)" /> - </mapping> - </element> - <element> - <path value="Patient.address.city" /> - <short value="Name of city, town etc." /> - <definition value="The name of the city, town, village or other community or delivery center." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Municpality" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.city" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="Overtown" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CTY]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="locality" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Jurisdiction" /> - </mapping> - </element> - <element> - <path value="Patient.address.district" /> - <short value="District name (aka county)" /> - <definition value="The name of the administrative area (county)." /> - <comments value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead." /> - <alias value="County" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.district" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="West Yorkshire" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.9" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CNT | CPA]" /> - </mapping> - </element> - <element> - <path value="Patient.address.state" /> - <short value="Sub-unit of country (abbreviations ok)" /> - <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Province" /> - <alias value="Territory" /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Address.state" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = STA]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="region" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Region" /> - </mapping> - </element> - <element> - <path value="Patient.address.postalCode" /> - <short value="Postal code for area" /> - <definition value="A postal code designating a region defined by the postal service." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Zip" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.postalCode" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="LS21 1PF" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = ZIP]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="code" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./PostalIdentificationCode" /> - </mapping> - </element> - <element> - <path value="Patient.address.country" /> - <short value="Country (can be ISO 3166 3 letter code)" /> - <definition value="Country - a nation as commonly understood or generally accepted." /> - <comments value="ISO 3166 3 letter codes can be used in place of a full country name." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.country" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="GBR" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CNT]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="country" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Country" /> - </mapping> - </element> - <element> - <path value="Patient.address.period" /> - <short value="Time period when address was/is in use" /> - <definition value="Time period when address was/is in use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows addresses to be placed in historical context." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <examplePeriod> - <start value="2010-03-23T00:00:00" /> - <end value="2010-07-01T00:00:00" /> - </examplePeriod> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.12 / XAD.13 + XAD.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.address.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.address.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.address.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.address.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus" /> - <short value="Marital (civil) status of a patient" /> - <definition value="This field contains a patient's most recent marital (civil) status." /> - <comments value="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 value="Most, if not all systems capture it." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.maritalStatus" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The domestic partnership status of a person." /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-MaritalStatus-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".patient.maritalStatusCode" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-16" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN]/maritalStatusCode" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <exampleUri value="http://hl7.org/fhir/v3/MaritalStatus" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="0" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="0" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.maritalStatus.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="0" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.multipleBirth[x]" /> - <short value="Whether patient is part of a multiple birth" /> - <definition value="Indicates whether the patient is part of a multiple or indicates the actual birth order." /> - <requirements value="For disambiguation of multiple-birth children, especially relevant where the care provider doesn't meet the patient, such as labs." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.multipleBirth[x]" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <type> - <code value="integer" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-24 (bool), PID-25 (integer)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthInd, player[classCode=PSN|ANM and determinerCode=INSTANCE]/multipleBirthOrderNumber" /> - </mapping> - </element> - <element> - <path value="Patient.photo" /> - <short value="Image of the patient" /> - <definition value="Image of the patient." /> - <comments value="When providing a summary view (for example with Observation.value[x]) Attachment should be represented with a brief display text such as "Attachment"." /> - <requirements value="Many EHR systems have the capability to capture an image of the patient. Fits with newer social media usage too." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Patient.photo" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Attachment" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="data.empty() or contentType" /> - </extension> - <key value="att-1" /> - <severity value="error" /> - <human value="It the Attachment has data, it SHALL have a contentType" /> - <xpath value="not(exists(f:data)) or exists(f:contentType)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="ED/RP" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="ED" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="OBX-5 - needs a profile" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/desc" /> - </mapping> - </element> - <element> - <path value="Patient.photo.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.photo.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.photo.contentType" /> - <short value="Mime type of the content, with charset etc." /> - <definition value="Identifies the type of the data in the attachment and allows a method to be chosen to interpret or render the data. Includes mime type parameters such as charset where appropriate." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Processors of the data need to be able to know how to interpret the data." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.contentType" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="text/plain; charset=UTF-8, image/png" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The mime type of an attachment. Any valid mime type is allowed." /> - <valueSet value="http://www.rfc-editor.org/bcp/bcp13.txt" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="ED.2+ED.3/RP.2+RP.3. Note conversion may be needed if old style values are being used" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./mediaType, ./charset" /> - </mapping> - </element> - <element> - <path value="Patient.photo.language" /> - <short value="Human language of the content (BCP-47)" /> - <definition value="The human language of the content. The value can be any valid value according to BCP 47." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Users need to be able to choose between the languages in a set of attachments." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.language" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="en-AU" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="A human language." /> - <valueSet value="http://tools.ietf.org/html/bcp47" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./language" /> - </mapping> - </element> - <element> - <path value="Patient.photo.data" /> - <short value="Data inline, base64ed" /> - <definition value="The actual data of the attachment - a sequence of bytes. In XML, represented using base64." /> - <comments value="The base64-encoded data SHALL be expressed in the same character set as the base resource XML or JSON." /> - <requirements value="The data needs to able to be transmitted inline." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.data" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="base64Binary" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="ED.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./data" /> - </mapping> - </element> - <element> - <path value="Patient.photo.url" /> - <short value="Uri where the data can be found" /> - <definition value="An alternative location where the data can be accessed." /> - <comments value="If both data and url are provided, the url SHALL point to the same content as the data contains. Urls may be relative references or may reference transient locations such as a wrapping envelope using cid: though this has ramifications for using signatures. Relative URLs are interpreted relative to the service url, like a resource reference, rather than relative to the resource itself. If a URL is provided, it SHALL resolve to actual data." /> - <requirements value="The data needs to be transmitted by reference." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.url" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <exampleUri value="http://www.acme.com/logo-small.png" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="RP.1+RP.2 - if they refer to a URL (see v2.6)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./reference/literal" /> - </mapping> - </element> - <element> - <path value="Patient.photo.size" /> - <short value="Number of bytes of content (if url provided)" /> - <definition value="The number of bytes of data that make up this attachment." /> - <comments value="The number of bytes is redundant if the data is provided as a base64binary, but is useful if the data is provided as a url reference." /> - <requirements value="Representing the size allows applications to determine whether they should fetch the content automatically in advance, or refuse to fetch it at all." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.size" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="unsignedInt" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A (needs data type R3 proposal)" /> - </mapping> - </element> - <element> - <path value="Patient.photo.hash" /> - <short value="Hash of the data (sha-1, base64ed)" /> - <definition value="The calculated hash of the data using SHA-1. Represented using base64." /> - <comments value="A stream of bytes, base64 encoded" /> - <requirements value="Included so that applications can verify that the contents of a location have not changed and so that a signature of the content can implicitly sign the content of an image without having to include the data in the instance or reference the url in the signature." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.hash" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="base64Binary" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value=".integrityCheck[parent::ED/integrityCheckAlgorithm="SHA-1"]" /> - </mapping> - </element> - <element> - <path value="Patient.photo.title" /> - <short value="Label to display in place of the data" /> - <definition value="A label or set of text to display in place of the data." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Applications need a label to display to a human user in place of the actual data if the data cannot be rendered or perceived by the viewer." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.title" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="Official Corporate Logo" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./title/data" /> - </mapping> - </element> - <element> - <path value="Patient.photo.creation" /> - <short value="Date attachment was first created" /> - <definition value="The date that the attachment was first created." /> - <requirements value="This is often tracked as an integrity issue for use of the attachment." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Attachment.creation" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A (needs data type R3 proposal)" /> - </mapping> - </element> - <element> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Contact" /> - </extension> - <path value="Patient.contact" /> - <short value="A contact party (e.g. guardian, partner, friend) for the patient" /> - <definition value="A contact party (e.g. guardian, partner, friend) for the patient." /> - <comments value="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 value="Need to track people you can contact about the patient." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.contact" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="BackboneElement" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="name or telecom or address or organization" /> - </extension> - <key value="pat-1" /> - <severity value="error" /> - <human value="SHALL at least contain a contact's details or a reference to an organization" /> - <xpath value="f:name or f:telecom or f:address or f:organization" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/scopedRole[classCode=CON]" /> - </mapping> - </element> - <element> - <path value="Patient.contact.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.modifierExtension" /> - <short value="Extensions that cannot be ignored" /> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <alias value="modifiers" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="BackboneElement.modifierExtension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship" /> - <short value="The kind of relationship" /> - <definition value="The nature of the relationship between the patient and the contact person." /> - <comments value="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 value="Used to determine which contact person is the most relevant to approach, depending on circumstances." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.contact.relationship" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="extensible" /> - <description value="The nature of the relationship between a patient and a contact person for that patient." /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-PersonRelationshipType-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-7, NK1-3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="code" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <exampleUri value="https://fhir.hl7.org.uk/CareConnect-PersonRelationshipType-1" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="0" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="0" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.contact.relationship.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="0" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name" /> - <short value="A name associated with the contact person" /> - <definition value="A name associated with the contact person." /> - <comments value="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 may or may 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 value="Contact persons need to be identified by name, but it is uncommon to need details about multiple other names for that contact person." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.contact.name" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="HumanName" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="EN (actually, PN)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ProviderName" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="name" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.use" /> - <short value="usual | official | temp | nickname | anonymous | old | maiden" /> - <definition value="Identifies the purpose for this name." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old name etc.for a current/permanent one. Applications can assume that a name is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows the appropriate name for a particular context of use to be selected from among a set of names." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of a human name" /> - <valueSet value="http://hl7.org/fhir/ValueSet/name-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.7, but often indicated by which field contains the name" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./NamePurpose" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.text" /> - <short value="Text representation of the full name" /> - <definition value="A full text representation of the name." /> - <comments value="Can provide both a text representation and structured parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="HumanName.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="implied by XPN.11" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.family" /> - <short value="Family name (often called 'Surname')" /> - <definition value="The part of a name that links to the genealogy. In some cultures (e.g. Eritrea) the family name of a son is the first name of his father." /> - <comments value="For family name, hyphenated names such as "Smith-Jones" are a single name, but names with spaces such as "Smith Jones" are broken into multiple parts." /> - <alias value="surname" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="HumanName.family" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = FAM]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./FamilyName" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.given" /> - <short value="Given names (not always 'first'). Includes middle names" /> - <definition value="Given name." /> - <comments value="If only initials are recorded, they may be used in place of the full name. Not called "first name" since given names do not always come first." /> - <alias value="first name" /> - <alias value="middle name" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="HumanName.given" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.2 + XPN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = GIV]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./GivenNames" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.prefix" /> - <short value="Parts that come before the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the start of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.prefix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = PFX]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./TitleCode" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.suffix" /> - <short value="Parts that come after the name" /> - <definition value="Part of the name that is acquired as a title due to academic, legal, employment or nobility status, etc. and that appears at the end of the name." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="HumanName.suffix" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN/4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./part[partType = SFX]" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.period" /> - <short value="Time period when name was/is in use" /> - <definition value="Indicates the period of time when this name was valid for the named person." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows names to be placed in historical context." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="HumanName.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XPN.13 + XPN.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.contact.name.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom" /> - <short value="A contact detail for the person" /> - <definition value="A contact detail for the person, e.g. a telephone number or an email address." /> - <comments value="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 value="People have (primary) ways to contact them in some way such as phone, email." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.contact.telecom" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="ContactPoint" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="value.empty() or system" /> - </extension> - <key value="cpt-2" /> - <severity value="error" /> - <human value="A system is required if a value is provided." /> - <xpath value="not(exists(f:value)) or exists(f:system)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="TEL" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="ContactPoint" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-5, NK1-6, NK1-40" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="telecom" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.system" /> - <short value="phone | fax | email | pager | other" /> - <definition value="Telecommunications form for contact point - what communications system is required to make use of the contact." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <condition value="cpt-2" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Telecommunications form for contact point" /> - <valueSet value="http://hl7.org/fhir/ValueSet/contact-point-system" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./scheme" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./ContactPointType" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.value" /> - <short value="The actual contact point details" /> - <definition value="The actual contact point details, in a form that is meaningful to the designated communication system (i.e. phone number or email address)." /> - <comments value="Additional text data such as phone extension numbers, or notes about use of the contact are sometimes included in the value." /> - <requirements value="Need to support legacy numbers that are not in a tightly controlled format." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.value" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.1 (or XTN.12)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./url" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Value" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.use" /> - <short value="home | work | temp | old | mobile - purpose of this contact point" /> - <definition value="Identifies the purpose for the contact point." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old contact etc.for a current/permanent one. Applications can assume that a contact is current unless it explicitly says that it is temporary or old." /> - <requirements value="Need to track the way a person uses this contact, so a user can choose which is appropriate for their purpose." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="Use of contact point" /> - <valueSet value="http://hl7.org/fhir/ValueSet/contact-point-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XTN.2 - but often indicated by field" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./ContactPointPurpose" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.rank" /> - <short value="Specify preferred order of use (1 = highest)" /> - <definition value="Specifies a preferred order in which to use a set of contacts. Contacts are ranked with lower values coming before higher values." /> - <comments value="Note that rank does not necessarily follow the order in which the contacts are represented in the instance." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="ContactPoint.rank" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="positiveInt" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.period" /> - <short value="Time period when the contact point was/is in use" /> - <definition value="Time period when the contact point was/is in use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="ContactPoint.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./useablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.contact.telecom.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address" /> - <short value="Address for the contact person" /> - <definition value="Address for the contact person." /> - <comments value="Note: address is for postal addresses, not physical locations." /> - <requirements value="Need to keep track where the contact person can be contacted per postal mail or visited." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.contact.address" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Address" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="Address" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="addr" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.use" /> - <short value="home | work | temp | old - purpose of this address" /> - <definition value="The purpose of this address." /> - <comments value="This is labeled as "Is Modifier" because applications should not mistake a temporary or old address etc.for a current/permanent one. Applications can assume that an address is current unless it explicitly says that it is temporary or old." /> - <requirements value="Allows an appropriate address to be chosen from a list of many." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.use" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="home" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The use of an address" /> - <valueSet value="http://hl7.org/fhir/ValueSet/address-use" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./AddressPurpose" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.type" /> - <short value="postal | physical | both" /> - <definition value="Distinguishes between physical addresses (those you can visit) and mailing addresses (e.g. PO Boxes and care-of addresses). Most addresses are both." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.type" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <exampleCode value="both" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="The type of an address (physical / postal)" /> - <valueSet value="http://hl7.org/fhir/ValueSet/address-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.18" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="unique(./use)" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="address type parameter" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.text" /> - <short value="Text representation of the address" /> - <definition value="A full text representation of the address." /> - <comments value="Can provide both a text representation and parts." /> - <requirements value="A renderable, unencoded form." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="120, Grove Street, Overtown, West Yorkshire, LS21 1PT" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.1 + XAD.2 + XAD.3 + XAD.4 + XAD.5 + XAD.6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./formatted" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="address label parameter" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.line" /> - <short value="Street name, number, direction & P.O. Box etc." /> - <definition value="This component contains the house number, apartment number, street name, street direction, P.O. Box number, delivery hints, and similar address information." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="home | work | temp | old - purpose of this address." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Address.line" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="120, Grove Street" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.1 + XAD.2 (note: XAD.1 and XAD.2 have different meanings for a company address than for a person address)" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = AL]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="street" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StreetAddress (newline delimitted)" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.city" /> - <short value="Name of city, town etc." /> - <definition value="The name of the city, town, village or other community or delivery center." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Municpality" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.city" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="Overtown" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CTY]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="locality" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Jurisdiction" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.district" /> - <short value="District name (aka county)" /> - <definition value="The name of the administrative area (county)." /> - <comments value="District is sometimes known as county, but in some regions 'county' is used in place of city (municipality), so county name should be conveyed in city instead." /> - <alias value="County" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.district" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="West Yorkshire" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.9" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CNT | CPA]" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.state" /> - <short value="Sub-unit of country (abbreviations ok)" /> - <definition value="Sub-unit of a country with limited sovereignty in a federally organized country. A code may be used if codes are in common use (i.e. US 2 letter state codes)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Province" /> - <alias value="Territory" /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Address.state" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = STA]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="region" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Region" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.postalCode" /> - <short value="Postal code for area" /> - <definition value="A postal code designating a region defined by the postal service." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <alias value="Zip" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.postalCode" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="LS21 1PT" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.5" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = ZIP]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="code" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./PostalIdentificationCode" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.country" /> - <short value="Country (can be ISO 3166 3 letter code)" /> - <definition value="Country - a nation as commonly understood or generally accepted." /> - <comments value="ISO 3166 3 letter codes can be used in place of a full country name." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.country" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <exampleString value="GBR" /> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="AD.part[parttype = CNT]" /> - </mapping> - <mapping> - <identity value="vcard" /> - <map value="country" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./Country" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.period" /> - <short value="Time period when address was/is in use" /> - <definition value="Time period when address was/is in use." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <requirements value="Allows addresses to be placed in historical context." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Address.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <examplePeriod> - <start value="2010-03-23T00:00:00" /> - <end value="2010-07-01T00:00:00" /> - </examplePeriod> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="XAD.12 / XAD.13 + XAD.14" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./usablePeriod[type="IVL<TS>"]" /> - </mapping> - <mapping> - <identity value="servd" /> - <map value="./StartDate and ./EndDate" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.contact.address.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <path value="Patient.contact.gender" /> - <short value="male | female | other | unknown" /> - <definition value="Administrative Gender - the gender that the contact person is considered to have for administration and record keeping purposes." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Needed to address the person correctly." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.contact.gender" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <binding> - <strength value="required" /> - <description value="The gender of a person used for administrative purposes." /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-AdministrativeGender-1" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-15" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/administrativeGender" /> - </mapping> - </element> - <element> - <path value="Patient.contact.organization" /> - <short value="Organization that is associated with the contact" /> - <definition value="Organization on behalf of which the contact is acting or for which the contact is working." /> - <requirements value="For guardians or business related contacts, the organization is relevant." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.contact.organization" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="http://hl7.org/fhir/StructureDefinition/Organization" /> - </type> - <condition value="ele-1" /> - <condition value="pat-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="NK1-13, NK1-30, NK1-31, NK1-32, NK1-41" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="scoper" /> - </mapping> - </element> - <element> - <path value="Patient.contact.organization.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.organization.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.organization.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.organization.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.period" /> - <short value="The period during which this contact person or organization is valid to be contacted relating to this patient" /> - <definition value="The period during which this contact person or organization is valid to be contacted relating to this patient." /> - <comments value="This is not a duration - that's a measure of time (a separate type), but a duration that occurs at a fixed value of time. 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"). If duration is required, specify the type as Interval|Duration." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.contact.period" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Period" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="start.empty() or end.empty() or (start <= end)" /> - </extension> - <key value="per-1" /> - <severity value="error" /> - <human value="If present, start SHALL have a lower value than end" /> - <xpath value="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="IVL<TS>[lowClosed="true" and highClosed="true"] or URG<TS>[lowClosed="true" and highClosed="true"]" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="effectiveTime" /> - </mapping> - </element> - <element> - <path value="Patient.contact.period.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.contact.period.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.contact.period.start" /> - <short value="Starting time with inclusive boundary" /> - <definition value="The start of the period. The boundary is inclusive." /> - <comments value="If the low element is missing, the meaning is that the low boundary is not known." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.start" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./low" /> - </mapping> - </element> - <element> - <path value="Patient.contact.period.end" /> - <short value="End time with inclusive boundary, if not ongoing" /> - <definition value="The end of the period. If the end of the period is missing, it means that the period is ongoing. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." /> - <comments value="The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has a end value of 2012-02-03." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Period.end" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="dateTime" /> - </type> - <meaningWhenMissing value="If the end of the period is missing, it means that the period is ongoing" /> - <condition value="ele-1" /> - <condition value="per-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="DR.2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./high" /> - </mapping> - </element> - <element> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Animal" /> - </extension> - <path value="Patient.animal" /> - <short value="This patient is known to be an animal (non-human)" /> - <definition value="This patient is known to be an animal." /> - <comments value="The animal element is labeled "Is Modifier" since patients may be non-human. Systems SHALL either handle patient details appropriately (e.g. inform users patient is not human) or reject declared animal records. The absense of the animal element does not imply that the patient is a human. If a system requires such a positive assertion that the patient is human, an extension will be required. (Do not use a species of homo-sapiens in animal species, as this would incorrectly infer that the patient is an animal)." /> - <requirements value="Many clinical systems are extended to care for animal patients as well as human." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Patient.animal" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="BackboneElement" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=ANM]" /> - </mapping> - </element> - <element> - <path value="Patient.animal.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.modifierExtension" /> - <short value="Extensions that cannot be ignored" /> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <alias value="modifiers" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="BackboneElement.modifierExtension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species" /> - <short value="E.g. Dog, Cow" /> - <definition value="Identifies the high level taxonomic categorization of the kind of animal." /> - <comments value="If the patient is non-human, at least a species SHALL be specified. Species SHALL be a widely recognised taxonomic classification. It may or may not be Linnaean taxonomy and may or may not be at the level of species. If the level is finer than species--such as a breed code--the code system used SHALL allow inference of the species. (The common example is that the word "Hereford" does not allow inference of the species Bos taurus, because there is a Hereford pig breed, but the SNOMED CT code for "Hereford Cattle Breed" does.)." /> - <requirements value="Need to know what kind of animal." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.animal.species" /> - <min value="1" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="example" /> - <description value="The species of an animal." /> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-species" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-35" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="code" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.animal.species.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed" /> - <short value="E.g. Poodle, Angus" /> - <definition value="Identifies the detailed categorization of the kind of animal." /> - <comments value="Breed MAY be used to provide further taxonomic or non-taxonomic classification. It may involve local or proprietary designation--such as commercial strain--and/or additional information such as production type." /> - <requirements value="May need to know the specific kind within the species." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.animal.breed" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="example" /> - <description value="The breed of an animal." /> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-breeds" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-37" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="playedRole[classCode=GEN]/scoper[classCode=ANM, determinerCode=KIND]/code" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.animal.breed.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus" /> - <short value="E.g. Neutered, Intact" /> - <definition value="Indicates the current state of the animal's reproductive organs." /> - <comments value="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 value="Gender status can affect housing and animal behavior." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.animal.genderStatus" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="example" /> - <description value="The state of the animal's reproductive organs." /> - <valueSet value="http://hl7.org/fhir/ValueSet/animal-genderstatus" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="N/A" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="genderStatusCode" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.animal.genderStatus.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.communication" /> - <short value="A list of Languages which may be used to communicate with the patient about his or her health" /> - <definition value="Languages which may be used to communicate with the patient about his or her health." /> - <comments value="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 value="If a patient does not speak the local language, interpreters may be required, so languages spoken and proficiency is an important things to keep track of both for patient and other persons of interest." /> - <min value="0" /> - <max value="0" /> - <base> - <path value="Patient.communication" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="BackboneElement" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="patient.languageCommunication" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="LanguageCommunication" /> - </mapping> - </element> - <element> - <path value="Patient.communication.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.communication.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.communication.modifierExtension" /> - <short value="Extensions that cannot be ignored" /> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <alias value="modifiers" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="BackboneElement.modifierExtension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language" /> - <short value="The language which can be used to communicate with the patient about his or her health" /> - <definition value="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." /> - <comments value="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 value="Most systems in multilingual countries will want to convey language. Not all systems actually need the regional dialect." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.communication.language" /> - <min value="1" /> - <max value="1" /> - </base> - <type> - <code value="CodeableConcept" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <binding> - <strength value="required" /> - <description value="A human language." /> - <valueSet value="http://tools.ietf.org/html/bcp47" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept rdfs:subClassOf dt:CD" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".languageCode" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-15, LAN-2" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="player[classCode=PSN|ANM and determinerCode=INSTANCE]/languageCommunication/code" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding" /> - <short value="Code defined by a terminology system" /> - <definition value="A reference to a code defined by a terminology system." /> - <comments value="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 labelled as UserSelected = true." /> - <requirements value="Allows for translations and alternate encodings within a code system. Also supports communication of the same instance to systems requiring different encodings." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="CodeableConcept.coding" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Coding" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="CE/CNE/CWE subset one of the sets of component 1-3 or 4-6" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding rdfs:subClassOf dt:CDCoding" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1-8, C*E.10-22" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="union(., ./translation)" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.system" /> - <short value="Identity of the terminology system" /> - <definition value="The identification of the code system that defines the meaning of the symbol in the code." /> - <comments value="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 de-reference to some definition that establish the system clearly and unambiguously." /> - <requirements value="Need to be unambiguous about the source of the definition of the symbol." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.system" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="uri" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.3" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystem" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.system rdfs:subPropertyOf dt:CDCoding.codeSystem" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.version" /> - <short value="Version of the system - if relevant" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.version" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.7" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./codeSystemVersion" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.version rdfs:subPropertyOf dt:CDCoding.codeSystemVersion" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.code" /> - <short value="Symbol in syntax defined by the system" /> - <definition value="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)." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to refer to a particular code in the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.code" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./code" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.code rdfs:subPropertyOf dt:CDCoding.code" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.display" /> - <short value="Representation defined by the system" /> - <definition value="A representation of the meaning of the code in the system, following the rules of the system." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <requirements value="Need to be able to carry a human-readable meaning of the code for readers that do not know the system." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Coding.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.2 - but note this is not well followed" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CV.displayName" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:Coding.display rdfs:subPropertyOf dt:CDCoding.displayName" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.coding.userSelected" /> - <short value="If this coding was chosen directly by the user" /> - <definition value="Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)." /> - <comments value="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 value="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 value="0" /> - <max value="1" /> - <base> - <path value="Coding.userSelected" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="Sometimes implied by being first" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="CD.codingRationale" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="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 ]" /> - </mapping> - </element> - <element> - <path value="Patient.communication.language.text" /> - <short value="Plain text representation of the concept" /> - <definition value="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." /> - <comments value="Very often the text is the same as a displayName of one of the codings." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="CodeableConcept.text" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="C*E.9. But note many systems use C*E.2 for this" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="./originalText[mediaType/code="text/plain"]/data" /> - </mapping> - <mapping> - <identity value="orim" /> - <map value="fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText" /> - </mapping> - </element> - <element> - <path value="Patient.communication.preferred" /> - <short value="Language preference indicator" /> - <definition value="Indicates whether or not the patient prefers this language (over other languages he masters up a certain level)." /> - <comments value="This language is specifically identified for communicating healthcare information." /> - <requirements value="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 value="0" /> - <max value="1" /> - <base> - <path value="Patient.communication.preferred" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="boolean" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".preferenceInd" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-15" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="preferenceInd" /> - </mapping> - </element> - <element> - <path value="Patient.careProvider" /> - <short value="Patient's nominated practitioner" /> - <definition value="Patient's nominated care provider." /> - <comments value="This may be the primary care provider (in a GP context), or it may be a patient nominated care manager in a community/disablity setting, or even organization that will provide people to perform the care provider roles. This is not to be used to record Care Teams, these should be recorded on either the CarePlan or EpisodeOfCare resources." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.careProvider" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Practitioner-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PD1-4" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="subjectOf.CareEvent.performer.AssignedEntity" /> - </mapping> - </element> - <element> - <path value="Patient.managingOrganization" /> - <short value="Organization that is the custodian of the patient record" /> - <definition value="Organization that is the custodian of the patient record." /> - <comments value="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 value="Need to know who recognizes this patient record, manages and updates it." /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Patient.managingOrganization" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value=".providerOrganization" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="scoper" /> - </mapping> - </element> - <element> - <path value="Patient.managingOrganization.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.managingOrganization.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.managingOrganization.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.managingOrganization.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link" /> - <short value="Link to another patient resource that concerns the same actual person" /> - <definition value="Link to another patient resource that concerns the same actual patient." /> - <comments value="There is no assumption that linked patient records have mutual links." /> - <requirements value="There are multiple usecases: * Duplicate patient records due to the clerical errors associated with the difficulties of identifying humans consistently, and * Distribution of patient information across multiple servers." /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Patient.link" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="BackboneElement" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="outboundLink" /> - </mapping> - </element> - <element> - <path value="Patient.link.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.link.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link.modifierExtension" /> - <short value="Extensions that cannot be ignored" /> - <definition value="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 that contains it. Usually modifier elements provide negation or qualification. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <alias value="modifiers" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="BackboneElement.modifierExtension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link.other" /> - <short value="The other patient resource that the link refers to" /> - <definition value="The other patient resource that the link refers to." /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.link.other" /> - <min value="1" /> - <max value="1" /> - </base> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Patient-1" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="reference.startsWith('#').not() or (reference.substring(1).trace('url') in %resource.contained.id.trace('ids'))" /> - </extension> - <key value="ref-1" /> - <severity value="error" /> - <human value="SHALL have a local reference if the resource is provided inline" /> - <xpath value="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, '#')])" /> - </constraint> - <isModifier value="true" /> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="The target of a resource reference is a RIM entry point (Act, Role, or Entity)" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="v2" /> - <map value="PID-3, MRG-1" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="id" /> - </mapping> - </element> - <element> - <path value="Patient.link.other.id" /> - <short value="xml:id (or equivalent in JSON)" /> - <definition value="unique id for the element within a resource (for internal references)." /> - <comments value="RFC 4122" /> - <min value="0" /> - <max value="1" /> - <base> - <path value="Element.id" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="id" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - </element> - <element> - <path value="Patient.link.other.extension" /> - <short value="Additional Content defined by implementations" /> - <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order to make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." /> - <comments value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." /> - <alias value="extensions" /> - <alias value="user content" /> - <min value="0" /> - <max value="*" /> - <base> - <path value="Element.extension" /> - <min value="0" /> - <max value="*" /> - </base> - <type> - <code value="Extension" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link.other.reference" /> - <short value="Relative, internal or absolute URL reference" /> - <definition value="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." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.reference" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <condition value="ref-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link.other.display" /> - <short value="Text alternative for the resource" /> - <definition value="Plain text narrative that identifies the resource in addition to the resource reference." /> - <comments value="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 value="0" /> - <max value="1" /> - <base> - <path value="Reference.display" /> - <min value="0" /> - <max value="1" /> - </base> - <type> - <code value="string" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isSummary value="true" /> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="N/A" /> - </mapping> - </element> - <element> - <path value="Patient.link.type" /> - <short value="replace | refer | seealso - type of link" /> - <definition value="The type of link between this patient resource and another patient resource." /> - <comments value="Note that FHIR strings may not exceed 1MB in size" /> - <min value="1" /> - <max value="1" /> - <base> - <path value="Patient.link.type" /> - <min value="1" /> - <max value="1" /> - </base> - <type> - <code value="code" /> - </type> - <condition value="ele-1" /> - <constraint> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-expression"> - <valueString value="children()" /> - </extension> - <key value="ele-1" /> - <severity value="error" /> - <human value="All FHIR elements must have a @value or children" /> - <xpath value="@value|f:*|h:div" /> - </constraint> - <isModifier value="true" /> - <binding> - <strength value="required" /> - <description value="The type of link between this patient resource and another patient resource." /> - <valueSet value="http://hl7.org/fhir/ValueSet/link-type" /> - </binding> - <mapping> - <identity value="rim" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="cda" /> - <map value="n/a" /> - </mapping> - <mapping> - <identity value="rim" /> - <map value="typeCode" /> - </mapping> - </element> - </snapshot> - <differential> - <element> - <path value="Patient" /> - <short value="The Patient resource carries the patient demographic details." /> - <type> - <code value="Patient" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - </element> - <element> - <path value="Patient.extension" /> - <name value="registrationDetails" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-RegistrationDetails-1" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="ethnicCategory" /> - <max value="1" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-EthnicCategory-1" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="religiousAffiliation" /> - <max value="1" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-ReligiousAffiliation-1" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="patient-cadavericDonor" /> - <max value="1" /> - <type> - <code value="Extension" /> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-cadavericDonor" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="residentialStatus" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-ResidentialStatus-1" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="treatmentCategory" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-TreatmentCategory-1" /> - </type> - </element> - <element> - <path value="Patient.extension" /> - <name value="nhsCommunication" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-NHSCommunication-1" /> - </type> - </element> - <element> - <path value="Patient.identifier" /> - <slicing> - <discriminator value="system" /> - <ordered value="true" /> - <rules value="openAtEnd" /> - </slicing> - </element> - <element> - <path value="Patient.identifier" /> - <name value="nhsNumber" /> - <short value="The patient's NHS number" /> - <definition value="The patient's NHS number" /> - <max value="1" /> - </element> - <element> - <path value="Patient.identifier.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - </element> - <element> - <path value="Patient.identifier.extension" /> - <name value="nhsNumberVerificationStatus" /> - <min value="1" /> - <max value="1" /> - <type> - <code value="Extension" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1" /> - </type> - </element> - <element> - <path value="Patient.identifier.use" /> - <max value="0" /> - </element> - <element> - <path value="Patient.identifier.type" /> - <max value="0" /> - <binding> - <strength value="extensible" /> - <valueSet value="http://hl7.org/fhir/ValueSet/identifier-type" /> - </binding> - </element> - <element> - <path value="Patient.identifier.system" /> - <min value="1" /> - <fixedUri value="https://fhir.nhs.uk/Id/nhs-number" /> - </element> - <element> - <path value="Patient.identifier.value" /> - <short value="Ten numeric digit NHS number" /> - <min value="1" /> - </element> - <element> - <path value="Patient.identifier.period" /> - <max value="0" /> - </element> - <element> - <path value="Patient.identifier.assigner" /> - <max value="0" /> - </element> - <element> - <path value="Patient.identifier" /> - <name value="localIdentifier" /> - <short value=" The patient's other identifiers" /> - </element> - <element> - <path value="Patient.identifier.system" /> - <min value="1" /> - <fixedUri value="https://fhir.nhs.uk/Id/local-patient-identifier" /> - </element> - <element> - <path value="Patient.identifier.value" /> - <min value="1" /> - </element> - <element> - <path value="Patient.identifier.assigner" /> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - </element> - <element> - <path value="Patient.name" /> - <slicing> - <discriminator value="use" /> - <discriminator value="period.end" /> - <ordered value="false" /> - <rules value="openAtEnd" /> - </slicing> - <min value="1" /> - </element> - <element> - <path value="Patient.name" /> - <name value="usual" /> - <short value="The patient's current usual name" /> - <definition value="The patient's current usual name" /> - <min value="1" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.use" /> - <min value="1" /> - <fixedCode value="usual" /> - </element> - <element> - <path value="Patient.name.family" /> - <min value="1" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.prefix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.suffix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.period.end" /> - <max value="0" /> - </element> - <element> - <path value="Patient.name" /> - <name value="other" /> - <short value="The patient's other names" /> - <definition value="The patient's other names" /> - </element> - <element> - <path value="Patient.name.use" /> - <min value="1" /> - </element> - <element> - <path value="Patient.name.family" /> - <min value="1" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.prefix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.name.suffix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.telecom.system" /> - <min value="1" /> - </element> - <element> - <path value="Patient.telecom.value" /> - <min value="1" /> - </element> - <element> - <path value="Patient.telecom.rank" /> - <max value="0" /> - </element> - <element> - <path value="Patient.gender" /> - <min value="1" /> - <binding> - <strength value="required" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-AdministrativeGender-1" /> - </binding> - </element> - <element> - <path value="Patient.birthDate" /> - <short value="The date of birth for the patient" /> - <min value="1" /> - </element> - <element> - <path value="Patient.birthDate.extension" /> - <slicing> - <discriminator value="url" /> - <rules value="open" /> - </slicing> - </element> - <element> - <path value="Patient.birthDate.extension" /> - <name value="patient-birthTime" /> - <type> - <code value="Extension" /> - <profile value="http://hl7.org/fhir/StructureDefinition/patient-birthTime" /> - </type> - </element> - <element> - <path value="Patient.address.text" /> - <exampleString value="42 Grove Street, Overtown, West Yorkshire, LS21 1PF" /> - </element> - <element> - <path value="Patient.address.line" /> - <exampleString value="42, Grove Street" /> - </element> - <element> - <path value="Patient.address.city" /> - <exampleString value="Overtown" /> - </element> - <element> - <path value="Patient.address.district" /> - <exampleString value="West Yorkshire" /> - </element> - <element> - <path value="Patient.address.state" /> - <max value="0" /> - </element> - <element> - <path value="Patient.address.postalCode" /> - <exampleString value="LS21 1PF" /> - </element> - <element> - <path value="Patient.address.country" /> - <exampleString value="GBR" /> - </element> - <element> - <path value="Patient.address.period" /> - <examplePeriod> - <start value="2010-03-23T00:00:00" /> - <end value="2010-07-01T00:00:00" /> - </examplePeriod> - </element> - <element> - <path value="Patient.maritalStatus" /> - <binding> - <strength value="required" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-MaritalStatus-1" /> - </binding> - </element> - <element> - <path value="Patient.maritalStatus.coding" /> - <min value="1" /> - <max value="1" /> - </element> - <element> - <path value="Patient.maritalStatus.coding.system" /> - <min value="1" /> - <exampleUri value="http://hl7.org/fhir/v3/MaritalStatus" /> - </element> - <element> - <path value="Patient.maritalStatus.coding.version" /> - <max value="0" /> - </element> - <element> - <path value="Patient.maritalStatus.coding.code" /> - <min value="1" /> - </element> - <element> - <path value="Patient.maritalStatus.coding.display" /> - <min value="1" /> - </element> - <element> - <path value="Patient.maritalStatus.coding.userSelected" /> - <max value="0" /> - </element> - <element> - <path value="Patient.maritalStatus.text" /> - <max value="0" /> - </element> - <element> - <path value="Patient.photo" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.relationship" /> - <binding> - <strength value="extensible" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-PersonRelationshipType-1" /> - </binding> - </element> - <element> - <path value="Patient.contact.relationship.coding.system" /> - <min value="1" /> - <exampleUri value="https://fhir.hl7.org.uk/CareConnect-PersonRelationshipType-1" /> - </element> - <element> - <path value="Patient.contact.relationship.coding.version" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.relationship.coding.code" /> - <min value="1" /> - </element> - <element> - <path value="Patient.contact.relationship.coding.display" /> - <min value="1" /> - </element> - <element> - <path value="Patient.contact.relationship.coding.userSelected" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.relationship.text" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.name" /> - <min value="1" /> - </element> - <element> - <path value="Patient.contact.name.use" /> - <min value="1" /> - </element> - <element> - <path value="Patient.contact.name.text" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.name.family" /> - <min value="1" /> - <max value="1" /> - </element> - <element> - <path value="Patient.contact.name.prefix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.contact.name.suffix" /> - <max value="1" /> - </element> - <element> - <path value="Patient.contact.name.period" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.telecom.rank" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.address.text" /> - <exampleString value="120, Grove Street, Overtown, West Yorkshire, LS21 1PT" /> - </element> - <element> - <path value="Patient.contact.address.line" /> - <exampleString value="120, Grove Street" /> - </element> - <element> - <path value="Patient.contact.address.city" /> - <exampleString value="Overtown" /> - </element> - <element> - <path value="Patient.contact.address.district" /> - <exampleString value="West Yorkshire" /> - </element> - <element> - <path value="Patient.contact.address.state" /> - <max value="0" /> - </element> - <element> - <path value="Patient.contact.address.postalCode" /> - <exampleString value="LS21 1PT" /> - </element> - <element> - <path value="Patient.contact.address.country" /> - <exampleString value="GBR" /> - </element> - <element> - <path value="Patient.contact.address.period" /> - <examplePeriod> - <start value="2010-03-23T00:00:00" /> - <end value="2010-07-01T00:00:00" /> - </examplePeriod> - </element> - <element> - <path value="Patient.contact.gender" /> - <binding> - <strength value="required" /> - <valueSet value="https://fhir.hl7.org.uk/ValueSet/CareConnect-AdministrativeGender-1" /> - </binding> - </element> - <element> - <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name"> - <valueString value="Animal" /> - </extension> - <path value="Patient.animal" /> - <max value="0" /> - </element> - <element> - <path value="Patient.communication" /> - <max value="0" /> - </element> - <element> - <path value="Patient.careProvider" /> - <short value="Patient's nominated practitioner" /> - <max value="1" /> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Practitioner-1" /> - </type> - </element> - <element> - <path value="Patient.managingOrganization" /> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Organization-1" /> - </type> - </element> - <element> - <path value="Patient.link.other" /> - <type> - <code value="Reference" /> - <profile value="https://fhir.hl7.org.uk/StructureDefinition/CareConnect-Patient-1" /> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-bad-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-bad-1.xml deleted file mode 100644 index 4b2b3317b..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-bad-1.xml +++ /dev/null @@ -1,68 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <contained> - <Basic> - <id value="i1"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i2"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i3"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i4"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile3"/> - </coding> - </code> - </Basic> - </contained> - <status value="current"/> - <mode value="working"/> - <entry> - <item> - <reference value="#i1"/> - </item> - </entry> - <entry> - <item> - <reference value="#i2"/> - </item> - </entry> - <entry> - <item> - <reference value="#i3"/> - </item> - </entry> - <entry> - <item> - <reference value="#i4"/> - </item> - </entry> -</List> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-ok-1.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-ok-1.xml deleted file mode 100644 index dd613032e..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-ok-1.xml +++ /dev/null @@ -1,68 +0,0 @@ -<List xmlns="http://hl7.org/fhir"> - <contained> - <Basic> - <id value="i1"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile1"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i2"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i3"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile2"/> - </coding> - </code> - </Basic> - </contained> - <contained> - <Basic> - <id value="i4"/> - <code> - <coding> - <system value="http://hl7.org/fhir/test/CodeSystem/profile-slicing-codes"/> - <code value="profile3"/> - </coding> - </code> - </Basic> - </contained> - <status value="current"/> - <mode value="working"/> - <entry> - <item> - <reference value="#i1"/> - </item> - </entry> - <entry> - <item> - <reference value="#i2"/> - </item> - </entry> - <entry> - <item> - <reference value="#i3"/> - </item> - </entry> - <entry> - <item> - <reference value="#i4"/> - </item> - </entry> -</List> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-profile-open.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-profile-open.xml deleted file mode 100644 index a210c84a7..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/value-slicing-profile-open.xml +++ /dev/null @@ -1,66 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="profile-slicing-profile-list"/> - <url value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-list"/> - <version value="0.1.0"/> - <name value="TestProfileList"/> - <title value="Test Profile List"/> - <status value="draft"/> - <date value="3017-09-06T06:30:54+00:00"/> - <publisher value="HL7"/> - <fhirVersion value="4.0.0"/> - <kind value="resource"/> - <abstract value="false"/> - <type value="List"/> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/List"/> - <derivation value="constraint"/> - <differential> - <element id="List.entry"> - <path value="List.entry"/> - <slicing> - <discriminator> - <type value="value"/> - <path value="item.resolve().code"/> - </discriminator> - <ordered value="false"/> - <rules value="open"/> - </slicing> - </element> - <element id="List.entry:slice1"> - <path value="List.entry"/> - <sliceName value="slice1"/> - <min value="1"/> - </element> - <element id="List.entry:slice1.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-1"/> - </type> - </element> - <element id="List.entry:slice2"> - <path value="List.entry"/> - <sliceName value="slice2"/> - <min value="1"/> - <max value="3"/> - </element> - <element id="List.entry:slice2.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-2"/> - </type> - </element> - <element id="List.entry:slice3"> - <path value="List.entry"/> - <sliceName value="slice3"/> - <max value="1"/> - </element> - <element id="List.entry:slice3.item"> - <path value="List.entry.item"/> - <type> - <code value="Reference"/> - <targetProfile value="http://hl7.org/fhir/test/StructureDefinition/profile-slicing-profile-3"/> - </type> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-cs.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-cs.xml deleted file mode 100644 index 99e049527..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-cs.xml +++ /dev/null @@ -1,40 +0,0 @@ -<CodeSystem xmlns="http://hl7.org/fhir"> - <url value="http://tst.org/fhir/CodeSystem/test-meds"/> - <status value="draft"/> - <content value="complete"/> - <concept> - <code value="s1"/> - <display value="Slice 1"/> - </concept> - <concept> - <code value="s1a"/> - <display value="Slice 1(a)"/> - </concept> - - <concept> - <code value="s2"/> - <display value="Slice 2"/> - </concept> - <concept> - <code value="s2a"/> - <display value="Slice 2(a)"/> - </concept> - - <concept> - <code value="s3"/> - <display value="Slice 3"/> - </concept> - <concept> - <code value="s3a"/> - <display value="Slice 3(a)"/> - </concept> - - <concept> - <code value="s4"/> - <display value="Slice 4"/> - </concept> - <concept> - <code value="s4a"/> - <display value="Slice 4(a)"/> - </concept> -</CodeSystem> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-profile.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-profile.xml deleted file mode 100644 index 886beb1be..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-med-profile.xml +++ /dev/null @@ -1,146 +0,0 @@ -<StructureDefinition xmlns="http://hl7.org/fhir"> - <id value="zib-Product" /> - <contained> - <ValueSet> - <id value="v1"/> - <status value="draft"/> - <compose> - <include> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <concept> - <code value="s1"/> - </concept> - <concept> - <code value="s1a"/> - </concept> - </include> - </compose> - </ValueSet> - </contained> - <contained> - <ValueSet> - <id value="v2"/> - <status value="draft"/> - <compose> - <include> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <concept> - <code value="s2"/> - </concept> - <concept> - <code value="s2a"/> - </concept> - </include> - </compose> - </ValueSet> - </contained> - <contained> - <ValueSet> - <id value="v3"/> - <status value="draft"/> - <compose> - <include> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <concept> - <code value="s3"/> - </concept> - <concept> - <code value="s3a"/> - </concept> - </include> - </compose> - </ValueSet> - </contained> - <contained> - <ValueSet> - <id value="v4"/> - <status value="draft"/> - <compose> - <include> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <concept> - <code value="s4"/> - </concept> - <concept> - <code value="s4a"/> - </concept> - </include> - </compose> - </ValueSet> - </contained> - <url value="http://test.org/fhir/StructureDefinition/meds-test" /> - <version value="2.0.3" /> - <name value="MedicationSlicingByValueset" /> - <title value="Medication test: Slicing by valueset" /> - <status value="active" /> - <publisher value="HL7" /> - <description value="This profile test slicing by value set" /> - <copyright value="CC0" /> - <fhirVersion value="3.0.1" /> - <kind value="resource" /> - <abstract value="false" /> - <type value="Medication" /> - <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Medication" /> - <derivation value="constraint" /> - <differential> - <element id="Medication.code.coding"> - <path value="Medication.code.coding" /> - <slicing> - <discriminator> - <type value="value" /> - <path value="$this" /> - </discriminator> - <rules value="open" /> - </slicing> - <short value="Medication, Sliced by value set" /> - </element> - <element id="Medication.code.coding:slice1"> - <path value="Medication.code.coding" /> - <sliceName value="slice1" /> - <short value="Slice #1"/> - <max value="1" /> - <binding> - <strength value="required" /> - <valueSetReference> - <reference value="#v1" /> - </valueSetReference> - </binding> - </element> - <element id="Medication.code.coding:slice2"> - <path value="Medication.code.coding" /> - <sliceName value="slice2" /> - <short value="Slice #2"/> - <max value="1" /> - <binding> - <strength value="required" /> - <valueSetReference> - <reference value="#v2" /> - </valueSetReference> - </binding> - </element> - <element id="Medication.code.coding:slice3"> - <path value="Medication.code.coding" /> - <sliceName value="slice3" /> - <short value="Slice #3"/> - <max value="1" /> - <binding> - <strength value="required" /> - <valueSetReference> - <reference value="#v3" /> - </valueSetReference> - </binding> - </element> - <element id="Medication.code.coding:slice4"> - <path value="Medication.code.coding" /> - <sliceName value="slice4" /> - <short value="Slice #4"/> - <max value="1" /> - <binding> - <strength value="required" /> - <valueSetReference> - <reference value="#v4" /> - </valueSetReference> - </binding> - </element> - </differential> -</StructureDefinition> \ No newline at end of file diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds-bad.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds-bad.xml deleted file mode 100644 index ca6558925..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds-bad.xml +++ /dev/null @@ -1,19 +0,0 @@ -<Medication xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s1"/> - </coding> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s1"/> - </coding> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s3"/> - </coding> - <text value="some text"/> - </code> - <status value="active"/> - <isBrand value="false"/> -</Medication> diff --git a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds.xml b/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds.xml deleted file mode 100644 index 92294f4ee..000000000 --- a/org.hl7.fhir.validation/src/test/resources/validation-examples/valueset-slicing-meds.xml +++ /dev/null @@ -1,19 +0,0 @@ -<Medication xmlns="http://hl7.org/fhir"> - <code> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s1"/> - </coding> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s2"/> - </coding> - <coding> - <system value="http://tst.org/fhir/CodeSystem/test-meds"/> - <code value="s3"/> - </coding> - <text value="some text"/> - </code> - <status value="active"/> - <isBrand value="false"/> -</Medication> diff --git a/pom.xml b/pom.xml index 16b1852e4..d1de5433a 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ <properties> <hapi_fhir_version>4.0.0</hapi_fhir_version> + <validator_test_case_version>1.0-SNAPSHOT</validator_test_case_version> </properties> <artifactId>org.hl7.fhir.core</artifactId> From 5c96742a16a57d1f30cf85b2db260a6cb7db411f Mon Sep 17 00:00:00 2001 From: James Agnew <jamesagnew@gmail.com> Date: Fri, 25 Oct 2019 18:00:50 -0400 Subject: [PATCH 2/2] Remove fixme --- .../java/org/hl7/fhir/validation/tests/ValidationTestSuite.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java index aa23377b2..ad5209b60 100644 --- a/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java +++ b/org.hl7.fhir.validation/src/test/java/org/hl7/fhir/validation/tests/ValidationTestSuite.java @@ -109,8 +109,6 @@ public class ValidationTestSuite implements IEvaluationContext, IValidatorResour if (content.has("use-test") && !content.get("use-test").getAsBoolean()) return; - // FIXME - //String path = TestUtilities.resourceNameToFile("validation-examples", name.substring(name.indexOf(".")+1)); String testCaseContent = loadFileFromClasspath(name.substring(name.indexOf(".")+1)); InstanceValidator val = ve.getValidator();