Datasets:
Add pinned source: cql-clinical (part 8)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a.files.sha256.json +0 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/fhir-single.xsd +0 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/fhir-xhtml.xsd +2101 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/flag.sch +74 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/flag.xsd +126 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/goal.sch +92 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/goal.xsd +228 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/group.sch +72 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/group.xsd +207 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/guidanceresponse.sch +140 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/guidanceresponse.xsd +168 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/hdlcholesterol.sch +67 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/headcircum.sch +74 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/healthcareservice.sch +92 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/healthcareservice.xsd +283 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/heartrate.sch +74 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/hlaresult.sch +48 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingmanifest.sch +65 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingmanifest.xsd +211 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingstudy.sch +104 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingstudy.xsd +320 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunization.sch +130 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunization.xsd +264 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunizationrecommendation.sch +80 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunizationrecommendation.xsd +174 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/implementationguide.sch +83 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/implementationguide.xsd +383 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/ldlcholesterol.sch +75 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/library.sch +110 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/library.xsd +186 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/linkage.sch +56 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/linkage.xsd +117 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/lipidprofile.sch +33 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/list.sch +91 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/list.xsd +212 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/location.sch +80 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/location.xsd +207 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/mbp.sch +74 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measure.sch +116 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measure.xsd +565 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measurereport.sch +122 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measurereport.xsd +343 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/media.sch +69 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/media.xsd +146 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medication.sch +77 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medication.xsd +195 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationadministration.sch +157 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationadministration.xsd +228 -0
- source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationdispense.sch +226 -0
.gitattributes
CHANGED
|
@@ -91,3 +91,4 @@ source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/ar
|
|
| 91 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/archive/documents/DataAccessSeparation_SideBySide.pptx filter=lfs diff=lfs merge=lfs -text
|
| 92 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/CMS986/CMS986FHIR-v0.3.000-FHIR.json filter=lfs diff=lfs merge=lfs -text
|
| 93 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/CMS986/CMS986FHIR-v0.3.000-FHIR.xml filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 91 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/archive/documents/DataAccessSeparation_SideBySide.pptx filter=lfs diff=lfs merge=lfs -text
|
| 92 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/CMS986/CMS986FHIR-v0.3.000-FHIR.json filter=lfs diff=lfs merge=lfs -text
|
| 93 |
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/CMS986/CMS986FHIR-v0.3.000-FHIR.xml filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/schemas/uml/ELM.eap filter=lfs diff=lfs merge=lfs -text
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a.files.sha256.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/fhir-single.xsd
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/fhir-xhtml.xsd
ADDED
|
@@ -0,0 +1,2101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/1999/xhtml" targetNamespace="http://www.w3.org/1999/xhtml" elementFormDefault="qualified" version="1.0" xml:lang="en">
|
| 3 |
+
<!--
|
| 4 |
+
FHIR XHTML Schema
|
| 5 |
+
|
| 6 |
+
This is a pared down modification of the XHTML schema published by the W3C.
|
| 7 |
+
it does not allow any of the content that the FHIR specification bans.
|
| 8 |
+
|
| 9 |
+
Note that you can replace this schema with the standard W3C schema - this
|
| 10 |
+
will still work, but will allow XHTML that is not valid. You might want to
|
| 11 |
+
do this if you already have the standard XHTML schema in your schema cache,
|
| 12 |
+
for instance
|
| 13 |
+
|
| 14 |
+
The content that is restricted to not appear:
|
| 15 |
+
- javascript attributes and the script element
|
| 16 |
+
- head, body etc (FHIR just uses div)
|
| 17 |
+
- forms, objects, and inserted and deleted text
|
| 18 |
+
-->
|
| 19 |
+
<!-- Note: When using this schema with some tools, it may also be necessary to declare xmlns:xml="http://www.w3.org/XML/1998/namespace", however this causes performance issues with other tools and thus is not in the base schemas. -->
|
| 20 |
+
<xs:annotation>
|
| 21 |
+
<xs:documentation>
|
| 22 |
+
XHTML 1.0 (Second Edition) Strict in XML Schema
|
| 23 |
+
|
| 24 |
+
This is the same as HTML 4 Strict except for
|
| 25 |
+
changes due to the differences between XML and SGML.
|
| 26 |
+
|
| 27 |
+
Namespace = http://www.w3.org/1999/xhtml
|
| 28 |
+
|
| 29 |
+
For further information, see: http://www.w3.org/TR/xhtml1
|
| 30 |
+
|
| 31 |
+
Copyright (c) 1998-2002 W3C (MIT, INRIA, Keio),
|
| 32 |
+
All Rights Reserved.
|
| 33 |
+
|
| 34 |
+
The DTD version is identified by the PUBLIC and SYSTEM identifiers:
|
| 35 |
+
|
| 36 |
+
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
| 37 |
+
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
|
| 38 |
+
|
| 39 |
+
_id: xhtml1-strict.xsd,v 1.2 2002/08/28 08:05:44 mimasa Exp $
|
| 40 |
+
</xs:documentation>
|
| 41 |
+
</xs:annotation>
|
| 42 |
+
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
| 43 |
+
<xs:annotation>
|
| 44 |
+
<xs:documentation>
|
| 45 |
+
================ Character mnemonic entities =========================
|
| 46 |
+
|
| 47 |
+
XHTML entity sets are identified by the PUBLIC and SYSTEM identifiers:
|
| 48 |
+
|
| 49 |
+
PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN"
|
| 50 |
+
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent"
|
| 51 |
+
|
| 52 |
+
PUBLIC "-//W3C//ENTITIES Special for XHTML//EN"
|
| 53 |
+
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent"
|
| 54 |
+
|
| 55 |
+
PUBLIC "-//W3C//ENTITIES Symbols for XHTML//EN"
|
| 56 |
+
SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent"
|
| 57 |
+
</xs:documentation>
|
| 58 |
+
</xs:annotation>
|
| 59 |
+
<xs:annotation>
|
| 60 |
+
<xs:documentation>
|
| 61 |
+
================== Imported Names ====================================
|
| 62 |
+
</xs:documentation>
|
| 63 |
+
</xs:annotation>
|
| 64 |
+
<xs:simpleType name="ContentType">
|
| 65 |
+
<xs:annotation>
|
| 66 |
+
<xs:documentation>
|
| 67 |
+
media type, as per [RFC2045]
|
| 68 |
+
</xs:documentation>
|
| 69 |
+
</xs:annotation>
|
| 70 |
+
<xs:restriction base="xs:string"/>
|
| 71 |
+
</xs:simpleType>
|
| 72 |
+
<xs:simpleType name="ContentTypes">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation>
|
| 75 |
+
comma-separated list of media types, as per [RFC2045]
|
| 76 |
+
</xs:documentation>
|
| 77 |
+
</xs:annotation>
|
| 78 |
+
<xs:restriction base="xs:string"/>
|
| 79 |
+
</xs:simpleType>
|
| 80 |
+
<xs:simpleType name="Charset">
|
| 81 |
+
<xs:annotation>
|
| 82 |
+
<xs:documentation>
|
| 83 |
+
a character encoding, as per [RFC2045]
|
| 84 |
+
</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
<xs:restriction base="xs:string"/>
|
| 87 |
+
</xs:simpleType>
|
| 88 |
+
<xs:simpleType name="Charsets">
|
| 89 |
+
<xs:annotation>
|
| 90 |
+
<xs:documentation>
|
| 91 |
+
a space separated list of character encodings, as per [RFC2045]
|
| 92 |
+
</xs:documentation>
|
| 93 |
+
</xs:annotation>
|
| 94 |
+
<xs:restriction base="xs:string"/>
|
| 95 |
+
</xs:simpleType>
|
| 96 |
+
<xs:simpleType name="LanguageCode">
|
| 97 |
+
<xs:annotation>
|
| 98 |
+
<xs:documentation>
|
| 99 |
+
a language code, as per [RFC3066]
|
| 100 |
+
</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
<xs:restriction base="xs:language"/>
|
| 103 |
+
</xs:simpleType>
|
| 104 |
+
<xs:simpleType name="Character">
|
| 105 |
+
<xs:annotation>
|
| 106 |
+
<xs:documentation>
|
| 107 |
+
a single character, as per section 2.2 of [XML]
|
| 108 |
+
</xs:documentation>
|
| 109 |
+
</xs:annotation>
|
| 110 |
+
<xs:restriction base="xs:string">
|
| 111 |
+
<xs:length value="1" fixed="true"/>
|
| 112 |
+
</xs:restriction>
|
| 113 |
+
</xs:simpleType>
|
| 114 |
+
<xs:simpleType name="Number">
|
| 115 |
+
<xs:annotation>
|
| 116 |
+
<xs:documentation>
|
| 117 |
+
one or more digits
|
| 118 |
+
</xs:documentation>
|
| 119 |
+
</xs:annotation>
|
| 120 |
+
<xs:restriction base="xs:nonNegativeInteger">
|
| 121 |
+
<xs:pattern value="[0-9]+"/>
|
| 122 |
+
</xs:restriction>
|
| 123 |
+
</xs:simpleType>
|
| 124 |
+
<xs:simpleType name="tabindexNumber">
|
| 125 |
+
<xs:annotation>
|
| 126 |
+
<xs:documentation>
|
| 127 |
+
tabindex attribute specifies the position of the current element
|
| 128 |
+
in the tabbing order for the current document. This value must be
|
| 129 |
+
a number between 0 and 32767. User agents should ignore leading zeros.
|
| 130 |
+
</xs:documentation>
|
| 131 |
+
</xs:annotation>
|
| 132 |
+
<xs:restriction base="Number">
|
| 133 |
+
<xs:minInclusive value="0"/>
|
| 134 |
+
<xs:maxInclusive value="32767"/>
|
| 135 |
+
</xs:restriction>
|
| 136 |
+
</xs:simpleType>
|
| 137 |
+
<xs:simpleType name="LinkTypes">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation>
|
| 140 |
+
space-separated list of link types
|
| 141 |
+
</xs:documentation>
|
| 142 |
+
</xs:annotation>
|
| 143 |
+
<xs:restriction base="xs:NMTOKENS"/>
|
| 144 |
+
</xs:simpleType>
|
| 145 |
+
<xs:simpleType name="MediaDesc">
|
| 146 |
+
<xs:annotation>
|
| 147 |
+
<xs:documentation>
|
| 148 |
+
single or comma-separated list of media descriptors
|
| 149 |
+
</xs:documentation>
|
| 150 |
+
</xs:annotation>
|
| 151 |
+
<xs:restriction base="xs:string">
|
| 152 |
+
<xs:pattern value="[^,]+(,\s*[^,]+)*"/>
|
| 153 |
+
</xs:restriction>
|
| 154 |
+
</xs:simpleType>
|
| 155 |
+
<xs:simpleType name="URI">
|
| 156 |
+
<xs:annotation>
|
| 157 |
+
<xs:documentation>
|
| 158 |
+
a Uniform Resource Identifier, see [RFC2396]
|
| 159 |
+
</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
<xs:restriction base="xs:anyURI"/>
|
| 162 |
+
</xs:simpleType>
|
| 163 |
+
<xs:simpleType name="UriList">
|
| 164 |
+
<xs:annotation>
|
| 165 |
+
<xs:documentation>
|
| 166 |
+
a space separated list of Uniform Resource Identifiers
|
| 167 |
+
</xs:documentation>
|
| 168 |
+
</xs:annotation>
|
| 169 |
+
<xs:restriction base="xs:string"/>
|
| 170 |
+
</xs:simpleType>
|
| 171 |
+
<xs:simpleType name="Datetime">
|
| 172 |
+
<xs:annotation>
|
| 173 |
+
<xs:documentation>
|
| 174 |
+
date and time information. ISO date format
|
| 175 |
+
</xs:documentation>
|
| 176 |
+
</xs:annotation>
|
| 177 |
+
<xs:restriction base="xs:dateTime"/>
|
| 178 |
+
</xs:simpleType>
|
| 179 |
+
<xs:simpleType name="Script">
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation>
|
| 182 |
+
script expression
|
| 183 |
+
</xs:documentation>
|
| 184 |
+
</xs:annotation>
|
| 185 |
+
<xs:restriction base="xs:string"/>
|
| 186 |
+
</xs:simpleType>
|
| 187 |
+
<xs:simpleType name="StyleSheet">
|
| 188 |
+
<xs:annotation>
|
| 189 |
+
<xs:documentation>
|
| 190 |
+
style sheet data
|
| 191 |
+
</xs:documentation>
|
| 192 |
+
</xs:annotation>
|
| 193 |
+
<xs:restriction base="xs:string"/>
|
| 194 |
+
</xs:simpleType>
|
| 195 |
+
<xs:simpleType name="Text">
|
| 196 |
+
<xs:annotation>
|
| 197 |
+
<xs:documentation>
|
| 198 |
+
used for titles etc.
|
| 199 |
+
</xs:documentation>
|
| 200 |
+
</xs:annotation>
|
| 201 |
+
<xs:restriction base="xs:string"/>
|
| 202 |
+
</xs:simpleType>
|
| 203 |
+
<xs:simpleType name="Length">
|
| 204 |
+
<xs:annotation>
|
| 205 |
+
<xs:documentation>
|
| 206 |
+
nn for pixels or nn% for percentage length
|
| 207 |
+
</xs:documentation>
|
| 208 |
+
</xs:annotation>
|
| 209 |
+
<xs:restriction base="xs:string">
|
| 210 |
+
<xs:pattern value="[-+]?(\d+|\d+(\.\d+)?%)"/>
|
| 211 |
+
</xs:restriction>
|
| 212 |
+
</xs:simpleType>
|
| 213 |
+
<xs:simpleType name="MultiLength">
|
| 214 |
+
<xs:annotation>
|
| 215 |
+
<xs:documentation>
|
| 216 |
+
pixel, percentage, or relative
|
| 217 |
+
</xs:documentation>
|
| 218 |
+
</xs:annotation>
|
| 219 |
+
<xs:restriction base="xs:string">
|
| 220 |
+
<xs:pattern value="[-+]?(\d+|\d+(\.\d+)?%)|[1-9]?(\d+)?\*"/>
|
| 221 |
+
</xs:restriction>
|
| 222 |
+
</xs:simpleType>
|
| 223 |
+
<xs:simpleType name="Pixels">
|
| 224 |
+
<xs:annotation>
|
| 225 |
+
<xs:documentation>
|
| 226 |
+
integer representing length in pixels
|
| 227 |
+
</xs:documentation>
|
| 228 |
+
</xs:annotation>
|
| 229 |
+
<xs:restriction base="xs:nonNegativeInteger"/>
|
| 230 |
+
</xs:simpleType>
|
| 231 |
+
<xs:annotation>
|
| 232 |
+
<xs:documentation>
|
| 233 |
+
these are used for image maps
|
| 234 |
+
</xs:documentation>
|
| 235 |
+
</xs:annotation>
|
| 236 |
+
<xs:simpleType name="Shape">
|
| 237 |
+
<xs:restriction base="xs:token">
|
| 238 |
+
<xs:enumeration value="rect"/>
|
| 239 |
+
<xs:enumeration value="circle"/>
|
| 240 |
+
<xs:enumeration value="poly"/>
|
| 241 |
+
<xs:enumeration value="default"/>
|
| 242 |
+
</xs:restriction>
|
| 243 |
+
</xs:simpleType>
|
| 244 |
+
<xs:simpleType name="Coords">
|
| 245 |
+
<xs:annotation>
|
| 246 |
+
<xs:documentation>
|
| 247 |
+
comma separated list of lengths
|
| 248 |
+
</xs:documentation>
|
| 249 |
+
</xs:annotation>
|
| 250 |
+
<xs:restriction base="xs:string">
|
| 251 |
+
<xs:pattern value="[-+]?(\d+|\d+(\.\d+)?%)(,\s*[-+]?(\d+|\d+(\.\d+)?%))*"/>
|
| 252 |
+
</xs:restriction>
|
| 253 |
+
</xs:simpleType>
|
| 254 |
+
<xs:annotation>
|
| 255 |
+
<xs:documentation>
|
| 256 |
+
=================== Generic Attributes ===============================
|
| 257 |
+
</xs:documentation>
|
| 258 |
+
</xs:annotation>
|
| 259 |
+
<xs:attributeGroup name="coreattrs">
|
| 260 |
+
<xs:annotation>
|
| 261 |
+
<xs:documentation>
|
| 262 |
+
core attributes common to most elements
|
| 263 |
+
id document-wide unique id
|
| 264 |
+
class space separated list of classes
|
| 265 |
+
style associated style info
|
| 266 |
+
title advisory title/amplification
|
| 267 |
+
</xs:documentation>
|
| 268 |
+
</xs:annotation>
|
| 269 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 270 |
+
<xs:attribute name="class" type="xs:NMTOKENS"/>
|
| 271 |
+
<xs:attribute name="style" type="StyleSheet"/>
|
| 272 |
+
<xs:attribute name="title" type="Text"/>
|
| 273 |
+
</xs:attributeGroup>
|
| 274 |
+
<xs:attributeGroup name="i18n">
|
| 275 |
+
<xs:annotation>
|
| 276 |
+
<xs:documentation>
|
| 277 |
+
internationalization attributes
|
| 278 |
+
lang language code (backwards compatible)
|
| 279 |
+
xml:lang language code (as per XML 1.0 spec)
|
| 280 |
+
dir direction for weak/neutral text
|
| 281 |
+
</xs:documentation>
|
| 282 |
+
</xs:annotation>
|
| 283 |
+
<xs:attribute name="lang" type="LanguageCode"/>
|
| 284 |
+
<xs:attribute ref="xml:lang"/>
|
| 285 |
+
<xs:attribute name="dir">
|
| 286 |
+
<xs:simpleType>
|
| 287 |
+
<xs:restriction base="xs:token">
|
| 288 |
+
<xs:enumeration value="ltr"/>
|
| 289 |
+
<xs:enumeration value="rtl"/>
|
| 290 |
+
</xs:restriction>
|
| 291 |
+
</xs:simpleType>
|
| 292 |
+
</xs:attribute>
|
| 293 |
+
</xs:attributeGroup>
|
| 294 |
+
<xs:attributeGroup name="events">
|
| 295 |
+
<xs:annotation>
|
| 296 |
+
<xs:documentation>
|
| 297 |
+
attributes for common UI events
|
| 298 |
+
onclick a pointer button was clicked
|
| 299 |
+
ondblclick a pointer button was double clicked
|
| 300 |
+
onmousedown a pointer button was pressed down
|
| 301 |
+
onmouseup a pointer button was released
|
| 302 |
+
onmousemove a pointer was moved onto the element
|
| 303 |
+
onmouseout a pointer was moved away from the element
|
| 304 |
+
onkeypress a key was pressed and released
|
| 305 |
+
onkeydown a key was pressed down
|
| 306 |
+
onkeyup a key was released
|
| 307 |
+
</xs:documentation>
|
| 308 |
+
</xs:annotation>
|
| 309 |
+
<!--
|
| 310 |
+
FHIR: Active Content is not allowed:
|
| 311 |
+
<xs:attribute name="onclick" type="Script"/>
|
| 312 |
+
<xs:attribute name="ondblclick" type="Script"/>
|
| 313 |
+
<xs:attribute name="onmousedown" type="Script"/>
|
| 314 |
+
<xs:attribute name="onmouseup" type="Script"/>
|
| 315 |
+
<xs:attribute name="onmouseover" type="Script"/>
|
| 316 |
+
<xs:attribute name="onmousemove" type="Script"/>
|
| 317 |
+
<xs:attribute name="onmouseout" type="Script"/>
|
| 318 |
+
<xs:attribute name="onkeypress" type="Script"/>
|
| 319 |
+
<xs:attribute name="onkeydown" type="Script"/>
|
| 320 |
+
<xs:attribute name="onkeyup" type="Script"/>
|
| 321 |
+
-->
|
| 322 |
+
</xs:attributeGroup>
|
| 323 |
+
<xs:attributeGroup name="focus">
|
| 324 |
+
<xs:annotation>
|
| 325 |
+
<xs:documentation>
|
| 326 |
+
attributes for elements that can get the focus
|
| 327 |
+
accesskey accessibility key character
|
| 328 |
+
tabindex position in tabbing order
|
| 329 |
+
onfocus the element got the focus
|
| 330 |
+
onblur the element lost the focus
|
| 331 |
+
</xs:documentation>
|
| 332 |
+
</xs:annotation>
|
| 333 |
+
<xs:attribute name="accesskey" type="Character"/>
|
| 334 |
+
<xs:attribute name="tabindex" type="tabindexNumber"/>
|
| 335 |
+
<!--
|
| 336 |
+
<xs:attribute name="onfocus" type="Script"/>
|
| 337 |
+
<xs:attribute name="onblur" type="Script"/>
|
| 338 |
+
-->
|
| 339 |
+
</xs:attributeGroup>
|
| 340 |
+
<xs:attributeGroup name="attrs">
|
| 341 |
+
<xs:attributeGroup ref="coreattrs"/>
|
| 342 |
+
<xs:attributeGroup ref="i18n"/>
|
| 343 |
+
<xs:attributeGroup ref="events"/>
|
| 344 |
+
</xs:attributeGroup>
|
| 345 |
+
<xs:annotation>
|
| 346 |
+
<xs:documentation>
|
| 347 |
+
=================== Text Elements ====================================
|
| 348 |
+
</xs:documentation>
|
| 349 |
+
</xs:annotation>
|
| 350 |
+
<xs:group name="special.pre">
|
| 351 |
+
<xs:choice>
|
| 352 |
+
<xs:element ref="br"/>
|
| 353 |
+
<xs:element ref="span"/>
|
| 354 |
+
<xs:element ref="bdo"/>
|
| 355 |
+
<xs:element ref="map"/>
|
| 356 |
+
</xs:choice>
|
| 357 |
+
</xs:group>
|
| 358 |
+
<xs:group name="special">
|
| 359 |
+
<xs:choice>
|
| 360 |
+
<xs:group ref="special.pre"/>
|
| 361 |
+
<!--
|
| 362 |
+
FHIR: active content is not allowed
|
| 363 |
+
<xs:element ref="object"/>
|
| 364 |
+
-->
|
| 365 |
+
<xs:element ref="img"/>
|
| 366 |
+
</xs:choice>
|
| 367 |
+
</xs:group>
|
| 368 |
+
<xs:group name="fontstyle">
|
| 369 |
+
<xs:choice>
|
| 370 |
+
<xs:element ref="tt"/>
|
| 371 |
+
<xs:element ref="i"/>
|
| 372 |
+
<xs:element ref="b"/>
|
| 373 |
+
<xs:element ref="big"/>
|
| 374 |
+
<xs:element ref="small"/>
|
| 375 |
+
</xs:choice>
|
| 376 |
+
</xs:group>
|
| 377 |
+
<xs:group name="phrase">
|
| 378 |
+
<xs:choice>
|
| 379 |
+
<xs:element ref="em"/>
|
| 380 |
+
<xs:element ref="strong"/>
|
| 381 |
+
<xs:element ref="dfn"/>
|
| 382 |
+
<xs:element ref="code"/>
|
| 383 |
+
<xs:element ref="q"/>
|
| 384 |
+
<xs:element ref="samp"/>
|
| 385 |
+
<xs:element ref="kbd"/>
|
| 386 |
+
<xs:element ref="var"/>
|
| 387 |
+
<xs:element ref="cite"/>
|
| 388 |
+
<xs:element ref="abbr"/>
|
| 389 |
+
<xs:element ref="acronym"/>
|
| 390 |
+
<xs:element ref="sub"/>
|
| 391 |
+
<xs:element ref="sup"/>
|
| 392 |
+
</xs:choice>
|
| 393 |
+
</xs:group>
|
| 394 |
+
<!--
|
| 395 |
+
FHIR: forms are not allowed
|
| 396 |
+
<xs:group name="inline.forms">
|
| 397 |
+
<xs:choice>
|
| 398 |
+
<xs:element ref="input"/>
|
| 399 |
+
<xs:element ref="select"/>
|
| 400 |
+
<xs:element ref="textarea"/>
|
| 401 |
+
<xs:element ref="label"/>
|
| 402 |
+
<xs:element ref="button"/>
|
| 403 |
+
</xs:choice>
|
| 404 |
+
</xs:group>
|
| 405 |
+
-->
|
| 406 |
+
<!--
|
| 407 |
+
FHIR: specifically not allowed
|
| 408 |
+
<xs:group name="misc.inline">
|
| 409 |
+
<xs:choice>
|
| 410 |
+
<xs:element ref="ins"/>
|
| 411 |
+
<xs:element ref="del"/>
|
| 412 |
+
<xs:element ref="script"/>
|
| 413 |
+
</xs:choice>
|
| 414 |
+
</xs:group>
|
| 415 |
+
<xs:group name="misc">
|
| 416 |
+
<xs:annotation>
|
| 417 |
+
<xs:documentation>
|
| 418 |
+
these can only occur at block level
|
| 419 |
+
</xs:documentation>
|
| 420 |
+
</xs:annotation>
|
| 421 |
+
<xs:choice>
|
| 422 |
+
<xs:element ref="noscript"/>
|
| 423 |
+
<xs:group ref="misc.inline"/>
|
| 424 |
+
</xs:choice>
|
| 425 |
+
</xs:group>
|
| 426 |
+
-->
|
| 427 |
+
<xs:group name="inline">
|
| 428 |
+
<xs:choice>
|
| 429 |
+
<xs:element ref="a"/>
|
| 430 |
+
<xs:group ref="special"/>
|
| 431 |
+
<xs:group ref="fontstyle"/>
|
| 432 |
+
<xs:group ref="phrase"/>
|
| 433 |
+
<!--
|
| 434 |
+
<xs:group ref="inline.forms"/>
|
| 435 |
+
-->
|
| 436 |
+
</xs:choice>
|
| 437 |
+
</xs:group>
|
| 438 |
+
<xs:complexType name="Inline" mixed="true">
|
| 439 |
+
<xs:annotation>
|
| 440 |
+
<xs:documentation>
|
| 441 |
+
"Inline" covers inline or "text-level" elements
|
| 442 |
+
</xs:documentation>
|
| 443 |
+
</xs:annotation>
|
| 444 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 445 |
+
<xs:group ref="inline"/>
|
| 446 |
+
<!-- <xs:group ref="misc.inline"/> -->
|
| 447 |
+
</xs:choice>
|
| 448 |
+
</xs:complexType>
|
| 449 |
+
<xs:annotation>
|
| 450 |
+
<xs:documentation>
|
| 451 |
+
================== Block level elements ==============================
|
| 452 |
+
</xs:documentation>
|
| 453 |
+
</xs:annotation>
|
| 454 |
+
<xs:group name="heading">
|
| 455 |
+
<xs:choice>
|
| 456 |
+
<xs:element ref="h1"/>
|
| 457 |
+
<xs:element ref="h2"/>
|
| 458 |
+
<xs:element ref="h3"/>
|
| 459 |
+
<xs:element ref="h4"/>
|
| 460 |
+
<xs:element ref="h5"/>
|
| 461 |
+
<xs:element ref="h6"/>
|
| 462 |
+
</xs:choice>
|
| 463 |
+
</xs:group>
|
| 464 |
+
<xs:group name="lists">
|
| 465 |
+
<xs:choice>
|
| 466 |
+
<xs:element ref="ul"/>
|
| 467 |
+
<xs:element ref="ol"/>
|
| 468 |
+
<xs:element ref="dl"/>
|
| 469 |
+
</xs:choice>
|
| 470 |
+
</xs:group>
|
| 471 |
+
<xs:group name="blocktext">
|
| 472 |
+
<xs:choice>
|
| 473 |
+
<xs:element ref="pre"/>
|
| 474 |
+
<xs:element ref="hr"/>
|
| 475 |
+
<xs:element ref="blockquote"/>
|
| 476 |
+
<xs:element ref="address"/>
|
| 477 |
+
</xs:choice>
|
| 478 |
+
</xs:group>
|
| 479 |
+
<xs:group name="block">
|
| 480 |
+
<xs:choice>
|
| 481 |
+
<xs:element ref="p"/>
|
| 482 |
+
<xs:group ref="heading"/>
|
| 483 |
+
<xs:element ref="div"/>
|
| 484 |
+
<xs:group ref="lists"/>
|
| 485 |
+
<xs:group ref="blocktext"/>
|
| 486 |
+
<!-- <xs:element ref="fieldset"/> -->
|
| 487 |
+
<xs:element ref="table"/>
|
| 488 |
+
</xs:choice>
|
| 489 |
+
</xs:group>
|
| 490 |
+
<xs:complexType name="Block">
|
| 491 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 492 |
+
<xs:group ref="block"/>
|
| 493 |
+
<!--
|
| 494 |
+
FHIR: no forms
|
| 495 |
+
<xs:element ref="form"/>
|
| 496 |
+
<xs:group ref="misc"/>
|
| 497 |
+
-->
|
| 498 |
+
</xs:choice>
|
| 499 |
+
</xs:complexType>
|
| 500 |
+
<xs:complexType name="Flow" mixed="true">
|
| 501 |
+
<xs:annotation>
|
| 502 |
+
<xs:documentation>
|
| 503 |
+
"Flow" mixes block and inline and is used for list items etc.
|
| 504 |
+
</xs:documentation>
|
| 505 |
+
</xs:annotation>
|
| 506 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 507 |
+
<xs:group ref="block"/>
|
| 508 |
+
<xs:group ref="inline"/>
|
| 509 |
+
<!--
|
| 510 |
+
<xs:element ref="form"/>
|
| 511 |
+
<xs:group ref="misc"/>
|
| 512 |
+
-->
|
| 513 |
+
</xs:choice>
|
| 514 |
+
</xs:complexType>
|
| 515 |
+
<xs:annotation>
|
| 516 |
+
<xs:documentation>
|
| 517 |
+
================== Content models for exclusions =====================
|
| 518 |
+
</xs:documentation>
|
| 519 |
+
</xs:annotation>
|
| 520 |
+
<xs:complexType name="a.content" mixed="true">
|
| 521 |
+
<xs:annotation>
|
| 522 |
+
<xs:documentation>
|
| 523 |
+
a elements use "Inline" excluding a
|
| 524 |
+
</xs:documentation>
|
| 525 |
+
</xs:annotation>
|
| 526 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 527 |
+
<xs:group ref="special"/>
|
| 528 |
+
<xs:group ref="fontstyle"/>
|
| 529 |
+
<xs:group ref="phrase"/>
|
| 530 |
+
<!--
|
| 531 |
+
<xs:group ref="inline.forms"/>
|
| 532 |
+
<xs:group ref="misc.inline"/>
|
| 533 |
+
-->
|
| 534 |
+
</xs:choice>
|
| 535 |
+
</xs:complexType>
|
| 536 |
+
<xs:complexType name="pre.content" mixed="true">
|
| 537 |
+
<xs:annotation>
|
| 538 |
+
<xs:documentation>
|
| 539 |
+
pre uses "Inline" excluding big, small, sup or sup
|
| 540 |
+
</xs:documentation>
|
| 541 |
+
</xs:annotation>
|
| 542 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 543 |
+
<xs:element ref="a"/>
|
| 544 |
+
<xs:group ref="fontstyle"/>
|
| 545 |
+
<xs:group ref="phrase"/>
|
| 546 |
+
<xs:group ref="special.pre"/>
|
| 547 |
+
<!--
|
| 548 |
+
<xs:group ref="misc.inline"/>
|
| 549 |
+
<xs:group ref="inline.forms"/>
|
| 550 |
+
-->
|
| 551 |
+
</xs:choice>
|
| 552 |
+
</xs:complexType>
|
| 553 |
+
<!--
|
| 554 |
+
<xs:complexType name="form.content">
|
| 555 |
+
<xs:annotation>
|
| 556 |
+
<xs:documentation>
|
| 557 |
+
form uses "Block" excluding form
|
| 558 |
+
</xs:documentation>
|
| 559 |
+
</xs:annotation>
|
| 560 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 561 |
+
<xs:group ref="block"/>
|
| 562 |
+
<xs:group ref="misc"/>
|
| 563 |
+
</xs:choice>
|
| 564 |
+
</xs:complexType>
|
| 565 |
+
<xs:complexType name="button.content" mixed="true">
|
| 566 |
+
<xs:annotation>
|
| 567 |
+
<xs:documentation>
|
| 568 |
+
button uses "Flow" but excludes a, form and form controls
|
| 569 |
+
</xs:documentation>
|
| 570 |
+
</xs:annotation>
|
| 571 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 572 |
+
<xs:element ref="p"/>
|
| 573 |
+
<xs:group ref="heading"/>
|
| 574 |
+
<xs:element ref="div"/>
|
| 575 |
+
<xs:group ref="lists"/>
|
| 576 |
+
<xs:group ref="blocktext"/>
|
| 577 |
+
<xs:element ref="table"/>
|
| 578 |
+
<xs:group ref="special"/>
|
| 579 |
+
<xs:group ref="fontstyle"/>
|
| 580 |
+
<xs:group ref="phrase"/>
|
| 581 |
+
<xs:group ref="misc"/>
|
| 582 |
+
</xs:choice>
|
| 583 |
+
</xs:complexType>
|
| 584 |
+
-->
|
| 585 |
+
<xs:annotation>
|
| 586 |
+
<xs:documentation>
|
| 587 |
+
================ Document Structure ==================================
|
| 588 |
+
</xs:documentation>
|
| 589 |
+
</xs:annotation>
|
| 590 |
+
<!--
|
| 591 |
+
FHIR: doesn't use the structure of <html> / <body> - jump straight into div instead
|
| 592 |
+
<xs:element name="html">
|
| 593 |
+
<xs:complexType>
|
| 594 |
+
<xs:sequence>
|
| 595 |
+
<xs:element ref="head"/>
|
| 596 |
+
<xs:element ref="body"/>
|
| 597 |
+
</xs:sequence>
|
| 598 |
+
<xs:attributeGroup ref="i18n"/>
|
| 599 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 600 |
+
</xs:complexType>
|
| 601 |
+
</xs:element>
|
| 602 |
+
<xs:annotation>
|
| 603 |
+
<xs:documentation>
|
| 604 |
+
================ Document Head =======================================
|
| 605 |
+
</xs:documentation>
|
| 606 |
+
</xs:annotation>
|
| 607 |
+
<xs:group name="head.misc">
|
| 608 |
+
<xs:sequence>
|
| 609 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 610 |
+
<xs:element ref="script"/>
|
| 611 |
+
<xs:element ref="style"/>
|
| 612 |
+
<xs:element ref="meta"/>
|
| 613 |
+
<xs:element ref="link"/>
|
| 614 |
+
<xs:element ref="object"/>
|
| 615 |
+
</xs:choice>
|
| 616 |
+
</xs:sequence>
|
| 617 |
+
</xs:group>
|
| 618 |
+
<xs:element name="head">
|
| 619 |
+
<xs:annotation>
|
| 620 |
+
<xs:documentation>
|
| 621 |
+
content model is "head.misc" combined with a single
|
| 622 |
+
title and an optional base element in any order
|
| 623 |
+
</xs:documentation>
|
| 624 |
+
</xs:annotation>
|
| 625 |
+
<xs:complexType>
|
| 626 |
+
<xs:sequence>
|
| 627 |
+
<xs:group ref="head.misc"/>
|
| 628 |
+
<xs:choice>
|
| 629 |
+
<xs:sequence>
|
| 630 |
+
<xs:element ref="title"/>
|
| 631 |
+
<xs:group ref="head.misc"/>
|
| 632 |
+
<xs:sequence minOccurs="0">
|
| 633 |
+
<xs:element ref="base"/>
|
| 634 |
+
<xs:group ref="head.misc"/>
|
| 635 |
+
</xs:sequence>
|
| 636 |
+
</xs:sequence>
|
| 637 |
+
<xs:sequence>
|
| 638 |
+
<xs:element ref="base"/>
|
| 639 |
+
<xs:group ref="head.misc"/>
|
| 640 |
+
<xs:element ref="title"/>
|
| 641 |
+
<xs:group ref="head.misc"/>
|
| 642 |
+
</xs:sequence>
|
| 643 |
+
</xs:choice>
|
| 644 |
+
</xs:sequence>
|
| 645 |
+
<xs:attributeGroup ref="i18n"/>
|
| 646 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 647 |
+
<xs:attribute name="profile" type="URI"/>
|
| 648 |
+
</xs:complexType>
|
| 649 |
+
</xs:element>
|
| 650 |
+
<xs:element name="title">
|
| 651 |
+
<xs:annotation>
|
| 652 |
+
<xs:documentation>
|
| 653 |
+
The title element is not considered part of the flow of text.
|
| 654 |
+
It should be displayed, for example as the page header or
|
| 655 |
+
window title. Exactly one title is required per document.
|
| 656 |
+
</xs:documentation>
|
| 657 |
+
</xs:annotation>
|
| 658 |
+
<xs:complexType mixed="true">
|
| 659 |
+
<xs:attributeGroup ref="i18n"/>
|
| 660 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 661 |
+
</xs:complexType>
|
| 662 |
+
</xs:element>
|
| 663 |
+
<xs:element name="base">
|
| 664 |
+
<xs:annotation>
|
| 665 |
+
<xs:documentation>
|
| 666 |
+
document base URI
|
| 667 |
+
</xs:documentation>
|
| 668 |
+
</xs:annotation>
|
| 669 |
+
<xs:complexType>
|
| 670 |
+
<xs:attribute name="href" type="URI" use="required"/>
|
| 671 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 672 |
+
</xs:complexType>
|
| 673 |
+
</xs:element>
|
| 674 |
+
<xs:element name="meta">
|
| 675 |
+
<xs:annotation>
|
| 676 |
+
<xs:documentation>
|
| 677 |
+
generic metainformation
|
| 678 |
+
</xs:documentation>
|
| 679 |
+
</xs:annotation>
|
| 680 |
+
<xs:complexType>
|
| 681 |
+
<xs:attributeGroup ref="i18n"/>
|
| 682 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 683 |
+
<xs:attribute name="http-equiv"/>
|
| 684 |
+
<xs:attribute name="name"/>
|
| 685 |
+
<xs:attribute name="content" use="required"/>
|
| 686 |
+
<xs:attribute name="scheme"/>
|
| 687 |
+
</xs:complexType>
|
| 688 |
+
</xs:element>
|
| 689 |
+
<xs:element name="link">
|
| 690 |
+
<xs:annotation>
|
| 691 |
+
<xs:documentation>
|
| 692 |
+
Relationship values can be used in principle:
|
| 693 |
+
|
| 694 |
+
a) for document specific toolbars/menus when used
|
| 695 |
+
with the link element in document head e.g.
|
| 696 |
+
start, contents, previous, next, index, end, help
|
| 697 |
+
b) to link to a separate style sheet (rel="stylesheet")
|
| 698 |
+
c) to make a link to a script (rel="script")
|
| 699 |
+
d) by stylesheets to control how collections of
|
| 700 |
+
html nodes are rendered into printed documents
|
| 701 |
+
e) to make a link to a printable version of this document
|
| 702 |
+
e.g. a PostScript or PDF version (rel="alternate" media="print")
|
| 703 |
+
</xs:documentation>
|
| 704 |
+
</xs:annotation>
|
| 705 |
+
<xs:complexType>
|
| 706 |
+
<xs:attributeGroup ref="attrs"/>
|
| 707 |
+
<xs:attribute name="charset" type="Charset"/>
|
| 708 |
+
<xs:attribute name="href" type="URI"/>
|
| 709 |
+
<xs:attribute name="hreflang" type="LanguageCode"/>
|
| 710 |
+
<xs:attribute name="type" type="ContentType"/>
|
| 711 |
+
<xs:attribute name="rel" type="LinkTypes"/>
|
| 712 |
+
<xs:attribute name="rev" type="LinkTypes"/>
|
| 713 |
+
<xs:attribute name="media" type="MediaDesc"/>
|
| 714 |
+
</xs:complexType>
|
| 715 |
+
</xs:element>
|
| 716 |
+
<xs:element name="style">
|
| 717 |
+
<xs:annotation>
|
| 718 |
+
<xs:documentation>
|
| 719 |
+
style info, which may include CDATA sections
|
| 720 |
+
</xs:documentation>
|
| 721 |
+
</xs:annotation>
|
| 722 |
+
<xs:complexType mixed="true">
|
| 723 |
+
<xs:attributeGroup ref="i18n"/>
|
| 724 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 725 |
+
<xs:attribute name="type" type="ContentType" use="required"/>
|
| 726 |
+
<xs:attribute name="media" type="MediaDesc"/>
|
| 727 |
+
<xs:attribute name="title" type="Text"/>
|
| 728 |
+
<xs:attribute ref="xml:space" fixed="preserve"/>
|
| 729 |
+
</xs:complexType>
|
| 730 |
+
</xs:element>
|
| 731 |
+
<xs:element name="script">
|
| 732 |
+
<xs:annotation>
|
| 733 |
+
<xs:documentation>
|
| 734 |
+
script statements, which may include CDATA sections
|
| 735 |
+
</xs:documentation>
|
| 736 |
+
</xs:annotation>
|
| 737 |
+
<xs:complexType mixed="true">
|
| 738 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 739 |
+
<xs:attribute name="charset" type="Charset"/>
|
| 740 |
+
<xs:attribute name="type" type="ContentType" use="required"/>
|
| 741 |
+
<xs:attribute name="src" type="URI"/>
|
| 742 |
+
<xs:attribute name="defer">
|
| 743 |
+
<xs:simpleType>
|
| 744 |
+
<xs:restriction base="xs:token">
|
| 745 |
+
<xs:enumeration value="defer"/>
|
| 746 |
+
</xs:restriction>
|
| 747 |
+
</xs:simpleType>
|
| 748 |
+
</xs:attribute>
|
| 749 |
+
<xs:attribute ref="xml:space" fixed="preserve"/>
|
| 750 |
+
</xs:complexType>
|
| 751 |
+
</xs:element>
|
| 752 |
+
<xs:element name="noscript">
|
| 753 |
+
<xs:annotation>
|
| 754 |
+
<xs:documentation>
|
| 755 |
+
alternate content container for non script-based rendering
|
| 756 |
+
</xs:documentation>
|
| 757 |
+
</xs:annotation>
|
| 758 |
+
<xs:complexType>
|
| 759 |
+
<xs:complexContent>
|
| 760 |
+
<xs:extension base="Block">
|
| 761 |
+
<xs:attributeGroup ref="attrs"/>
|
| 762 |
+
</xs:extension>
|
| 763 |
+
</xs:complexContent>
|
| 764 |
+
</xs:complexType>
|
| 765 |
+
</xs:element>
|
| 766 |
+
<xs:annotation>
|
| 767 |
+
<xs:documentation>
|
| 768 |
+
=================== Document Body ====================================
|
| 769 |
+
</xs:documentation>
|
| 770 |
+
</xs:annotation>
|
| 771 |
+
<xs:element name="body">
|
| 772 |
+
<xs:complexType>
|
| 773 |
+
<xs:complexContent>
|
| 774 |
+
<xs:extension base="Block">
|
| 775 |
+
<xs:attributeGroup ref="attrs"/>
|
| 776 |
+
<xs:attribute name="onload" type="Script"/>
|
| 777 |
+
<xs:attribute name="onunload" type="Script"/>
|
| 778 |
+
</xs:extension>
|
| 779 |
+
</xs:complexContent>
|
| 780 |
+
</xs:complexType>
|
| 781 |
+
</xs:element>
|
| 782 |
+
-->
|
| 783 |
+
<xs:element name="div">
|
| 784 |
+
<xs:annotation>
|
| 785 |
+
<xs:documentation>
|
| 786 |
+
generic language/style container
|
| 787 |
+
</xs:documentation>
|
| 788 |
+
</xs:annotation>
|
| 789 |
+
<xs:complexType mixed="true">
|
| 790 |
+
<xs:complexContent>
|
| 791 |
+
<xs:extension base="Flow">
|
| 792 |
+
<xs:attributeGroup ref="attrs"/>
|
| 793 |
+
</xs:extension>
|
| 794 |
+
</xs:complexContent>
|
| 795 |
+
</xs:complexType>
|
| 796 |
+
</xs:element>
|
| 797 |
+
<xs:annotation>
|
| 798 |
+
<xs:documentation>
|
| 799 |
+
=================== Paragraphs =======================================
|
| 800 |
+
</xs:documentation>
|
| 801 |
+
</xs:annotation>
|
| 802 |
+
<xs:element name="p">
|
| 803 |
+
<xs:complexType mixed="true">
|
| 804 |
+
<xs:complexContent>
|
| 805 |
+
<xs:extension base="Inline">
|
| 806 |
+
<xs:attributeGroup ref="attrs"/>
|
| 807 |
+
</xs:extension>
|
| 808 |
+
</xs:complexContent>
|
| 809 |
+
</xs:complexType>
|
| 810 |
+
</xs:element>
|
| 811 |
+
<xs:annotation>
|
| 812 |
+
<xs:documentation>
|
| 813 |
+
=================== Headings =========================================
|
| 814 |
+
|
| 815 |
+
There are six levels of headings from h1 (the most important)
|
| 816 |
+
to h6 (the least important).
|
| 817 |
+
</xs:documentation>
|
| 818 |
+
</xs:annotation>
|
| 819 |
+
<xs:element name="h1">
|
| 820 |
+
<xs:complexType mixed="true">
|
| 821 |
+
<xs:complexContent>
|
| 822 |
+
<xs:extension base="Inline">
|
| 823 |
+
<xs:attributeGroup ref="attrs"/>
|
| 824 |
+
</xs:extension>
|
| 825 |
+
</xs:complexContent>
|
| 826 |
+
</xs:complexType>
|
| 827 |
+
</xs:element>
|
| 828 |
+
<xs:element name="h2">
|
| 829 |
+
<xs:complexType mixed="true">
|
| 830 |
+
<xs:complexContent>
|
| 831 |
+
<xs:extension base="Inline">
|
| 832 |
+
<xs:attributeGroup ref="attrs"/>
|
| 833 |
+
</xs:extension>
|
| 834 |
+
</xs:complexContent>
|
| 835 |
+
</xs:complexType>
|
| 836 |
+
</xs:element>
|
| 837 |
+
<xs:element name="h3">
|
| 838 |
+
<xs:complexType mixed="true">
|
| 839 |
+
<xs:complexContent>
|
| 840 |
+
<xs:extension base="Inline">
|
| 841 |
+
<xs:attributeGroup ref="attrs"/>
|
| 842 |
+
</xs:extension>
|
| 843 |
+
</xs:complexContent>
|
| 844 |
+
</xs:complexType>
|
| 845 |
+
</xs:element>
|
| 846 |
+
<xs:element name="h4">
|
| 847 |
+
<xs:complexType mixed="true">
|
| 848 |
+
<xs:complexContent>
|
| 849 |
+
<xs:extension base="Inline">
|
| 850 |
+
<xs:attributeGroup ref="attrs"/>
|
| 851 |
+
</xs:extension>
|
| 852 |
+
</xs:complexContent>
|
| 853 |
+
</xs:complexType>
|
| 854 |
+
</xs:element>
|
| 855 |
+
<xs:element name="h5">
|
| 856 |
+
<xs:complexType mixed="true">
|
| 857 |
+
<xs:complexContent>
|
| 858 |
+
<xs:extension base="Inline">
|
| 859 |
+
<xs:attributeGroup ref="attrs"/>
|
| 860 |
+
</xs:extension>
|
| 861 |
+
</xs:complexContent>
|
| 862 |
+
</xs:complexType>
|
| 863 |
+
</xs:element>
|
| 864 |
+
<xs:element name="h6">
|
| 865 |
+
<xs:complexType mixed="true">
|
| 866 |
+
<xs:complexContent>
|
| 867 |
+
<xs:extension base="Inline">
|
| 868 |
+
<xs:attributeGroup ref="attrs"/>
|
| 869 |
+
</xs:extension>
|
| 870 |
+
</xs:complexContent>
|
| 871 |
+
</xs:complexType>
|
| 872 |
+
</xs:element>
|
| 873 |
+
<xs:annotation>
|
| 874 |
+
<xs:documentation>
|
| 875 |
+
=================== Lists ============================================
|
| 876 |
+
</xs:documentation>
|
| 877 |
+
</xs:annotation>
|
| 878 |
+
<xs:element name="ul">
|
| 879 |
+
<xs:annotation>
|
| 880 |
+
<xs:documentation>
|
| 881 |
+
Unordered list
|
| 882 |
+
</xs:documentation>
|
| 883 |
+
</xs:annotation>
|
| 884 |
+
<xs:complexType>
|
| 885 |
+
<xs:sequence>
|
| 886 |
+
<xs:element ref="li" maxOccurs="unbounded"/>
|
| 887 |
+
</xs:sequence>
|
| 888 |
+
<xs:attributeGroup ref="attrs"/>
|
| 889 |
+
</xs:complexType>
|
| 890 |
+
</xs:element>
|
| 891 |
+
<xs:element name="ol">
|
| 892 |
+
<xs:annotation>
|
| 893 |
+
<xs:documentation>
|
| 894 |
+
Ordered (numbered) list
|
| 895 |
+
</xs:documentation>
|
| 896 |
+
</xs:annotation>
|
| 897 |
+
<xs:complexType>
|
| 898 |
+
<xs:sequence>
|
| 899 |
+
<xs:element ref="li" maxOccurs="unbounded"/>
|
| 900 |
+
</xs:sequence>
|
| 901 |
+
<xs:attributeGroup ref="attrs"/>
|
| 902 |
+
</xs:complexType>
|
| 903 |
+
</xs:element>
|
| 904 |
+
<xs:element name="li">
|
| 905 |
+
<xs:annotation>
|
| 906 |
+
<xs:documentation>
|
| 907 |
+
list item
|
| 908 |
+
</xs:documentation>
|
| 909 |
+
</xs:annotation>
|
| 910 |
+
<xs:complexType mixed="true">
|
| 911 |
+
<xs:complexContent>
|
| 912 |
+
<xs:extension base="Flow">
|
| 913 |
+
<xs:attributeGroup ref="attrs"/>
|
| 914 |
+
</xs:extension>
|
| 915 |
+
</xs:complexContent>
|
| 916 |
+
</xs:complexType>
|
| 917 |
+
</xs:element>
|
| 918 |
+
<xs:annotation>
|
| 919 |
+
<xs:documentation>
|
| 920 |
+
definition lists - dt for term, dd for its definition
|
| 921 |
+
</xs:documentation>
|
| 922 |
+
</xs:annotation>
|
| 923 |
+
<xs:element name="dl">
|
| 924 |
+
<xs:complexType>
|
| 925 |
+
<xs:choice maxOccurs="unbounded">
|
| 926 |
+
<xs:element ref="dt"/>
|
| 927 |
+
<xs:element ref="dd"/>
|
| 928 |
+
</xs:choice>
|
| 929 |
+
<xs:attributeGroup ref="attrs"/>
|
| 930 |
+
</xs:complexType>
|
| 931 |
+
</xs:element>
|
| 932 |
+
<xs:element name="dt">
|
| 933 |
+
<xs:complexType mixed="true">
|
| 934 |
+
<xs:complexContent>
|
| 935 |
+
<xs:extension base="Inline">
|
| 936 |
+
<xs:attributeGroup ref="attrs"/>
|
| 937 |
+
</xs:extension>
|
| 938 |
+
</xs:complexContent>
|
| 939 |
+
</xs:complexType>
|
| 940 |
+
</xs:element>
|
| 941 |
+
<xs:element name="dd">
|
| 942 |
+
<xs:complexType mixed="true">
|
| 943 |
+
<xs:complexContent>
|
| 944 |
+
<xs:extension base="Flow">
|
| 945 |
+
<xs:attributeGroup ref="attrs"/>
|
| 946 |
+
</xs:extension>
|
| 947 |
+
</xs:complexContent>
|
| 948 |
+
</xs:complexType>
|
| 949 |
+
</xs:element>
|
| 950 |
+
<xs:annotation>
|
| 951 |
+
<xs:documentation>
|
| 952 |
+
=================== Address ==========================================
|
| 953 |
+
</xs:documentation>
|
| 954 |
+
</xs:annotation>
|
| 955 |
+
<xs:element name="address">
|
| 956 |
+
<xs:annotation>
|
| 957 |
+
<xs:documentation>
|
| 958 |
+
information on author
|
| 959 |
+
</xs:documentation>
|
| 960 |
+
</xs:annotation>
|
| 961 |
+
<xs:complexType mixed="true">
|
| 962 |
+
<xs:complexContent>
|
| 963 |
+
<xs:extension base="Inline">
|
| 964 |
+
<xs:attributeGroup ref="attrs"/>
|
| 965 |
+
</xs:extension>
|
| 966 |
+
</xs:complexContent>
|
| 967 |
+
</xs:complexType>
|
| 968 |
+
</xs:element>
|
| 969 |
+
<xs:annotation>
|
| 970 |
+
<xs:documentation>
|
| 971 |
+
=================== Horizontal Rule ==================================
|
| 972 |
+
</xs:documentation>
|
| 973 |
+
</xs:annotation>
|
| 974 |
+
<xs:element name="hr">
|
| 975 |
+
<xs:complexType>
|
| 976 |
+
<xs:attributeGroup ref="attrs"/>
|
| 977 |
+
</xs:complexType>
|
| 978 |
+
</xs:element>
|
| 979 |
+
<xs:annotation>
|
| 980 |
+
<xs:documentation>
|
| 981 |
+
=================== Preformatted Text ================================
|
| 982 |
+
</xs:documentation>
|
| 983 |
+
</xs:annotation>
|
| 984 |
+
<xs:element name="pre">
|
| 985 |
+
<xs:annotation>
|
| 986 |
+
<xs:documentation>
|
| 987 |
+
content is "Inline" excluding "img|object|big|small|sub|sup"
|
| 988 |
+
</xs:documentation>
|
| 989 |
+
</xs:annotation>
|
| 990 |
+
<xs:complexType mixed="true">
|
| 991 |
+
<xs:complexContent>
|
| 992 |
+
<xs:extension base="pre.content">
|
| 993 |
+
<xs:attributeGroup ref="attrs"/>
|
| 994 |
+
<xs:attribute ref="xml:space" fixed="preserve"/>
|
| 995 |
+
</xs:extension>
|
| 996 |
+
</xs:complexContent>
|
| 997 |
+
</xs:complexType>
|
| 998 |
+
</xs:element>
|
| 999 |
+
<xs:annotation>
|
| 1000 |
+
<xs:documentation>
|
| 1001 |
+
=================== Block-like Quotes ================================
|
| 1002 |
+
</xs:documentation>
|
| 1003 |
+
</xs:annotation>
|
| 1004 |
+
<xs:element name="blockquote">
|
| 1005 |
+
<xs:complexType>
|
| 1006 |
+
<xs:complexContent>
|
| 1007 |
+
<xs:extension base="Block">
|
| 1008 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1009 |
+
<xs:attribute name="cite" type="URI"/>
|
| 1010 |
+
</xs:extension>
|
| 1011 |
+
</xs:complexContent>
|
| 1012 |
+
</xs:complexType>
|
| 1013 |
+
</xs:element>
|
| 1014 |
+
<!--
|
| 1015 |
+
<xs:annotation>
|
| 1016 |
+
<xs:documentation>
|
| 1017 |
+
=================== Inserted/Deleted Text ============================
|
| 1018 |
+
|
| 1019 |
+
ins/del are allowed in block and inline content, but its
|
| 1020 |
+
inappropriate to include block content within an ins element
|
| 1021 |
+
occurring in inline content.
|
| 1022 |
+
</xs:documentation>
|
| 1023 |
+
</xs:annotation>
|
| 1024 |
+
<xs:element name="ins">
|
| 1025 |
+
<xs:complexType mixed="true">
|
| 1026 |
+
<xs:complexContent mixed="true">
|
| 1027 |
+
<xs:extension base="Flow">
|
| 1028 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1029 |
+
<xs:attribute name="cite" type="URI"/>
|
| 1030 |
+
<xs:attribute name="datetime" type="Datetime"/>
|
| 1031 |
+
</xs:extension>
|
| 1032 |
+
</xs:complexContent>
|
| 1033 |
+
</xs:complexType>
|
| 1034 |
+
</xs:element>
|
| 1035 |
+
<xs:element name="del">
|
| 1036 |
+
<xs:complexType mixed="true">
|
| 1037 |
+
<xs:complexContent mixed="true">
|
| 1038 |
+
<xs:extension base="Flow">
|
| 1039 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1040 |
+
<xs:attribute name="cite" type="URI"/>
|
| 1041 |
+
<xs:attribute name="datetime" type="Datetime"/>
|
| 1042 |
+
</xs:extension>
|
| 1043 |
+
</xs:complexContent>
|
| 1044 |
+
</xs:complexType>
|
| 1045 |
+
</xs:element>
|
| 1046 |
+
-->
|
| 1047 |
+
<xs:annotation>
|
| 1048 |
+
<xs:documentation>
|
| 1049 |
+
================== The Anchor Element ================================
|
| 1050 |
+
</xs:documentation>
|
| 1051 |
+
</xs:annotation>
|
| 1052 |
+
<xs:element name="a">
|
| 1053 |
+
<xs:annotation>
|
| 1054 |
+
<xs:documentation>
|
| 1055 |
+
content is "Inline" except that anchors shouldn't be nested
|
| 1056 |
+
</xs:documentation>
|
| 1057 |
+
</xs:annotation>
|
| 1058 |
+
<xs:complexType mixed="true">
|
| 1059 |
+
<xs:complexContent>
|
| 1060 |
+
<xs:extension base="a.content">
|
| 1061 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1062 |
+
<xs:attributeGroup ref="focus"/>
|
| 1063 |
+
<xs:attribute name="charset" type="Charset"/>
|
| 1064 |
+
<xs:attribute name="type" type="ContentType"/>
|
| 1065 |
+
<xs:attribute name="name" type="xs:NMTOKEN"/>
|
| 1066 |
+
<xs:attribute name="href" type="URI"/>
|
| 1067 |
+
<xs:attribute name="hreflang" type="LanguageCode"/>
|
| 1068 |
+
<xs:attribute name="rel" type="LinkTypes"/>
|
| 1069 |
+
<xs:attribute name="rev" type="LinkTypes"/>
|
| 1070 |
+
<xs:attribute name="shape" type="Shape" default="rect"/>
|
| 1071 |
+
<xs:attribute name="coords" type="Coords"/>
|
| 1072 |
+
</xs:extension>
|
| 1073 |
+
</xs:complexContent>
|
| 1074 |
+
</xs:complexType>
|
| 1075 |
+
</xs:element>
|
| 1076 |
+
<xs:annotation>
|
| 1077 |
+
<xs:documentation>
|
| 1078 |
+
===================== Inline Elements ================================
|
| 1079 |
+
</xs:documentation>
|
| 1080 |
+
</xs:annotation>
|
| 1081 |
+
<xs:element name="span">
|
| 1082 |
+
<xs:annotation>
|
| 1083 |
+
<xs:documentation>
|
| 1084 |
+
generic language/style container
|
| 1085 |
+
</xs:documentation>
|
| 1086 |
+
</xs:annotation>
|
| 1087 |
+
<xs:complexType mixed="true">
|
| 1088 |
+
<xs:complexContent>
|
| 1089 |
+
<xs:extension base="Inline">
|
| 1090 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1091 |
+
</xs:extension>
|
| 1092 |
+
</xs:complexContent>
|
| 1093 |
+
</xs:complexType>
|
| 1094 |
+
</xs:element>
|
| 1095 |
+
<xs:element name="bdo">
|
| 1096 |
+
<xs:annotation>
|
| 1097 |
+
<xs:documentation>
|
| 1098 |
+
I18N BiDi over-ride
|
| 1099 |
+
</xs:documentation>
|
| 1100 |
+
</xs:annotation>
|
| 1101 |
+
<xs:complexType mixed="true">
|
| 1102 |
+
<xs:complexContent>
|
| 1103 |
+
<xs:extension base="Inline">
|
| 1104 |
+
<xs:attributeGroup ref="coreattrs"/>
|
| 1105 |
+
<xs:attributeGroup ref="events"/>
|
| 1106 |
+
<xs:attribute name="lang" type="LanguageCode"/>
|
| 1107 |
+
<xs:attribute ref="xml:lang"/>
|
| 1108 |
+
<xs:attribute name="dir" use="required">
|
| 1109 |
+
<xs:simpleType>
|
| 1110 |
+
<xs:restriction base="xs:token">
|
| 1111 |
+
<xs:enumeration value="ltr"/>
|
| 1112 |
+
<xs:enumeration value="rtl"/>
|
| 1113 |
+
</xs:restriction>
|
| 1114 |
+
</xs:simpleType>
|
| 1115 |
+
</xs:attribute>
|
| 1116 |
+
</xs:extension>
|
| 1117 |
+
</xs:complexContent>
|
| 1118 |
+
</xs:complexType>
|
| 1119 |
+
</xs:element>
|
| 1120 |
+
<xs:element name="br">
|
| 1121 |
+
<xs:annotation>
|
| 1122 |
+
<xs:documentation>
|
| 1123 |
+
forced line break
|
| 1124 |
+
</xs:documentation>
|
| 1125 |
+
</xs:annotation>
|
| 1126 |
+
<xs:complexType>
|
| 1127 |
+
<xs:attributeGroup ref="coreattrs"/>
|
| 1128 |
+
</xs:complexType>
|
| 1129 |
+
</xs:element>
|
| 1130 |
+
<xs:element name="em">
|
| 1131 |
+
<xs:annotation>
|
| 1132 |
+
<xs:documentation>
|
| 1133 |
+
emphasis
|
| 1134 |
+
</xs:documentation>
|
| 1135 |
+
</xs:annotation>
|
| 1136 |
+
<xs:complexType mixed="true">
|
| 1137 |
+
<xs:complexContent>
|
| 1138 |
+
<xs:extension base="Inline">
|
| 1139 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1140 |
+
</xs:extension>
|
| 1141 |
+
</xs:complexContent>
|
| 1142 |
+
</xs:complexType>
|
| 1143 |
+
</xs:element>
|
| 1144 |
+
<xs:element name="strong">
|
| 1145 |
+
<xs:annotation>
|
| 1146 |
+
<xs:documentation>
|
| 1147 |
+
strong emphasis
|
| 1148 |
+
</xs:documentation>
|
| 1149 |
+
</xs:annotation>
|
| 1150 |
+
<xs:complexType mixed="true">
|
| 1151 |
+
<xs:complexContent>
|
| 1152 |
+
<xs:extension base="Inline">
|
| 1153 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1154 |
+
</xs:extension>
|
| 1155 |
+
</xs:complexContent>
|
| 1156 |
+
</xs:complexType>
|
| 1157 |
+
</xs:element>
|
| 1158 |
+
<xs:element name="dfn">
|
| 1159 |
+
<xs:annotation>
|
| 1160 |
+
<xs:documentation>
|
| 1161 |
+
definitional
|
| 1162 |
+
</xs:documentation>
|
| 1163 |
+
</xs:annotation>
|
| 1164 |
+
<xs:complexType mixed="true">
|
| 1165 |
+
<xs:complexContent>
|
| 1166 |
+
<xs:extension base="Inline">
|
| 1167 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1168 |
+
</xs:extension>
|
| 1169 |
+
</xs:complexContent>
|
| 1170 |
+
</xs:complexType>
|
| 1171 |
+
</xs:element>
|
| 1172 |
+
<xs:element name="code">
|
| 1173 |
+
<xs:annotation>
|
| 1174 |
+
<xs:documentation>
|
| 1175 |
+
program code
|
| 1176 |
+
</xs:documentation>
|
| 1177 |
+
</xs:annotation>
|
| 1178 |
+
<xs:complexType mixed="true">
|
| 1179 |
+
<xs:complexContent>
|
| 1180 |
+
<xs:extension base="Inline">
|
| 1181 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1182 |
+
</xs:extension>
|
| 1183 |
+
</xs:complexContent>
|
| 1184 |
+
</xs:complexType>
|
| 1185 |
+
</xs:element>
|
| 1186 |
+
<xs:element name="samp">
|
| 1187 |
+
<xs:annotation>
|
| 1188 |
+
<xs:documentation>
|
| 1189 |
+
sample
|
| 1190 |
+
</xs:documentation>
|
| 1191 |
+
</xs:annotation>
|
| 1192 |
+
<xs:complexType mixed="true">
|
| 1193 |
+
<xs:complexContent>
|
| 1194 |
+
<xs:extension base="Inline">
|
| 1195 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1196 |
+
</xs:extension>
|
| 1197 |
+
</xs:complexContent>
|
| 1198 |
+
</xs:complexType>
|
| 1199 |
+
</xs:element>
|
| 1200 |
+
<xs:element name="kbd">
|
| 1201 |
+
<xs:annotation>
|
| 1202 |
+
<xs:documentation>
|
| 1203 |
+
something user would type
|
| 1204 |
+
</xs:documentation>
|
| 1205 |
+
</xs:annotation>
|
| 1206 |
+
<xs:complexType mixed="true">
|
| 1207 |
+
<xs:complexContent>
|
| 1208 |
+
<xs:extension base="Inline">
|
| 1209 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1210 |
+
</xs:extension>
|
| 1211 |
+
</xs:complexContent>
|
| 1212 |
+
</xs:complexType>
|
| 1213 |
+
</xs:element>
|
| 1214 |
+
<xs:element name="var">
|
| 1215 |
+
<xs:annotation>
|
| 1216 |
+
<xs:documentation>
|
| 1217 |
+
variable
|
| 1218 |
+
</xs:documentation>
|
| 1219 |
+
</xs:annotation>
|
| 1220 |
+
<xs:complexType mixed="true">
|
| 1221 |
+
<xs:complexContent>
|
| 1222 |
+
<xs:extension base="Inline">
|
| 1223 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1224 |
+
</xs:extension>
|
| 1225 |
+
</xs:complexContent>
|
| 1226 |
+
</xs:complexType>
|
| 1227 |
+
</xs:element>
|
| 1228 |
+
<xs:element name="cite">
|
| 1229 |
+
<xs:annotation>
|
| 1230 |
+
<xs:documentation>
|
| 1231 |
+
citation
|
| 1232 |
+
</xs:documentation>
|
| 1233 |
+
</xs:annotation>
|
| 1234 |
+
<xs:complexType mixed="true">
|
| 1235 |
+
<xs:complexContent>
|
| 1236 |
+
<xs:extension base="Inline">
|
| 1237 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1238 |
+
</xs:extension>
|
| 1239 |
+
</xs:complexContent>
|
| 1240 |
+
</xs:complexType>
|
| 1241 |
+
</xs:element>
|
| 1242 |
+
<xs:element name="abbr">
|
| 1243 |
+
<xs:annotation>
|
| 1244 |
+
<xs:documentation>
|
| 1245 |
+
abbreviation
|
| 1246 |
+
</xs:documentation>
|
| 1247 |
+
</xs:annotation>
|
| 1248 |
+
<xs:complexType mixed="true">
|
| 1249 |
+
<xs:complexContent>
|
| 1250 |
+
<xs:extension base="Inline">
|
| 1251 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1252 |
+
</xs:extension>
|
| 1253 |
+
</xs:complexContent>
|
| 1254 |
+
</xs:complexType>
|
| 1255 |
+
</xs:element>
|
| 1256 |
+
<xs:element name="acronym">
|
| 1257 |
+
<xs:annotation>
|
| 1258 |
+
<xs:documentation>
|
| 1259 |
+
acronym
|
| 1260 |
+
</xs:documentation>
|
| 1261 |
+
</xs:annotation>
|
| 1262 |
+
<xs:complexType mixed="true">
|
| 1263 |
+
<xs:complexContent>
|
| 1264 |
+
<xs:extension base="Inline">
|
| 1265 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1266 |
+
</xs:extension>
|
| 1267 |
+
</xs:complexContent>
|
| 1268 |
+
</xs:complexType>
|
| 1269 |
+
</xs:element>
|
| 1270 |
+
<xs:element name="q">
|
| 1271 |
+
<xs:annotation>
|
| 1272 |
+
<xs:documentation>
|
| 1273 |
+
inlined quote
|
| 1274 |
+
</xs:documentation>
|
| 1275 |
+
</xs:annotation>
|
| 1276 |
+
<xs:complexType mixed="true">
|
| 1277 |
+
<xs:complexContent>
|
| 1278 |
+
<xs:extension base="Inline">
|
| 1279 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1280 |
+
<xs:attribute name="cite" type="URI"/>
|
| 1281 |
+
</xs:extension>
|
| 1282 |
+
</xs:complexContent>
|
| 1283 |
+
</xs:complexType>
|
| 1284 |
+
</xs:element>
|
| 1285 |
+
<xs:element name="sub">
|
| 1286 |
+
<xs:annotation>
|
| 1287 |
+
<xs:documentation>
|
| 1288 |
+
subscript
|
| 1289 |
+
</xs:documentation>
|
| 1290 |
+
</xs:annotation>
|
| 1291 |
+
<xs:complexType mixed="true">
|
| 1292 |
+
<xs:complexContent>
|
| 1293 |
+
<xs:extension base="Inline">
|
| 1294 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1295 |
+
</xs:extension>
|
| 1296 |
+
</xs:complexContent>
|
| 1297 |
+
</xs:complexType>
|
| 1298 |
+
</xs:element>
|
| 1299 |
+
<xs:element name="sup">
|
| 1300 |
+
<xs:annotation>
|
| 1301 |
+
<xs:documentation>
|
| 1302 |
+
superscript
|
| 1303 |
+
</xs:documentation>
|
| 1304 |
+
</xs:annotation>
|
| 1305 |
+
<xs:complexType mixed="true">
|
| 1306 |
+
<xs:complexContent>
|
| 1307 |
+
<xs:extension base="Inline">
|
| 1308 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1309 |
+
</xs:extension>
|
| 1310 |
+
</xs:complexContent>
|
| 1311 |
+
</xs:complexType>
|
| 1312 |
+
</xs:element>
|
| 1313 |
+
<xs:element name="tt">
|
| 1314 |
+
<xs:annotation>
|
| 1315 |
+
<xs:documentation>
|
| 1316 |
+
fixed pitch font
|
| 1317 |
+
</xs:documentation>
|
| 1318 |
+
</xs:annotation>
|
| 1319 |
+
<xs:complexType mixed="true">
|
| 1320 |
+
<xs:complexContent>
|
| 1321 |
+
<xs:extension base="Inline">
|
| 1322 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1323 |
+
</xs:extension>
|
| 1324 |
+
</xs:complexContent>
|
| 1325 |
+
</xs:complexType>
|
| 1326 |
+
</xs:element>
|
| 1327 |
+
<xs:element name="i">
|
| 1328 |
+
<xs:annotation>
|
| 1329 |
+
<xs:documentation>
|
| 1330 |
+
italic font
|
| 1331 |
+
</xs:documentation>
|
| 1332 |
+
</xs:annotation>
|
| 1333 |
+
<xs:complexType mixed="true">
|
| 1334 |
+
<xs:complexContent>
|
| 1335 |
+
<xs:extension base="Inline">
|
| 1336 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1337 |
+
</xs:extension>
|
| 1338 |
+
</xs:complexContent>
|
| 1339 |
+
</xs:complexType>
|
| 1340 |
+
</xs:element>
|
| 1341 |
+
<xs:element name="b">
|
| 1342 |
+
<xs:annotation>
|
| 1343 |
+
<xs:documentation>
|
| 1344 |
+
bold font
|
| 1345 |
+
</xs:documentation>
|
| 1346 |
+
</xs:annotation>
|
| 1347 |
+
<xs:complexType mixed="true">
|
| 1348 |
+
<xs:complexContent>
|
| 1349 |
+
<xs:extension base="Inline">
|
| 1350 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1351 |
+
</xs:extension>
|
| 1352 |
+
</xs:complexContent>
|
| 1353 |
+
</xs:complexType>
|
| 1354 |
+
</xs:element>
|
| 1355 |
+
<xs:element name="big">
|
| 1356 |
+
<xs:annotation>
|
| 1357 |
+
<xs:documentation>
|
| 1358 |
+
bigger font
|
| 1359 |
+
</xs:documentation>
|
| 1360 |
+
</xs:annotation>
|
| 1361 |
+
<xs:complexType mixed="true">
|
| 1362 |
+
<xs:complexContent>
|
| 1363 |
+
<xs:extension base="Inline">
|
| 1364 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1365 |
+
</xs:extension>
|
| 1366 |
+
</xs:complexContent>
|
| 1367 |
+
</xs:complexType>
|
| 1368 |
+
</xs:element>
|
| 1369 |
+
<xs:element name="small">
|
| 1370 |
+
<xs:annotation>
|
| 1371 |
+
<xs:documentation>
|
| 1372 |
+
smaller font
|
| 1373 |
+
</xs:documentation>
|
| 1374 |
+
</xs:annotation>
|
| 1375 |
+
<xs:complexType mixed="true">
|
| 1376 |
+
<xs:complexContent>
|
| 1377 |
+
<xs:extension base="Inline">
|
| 1378 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1379 |
+
</xs:extension>
|
| 1380 |
+
</xs:complexContent>
|
| 1381 |
+
</xs:complexType>
|
| 1382 |
+
</xs:element>
|
| 1383 |
+
<!--
|
| 1384 |
+
FHIR: no objects in FHIR
|
| 1385 |
+
<xs:annotation>
|
| 1386 |
+
<xs:documentation>
|
| 1387 |
+
==================== Object ======================================
|
| 1388 |
+
|
| 1389 |
+
object is used to embed objects as part of HTML pages.
|
| 1390 |
+
param elements should precede other content. Parameters
|
| 1391 |
+
can also be expressed as attribute/value pairs on the
|
| 1392 |
+
object element itself when brevity is desired.
|
| 1393 |
+
</xs:documentation>
|
| 1394 |
+
</xs:annotation>
|
| 1395 |
+
<xs:element name="object">
|
| 1396 |
+
<xs:complexType mixed="true">
|
| 1397 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 1398 |
+
<xs:element ref="param"/>
|
| 1399 |
+
<xs:group ref="block"/>
|
| 1400 |
+
<xs:element ref="form"/>
|
| 1401 |
+
<xs:group ref="inline"/>
|
| 1402 |
+
<xs:group ref="misc"/>
|
| 1403 |
+
</xs:choice>
|
| 1404 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1405 |
+
<xs:attribute name="declare">
|
| 1406 |
+
<xs:simpleType>
|
| 1407 |
+
<xs:restriction base="xs:token">
|
| 1408 |
+
<xs:enumeration value="declare"/>
|
| 1409 |
+
</xs:restriction>
|
| 1410 |
+
</xs:simpleType>
|
| 1411 |
+
</xs:attribute>
|
| 1412 |
+
<xs:attribute name="classid" type="URI"/>
|
| 1413 |
+
<xs:attribute name="codebase" type="URI"/>
|
| 1414 |
+
<xs:attribute name="data" type="URI"/>
|
| 1415 |
+
<xs:attribute name="type" type="ContentType"/>
|
| 1416 |
+
<xs:attribute name="codetype" type="ContentType"/>
|
| 1417 |
+
<xs:attribute name="archive" type="UriList"/>
|
| 1418 |
+
<xs:attribute name="standby" type="Text"/>
|
| 1419 |
+
<xs:attribute name="height" type="Length"/>
|
| 1420 |
+
<xs:attribute name="width" type="Length"/>
|
| 1421 |
+
<xs:attribute name="usemap" type="URI"/>
|
| 1422 |
+
<xs:attribute name="name" type="xs:NMTOKEN"/>
|
| 1423 |
+
<xs:attribute name="tabindex" type="tabindexNumber"/>
|
| 1424 |
+
</xs:complexType>
|
| 1425 |
+
</xs:element>
|
| 1426 |
+
<xs:element name="param">
|
| 1427 |
+
<xs:annotation>
|
| 1428 |
+
<xs:documentation>
|
| 1429 |
+
param is used to supply a named property value.
|
| 1430 |
+
In XML it would seem natural to follow RDF and support an
|
| 1431 |
+
abbreviated syntax where the param elements are replaced
|
| 1432 |
+
by attribute value pairs on the object start tag.
|
| 1433 |
+
</xs:documentation>
|
| 1434 |
+
</xs:annotation>
|
| 1435 |
+
<xs:complexType>
|
| 1436 |
+
<xs:attribute name="id" type="xs:ID"/>
|
| 1437 |
+
<xs:attribute name="name"/>
|
| 1438 |
+
<xs:attribute name="value"/>
|
| 1439 |
+
<xs:attribute name="valuetype" default="data">
|
| 1440 |
+
<xs:simpleType>
|
| 1441 |
+
<xs:restriction base="xs:token">
|
| 1442 |
+
<xs:enumeration value="data"/>
|
| 1443 |
+
<xs:enumeration value="ref"/>
|
| 1444 |
+
<xs:enumeration value="object"/>
|
| 1445 |
+
</xs:restriction>
|
| 1446 |
+
</xs:simpleType>
|
| 1447 |
+
</xs:attribute>
|
| 1448 |
+
<xs:attribute name="type" type="ContentType"/>
|
| 1449 |
+
</xs:complexType>
|
| 1450 |
+
</xs:element>
|
| 1451 |
+
-->
|
| 1452 |
+
<xs:annotation>
|
| 1453 |
+
<xs:documentation>
|
| 1454 |
+
=================== Images ===========================================
|
| 1455 |
+
|
| 1456 |
+
To avoid accessibility problems for people who aren't
|
| 1457 |
+
able to see the image, you should provide a text
|
| 1458 |
+
description using the alt and longdesc attributes.
|
| 1459 |
+
In addition, avoid the use of server-side image maps.
|
| 1460 |
+
Note that in this DTD there is no name attribute. That
|
| 1461 |
+
is only available in the transitional and frameset DTD.
|
| 1462 |
+
</xs:documentation>
|
| 1463 |
+
</xs:annotation>
|
| 1464 |
+
<xs:element name="img">
|
| 1465 |
+
<xs:complexType>
|
| 1466 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1467 |
+
<xs:attribute name="src" type="URI" use="required"/>
|
| 1468 |
+
<xs:attribute name="alt" type="Text" use="required"/>
|
| 1469 |
+
<xs:attribute name="longdesc" type="URI"/>
|
| 1470 |
+
<xs:attribute name="height" type="Length"/>
|
| 1471 |
+
<xs:attribute name="width" type="Length"/>
|
| 1472 |
+
<xs:attribute name="usemap" type="URI">
|
| 1473 |
+
<xs:annotation>
|
| 1474 |
+
<xs:documentation>
|
| 1475 |
+
usemap points to a map element which may be in this document
|
| 1476 |
+
or an external document, although the latter is not widely supported
|
| 1477 |
+
</xs:documentation>
|
| 1478 |
+
</xs:annotation>
|
| 1479 |
+
</xs:attribute>
|
| 1480 |
+
<xs:attribute name="ismap">
|
| 1481 |
+
<xs:simpleType>
|
| 1482 |
+
<xs:restriction base="xs:token">
|
| 1483 |
+
<xs:enumeration value="ismap"/>
|
| 1484 |
+
</xs:restriction>
|
| 1485 |
+
</xs:simpleType>
|
| 1486 |
+
</xs:attribute>
|
| 1487 |
+
</xs:complexType>
|
| 1488 |
+
</xs:element>
|
| 1489 |
+
<xs:annotation>
|
| 1490 |
+
<xs:documentation>
|
| 1491 |
+
================== Client-side image maps ============================
|
| 1492 |
+
|
| 1493 |
+
These can be placed in the same document or grouped in a
|
| 1494 |
+
separate document although this isn't yet widely supported
|
| 1495 |
+
</xs:documentation>
|
| 1496 |
+
</xs:annotation>
|
| 1497 |
+
<xs:element name="map">
|
| 1498 |
+
<xs:complexType>
|
| 1499 |
+
<xs:choice>
|
| 1500 |
+
<xs:choice maxOccurs="unbounded">
|
| 1501 |
+
<xs:group ref="block"/>
|
| 1502 |
+
<!--
|
| 1503 |
+
FHIR: no forms
|
| 1504 |
+
<xs:element ref="form"/>
|
| 1505 |
+
<xs:group ref="misc"/>
|
| 1506 |
+
-->
|
| 1507 |
+
</xs:choice>
|
| 1508 |
+
<xs:element ref="area" maxOccurs="unbounded"/>
|
| 1509 |
+
</xs:choice>
|
| 1510 |
+
<xs:attributeGroup ref="i18n"/>
|
| 1511 |
+
<xs:attributeGroup ref="events"/>
|
| 1512 |
+
<xs:attribute name="id" type="xs:ID" use="required"/>
|
| 1513 |
+
<xs:attribute name="class"/>
|
| 1514 |
+
<xs:attribute name="style" type="StyleSheet"/>
|
| 1515 |
+
<xs:attribute name="title" type="Text"/>
|
| 1516 |
+
<xs:attribute name="name" type="xs:NMTOKEN"/>
|
| 1517 |
+
</xs:complexType>
|
| 1518 |
+
</xs:element>
|
| 1519 |
+
<xs:element name="area">
|
| 1520 |
+
<xs:complexType>
|
| 1521 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1522 |
+
<xs:attributeGroup ref="focus"/>
|
| 1523 |
+
<xs:attribute name="shape" type="Shape" default="rect"/>
|
| 1524 |
+
<xs:attribute name="coords" type="Coords"/>
|
| 1525 |
+
<xs:attribute name="href" type="URI"/>
|
| 1526 |
+
<xs:attribute name="nohref">
|
| 1527 |
+
<xs:simpleType>
|
| 1528 |
+
<xs:restriction base="xs:token">
|
| 1529 |
+
<xs:enumeration value="nohref"/>
|
| 1530 |
+
</xs:restriction>
|
| 1531 |
+
</xs:simpleType>
|
| 1532 |
+
</xs:attribute>
|
| 1533 |
+
<xs:attribute name="alt" type="Text" use="required"/>
|
| 1534 |
+
</xs:complexType>
|
| 1535 |
+
</xs:element>
|
| 1536 |
+
<!--
|
| 1537 |
+
FHIR: no forms in FHIR
|
| 1538 |
+
<xs:annotation>
|
| 1539 |
+
<xs:documentation>
|
| 1540 |
+
================ Forms ===============================================
|
| 1541 |
+
</xs:documentation>
|
| 1542 |
+
</xs:annotation>
|
| 1543 |
+
<xs:element name="form">
|
| 1544 |
+
<xs:complexType>
|
| 1545 |
+
<xs:complexContent>
|
| 1546 |
+
<xs:extension base="form.content">
|
| 1547 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1548 |
+
<xs:attribute name="action" type="URI" use="required"/>
|
| 1549 |
+
<xs:attribute name="method" default="get">
|
| 1550 |
+
<xs:simpleType>
|
| 1551 |
+
<xs:restriction base="xs:token">
|
| 1552 |
+
<xs:enumeration value="get"/>
|
| 1553 |
+
<xs:enumeration value="post"/>
|
| 1554 |
+
</xs:restriction>
|
| 1555 |
+
</xs:simpleType>
|
| 1556 |
+
</xs:attribute>
|
| 1557 |
+
<xs:attribute name="enctype" type="ContentType" default="application/x-www-form-urlencoded"/>
|
| 1558 |
+
<xs:attribute name="onsubmit" type="Script"/>
|
| 1559 |
+
<xs:attribute name="onreset" type="Script"/>
|
| 1560 |
+
<xs:attribute name="accept" type="ContentTypes"/>
|
| 1561 |
+
<xs:attribute name="accept-charset" type="Charsets"/>
|
| 1562 |
+
</xs:extension>
|
| 1563 |
+
</xs:complexContent>
|
| 1564 |
+
</xs:complexType>
|
| 1565 |
+
</xs:element>
|
| 1566 |
+
<xs:element name="label">
|
| 1567 |
+
<xs:annotation>
|
| 1568 |
+
<xs:documentation>
|
| 1569 |
+
Each label must not contain more than ONE field
|
| 1570 |
+
Label elements shouldn't be nested.
|
| 1571 |
+
</xs:documentation>
|
| 1572 |
+
</xs:annotation>
|
| 1573 |
+
<xs:complexType mixed="true">
|
| 1574 |
+
<xs:complexContent mixed="true">
|
| 1575 |
+
<xs:extension base="Inline">
|
| 1576 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1577 |
+
<xs:attribute name="for" type="xs:IDREF"/>
|
| 1578 |
+
<xs:attribute name="accesskey" type="Character"/>
|
| 1579 |
+
<xs:attribute name="onfocus" type="Script"/>
|
| 1580 |
+
<xs:attribute name="onblur" type="Script"/>
|
| 1581 |
+
</xs:extension>
|
| 1582 |
+
</xs:complexContent>
|
| 1583 |
+
</xs:complexType>
|
| 1584 |
+
</xs:element>
|
| 1585 |
+
<xs:simpleType name="InputType">
|
| 1586 |
+
<xs:restriction base="xs:token">
|
| 1587 |
+
<xs:enumeration value="text"/>
|
| 1588 |
+
<xs:enumeration value="password"/>
|
| 1589 |
+
<xs:enumeration value="checkbox"/>
|
| 1590 |
+
<xs:enumeration value="radio"/>
|
| 1591 |
+
<xs:enumeration value="submit"/>
|
| 1592 |
+
<xs:enumeration value="reset"/>
|
| 1593 |
+
<xs:enumeration value="file"/>
|
| 1594 |
+
<xs:enumeration value="hidden"/>
|
| 1595 |
+
<xs:enumeration value="image"/>
|
| 1596 |
+
<xs:enumeration value="button"/>
|
| 1597 |
+
</xs:restriction>
|
| 1598 |
+
</xs:simpleType>
|
| 1599 |
+
<xs:element name="input">
|
| 1600 |
+
<xs:annotation>
|
| 1601 |
+
<xs:documentation>
|
| 1602 |
+
form control
|
| 1603 |
+
</xs:documentation>
|
| 1604 |
+
</xs:annotation>
|
| 1605 |
+
<xs:complexType>
|
| 1606 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1607 |
+
<xs:attributeGroup ref="focus"/>
|
| 1608 |
+
<xs:attribute name="type" type="InputType" default="text"/>
|
| 1609 |
+
<xs:attribute name="name">
|
| 1610 |
+
<xs:annotation>
|
| 1611 |
+
<xs:documentation>
|
| 1612 |
+
the name attribute is required for all but submit & reset
|
| 1613 |
+
</xs:documentation>
|
| 1614 |
+
</xs:annotation>
|
| 1615 |
+
</xs:attribute>
|
| 1616 |
+
<xs:attribute name="value"/>
|
| 1617 |
+
<xs:attribute name="checked">
|
| 1618 |
+
<xs:simpleType>
|
| 1619 |
+
<xs:restriction base="xs:token">
|
| 1620 |
+
<xs:enumeration value="checked"/>
|
| 1621 |
+
</xs:restriction>
|
| 1622 |
+
</xs:simpleType>
|
| 1623 |
+
</xs:attribute>
|
| 1624 |
+
<xs:attribute name="disabled">
|
| 1625 |
+
<xs:simpleType>
|
| 1626 |
+
<xs:restriction base="xs:token">
|
| 1627 |
+
<xs:enumeration value="disabled"/>
|
| 1628 |
+
</xs:restriction>
|
| 1629 |
+
</xs:simpleType>
|
| 1630 |
+
</xs:attribute>
|
| 1631 |
+
<xs:attribute name="readonly">
|
| 1632 |
+
<xs:simpleType>
|
| 1633 |
+
<xs:restriction base="xs:token">
|
| 1634 |
+
<xs:enumeration value="readonly"/>
|
| 1635 |
+
</xs:restriction>
|
| 1636 |
+
</xs:simpleType>
|
| 1637 |
+
</xs:attribute>
|
| 1638 |
+
<xs:attribute name="size"/>
|
| 1639 |
+
<xs:attribute name="maxlength" type="Number"/>
|
| 1640 |
+
<xs:attribute name="src" type="URI"/>
|
| 1641 |
+
<xs:attribute name="alt"/>
|
| 1642 |
+
<xs:attribute name="usemap" type="URI"/>
|
| 1643 |
+
<xs:attribute name="onselect" type="Script"/>
|
| 1644 |
+
<xs:attribute name="onchange" type="Script"/>
|
| 1645 |
+
<xs:attribute name="accept" type="ContentTypes"/>
|
| 1646 |
+
</xs:complexType>
|
| 1647 |
+
</xs:element>
|
| 1648 |
+
<xs:element name="select">
|
| 1649 |
+
<xs:annotation>
|
| 1650 |
+
<xs:documentation>
|
| 1651 |
+
option selector
|
| 1652 |
+
</xs:documentation>
|
| 1653 |
+
</xs:annotation>
|
| 1654 |
+
<xs:complexType>
|
| 1655 |
+
<xs:choice maxOccurs="unbounded">
|
| 1656 |
+
<xs:element ref="optgroup"/>
|
| 1657 |
+
<xs:element ref="option"/>
|
| 1658 |
+
</xs:choice>
|
| 1659 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1660 |
+
<xs:attribute name="name"/>
|
| 1661 |
+
<xs:attribute name="size" type="Number"/>
|
| 1662 |
+
<xs:attribute name="multiple">
|
| 1663 |
+
<xs:simpleType>
|
| 1664 |
+
<xs:restriction base="xs:token">
|
| 1665 |
+
<xs:enumeration value="multiple"/>
|
| 1666 |
+
</xs:restriction>
|
| 1667 |
+
</xs:simpleType>
|
| 1668 |
+
</xs:attribute>
|
| 1669 |
+
<xs:attribute name="disabled">
|
| 1670 |
+
<xs:simpleType>
|
| 1671 |
+
<xs:restriction base="xs:token">
|
| 1672 |
+
<xs:enumeration value="disabled"/>
|
| 1673 |
+
</xs:restriction>
|
| 1674 |
+
</xs:simpleType>
|
| 1675 |
+
</xs:attribute>
|
| 1676 |
+
<xs:attribute name="tabindex" type="tabindexNumber"/>
|
| 1677 |
+
<xs:attribute name="onfocus" type="Script"/>
|
| 1678 |
+
<xs:attribute name="onblur" type="Script"/>
|
| 1679 |
+
<xs:attribute name="onchange" type="Script"/>
|
| 1680 |
+
</xs:complexType>
|
| 1681 |
+
</xs:element>
|
| 1682 |
+
<xs:element name="optgroup">
|
| 1683 |
+
<xs:annotation>
|
| 1684 |
+
<xs:documentation>
|
| 1685 |
+
option group
|
| 1686 |
+
</xs:documentation>
|
| 1687 |
+
</xs:annotation>
|
| 1688 |
+
<xs:complexType>
|
| 1689 |
+
<xs:sequence>
|
| 1690 |
+
<xs:element ref="option" maxOccurs="unbounded"/>
|
| 1691 |
+
</xs:sequence>
|
| 1692 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1693 |
+
<xs:attribute name="disabled">
|
| 1694 |
+
<xs:simpleType>
|
| 1695 |
+
<xs:restriction base="xs:token">
|
| 1696 |
+
<xs:enumeration value="disabled"/>
|
| 1697 |
+
</xs:restriction>
|
| 1698 |
+
</xs:simpleType>
|
| 1699 |
+
</xs:attribute>
|
| 1700 |
+
<xs:attribute name="label" type="Text" use="required"/>
|
| 1701 |
+
</xs:complexType>
|
| 1702 |
+
</xs:element>
|
| 1703 |
+
<xs:element name="option">
|
| 1704 |
+
<xs:annotation>
|
| 1705 |
+
<xs:documentation>
|
| 1706 |
+
selectable choice
|
| 1707 |
+
</xs:documentation>
|
| 1708 |
+
</xs:annotation>
|
| 1709 |
+
<xs:complexType mixed="true">
|
| 1710 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1711 |
+
<xs:attribute name="selected">
|
| 1712 |
+
<xs:simpleType>
|
| 1713 |
+
<xs:restriction base="xs:token">
|
| 1714 |
+
<xs:enumeration value="selected"/>
|
| 1715 |
+
</xs:restriction>
|
| 1716 |
+
</xs:simpleType>
|
| 1717 |
+
</xs:attribute>
|
| 1718 |
+
<xs:attribute name="disabled">
|
| 1719 |
+
<xs:simpleType>
|
| 1720 |
+
<xs:restriction base="xs:token">
|
| 1721 |
+
<xs:enumeration value="disabled"/>
|
| 1722 |
+
</xs:restriction>
|
| 1723 |
+
</xs:simpleType>
|
| 1724 |
+
</xs:attribute>
|
| 1725 |
+
<xs:attribute name="label" type="Text"/>
|
| 1726 |
+
<xs:attribute name="value"/>
|
| 1727 |
+
</xs:complexType>
|
| 1728 |
+
</xs:element>
|
| 1729 |
+
<xs:element name="textarea">
|
| 1730 |
+
<xs:annotation>
|
| 1731 |
+
<xs:documentation>
|
| 1732 |
+
multi-line text field
|
| 1733 |
+
</xs:documentation>
|
| 1734 |
+
</xs:annotation>
|
| 1735 |
+
<xs:complexType mixed="true">
|
| 1736 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1737 |
+
<xs:attributeGroup ref="focus"/>
|
| 1738 |
+
<xs:attribute name="name"/>
|
| 1739 |
+
<xs:attribute name="rows" type="Number" use="required"/>
|
| 1740 |
+
<xs:attribute name="cols" type="Number" use="required"/>
|
| 1741 |
+
<xs:attribute name="disabled">
|
| 1742 |
+
<xs:simpleType>
|
| 1743 |
+
<xs:restriction base="xs:token">
|
| 1744 |
+
<xs:enumeration value="disabled"/>
|
| 1745 |
+
</xs:restriction>
|
| 1746 |
+
</xs:simpleType>
|
| 1747 |
+
</xs:attribute>
|
| 1748 |
+
<xs:attribute name="readonly">
|
| 1749 |
+
<xs:simpleType>
|
| 1750 |
+
<xs:restriction base="xs:token">
|
| 1751 |
+
<xs:enumeration value="readonly"/>
|
| 1752 |
+
</xs:restriction>
|
| 1753 |
+
</xs:simpleType>
|
| 1754 |
+
</xs:attribute>
|
| 1755 |
+
<xs:attribute name="onselect" type="Script"/>
|
| 1756 |
+
<xs:attribute name="onchange" type="Script"/>
|
| 1757 |
+
</xs:complexType>
|
| 1758 |
+
</xs:element>
|
| 1759 |
+
<xs:element name="fieldset">
|
| 1760 |
+
<xs:annotation>
|
| 1761 |
+
<xs:documentation>
|
| 1762 |
+
The fieldset element is used to group form fields.
|
| 1763 |
+
Only one legend element should occur in the content
|
| 1764 |
+
and if present should only be preceded by whitespace.
|
| 1765 |
+
|
| 1766 |
+
NOTE: this content model is different from the XHTML 1.0 DTD,
|
| 1767 |
+
closer to the intended content model in HTML4 DTD
|
| 1768 |
+
</xs:documentation>
|
| 1769 |
+
</xs:annotation>
|
| 1770 |
+
<xs:complexType mixed="true">
|
| 1771 |
+
<xs:sequence>
|
| 1772 |
+
<xs:element ref="legend"/>
|
| 1773 |
+
<xs:choice minOccurs="0" maxOccurs="unbounded">
|
| 1774 |
+
<xs:group ref="block"/>
|
| 1775 |
+
<xs:element ref="form"/>
|
| 1776 |
+
<xs:group ref="inline"/>
|
| 1777 |
+
<xs:group ref="misc"/>
|
| 1778 |
+
</xs:choice>
|
| 1779 |
+
</xs:sequence>
|
| 1780 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1781 |
+
</xs:complexType>
|
| 1782 |
+
</xs:element>
|
| 1783 |
+
<xs:element name="legend">
|
| 1784 |
+
<xs:annotation>
|
| 1785 |
+
<xs:documentation>
|
| 1786 |
+
fieldset label
|
| 1787 |
+
</xs:documentation>
|
| 1788 |
+
</xs:annotation>
|
| 1789 |
+
<xs:complexType mixed="true">
|
| 1790 |
+
<xs:complexContent mixed="true">
|
| 1791 |
+
<xs:extension base="Inline">
|
| 1792 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1793 |
+
<xs:attribute name="accesskey" type="Character"/>
|
| 1794 |
+
</xs:extension>
|
| 1795 |
+
</xs:complexContent>
|
| 1796 |
+
</xs:complexType>
|
| 1797 |
+
</xs:element>
|
| 1798 |
+
<xs:element name="button">
|
| 1799 |
+
<xs:annotation>
|
| 1800 |
+
<xs:documentation>
|
| 1801 |
+
Content is "Flow" excluding a, form and form controls
|
| 1802 |
+
</xs:documentation>
|
| 1803 |
+
</xs:annotation>
|
| 1804 |
+
<xs:complexType mixed="true">
|
| 1805 |
+
<xs:complexContent mixed="true">
|
| 1806 |
+
<xs:extension base="button.content">
|
| 1807 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1808 |
+
<xs:attributeGroup ref="focus"/>
|
| 1809 |
+
<xs:attribute name="name"/>
|
| 1810 |
+
<xs:attribute name="value"/>
|
| 1811 |
+
<xs:attribute name="type" default="submit">
|
| 1812 |
+
<xs:simpleType>
|
| 1813 |
+
<xs:restriction base="xs:token">
|
| 1814 |
+
<xs:enumeration value="button"/>
|
| 1815 |
+
<xs:enumeration value="submit"/>
|
| 1816 |
+
<xs:enumeration value="reset"/>
|
| 1817 |
+
</xs:restriction>
|
| 1818 |
+
</xs:simpleType>
|
| 1819 |
+
</xs:attribute>
|
| 1820 |
+
<xs:attribute name="disabled">
|
| 1821 |
+
<xs:simpleType>
|
| 1822 |
+
<xs:restriction base="xs:token">
|
| 1823 |
+
<xs:enumeration value="disabled"/>
|
| 1824 |
+
</xs:restriction>
|
| 1825 |
+
</xs:simpleType>
|
| 1826 |
+
</xs:attribute>
|
| 1827 |
+
</xs:extension>
|
| 1828 |
+
</xs:complexContent>
|
| 1829 |
+
</xs:complexType>
|
| 1830 |
+
</xs:element>
|
| 1831 |
+
-->
|
| 1832 |
+
<xs:annotation>
|
| 1833 |
+
<xs:documentation>
|
| 1834 |
+
======================= Tables =======================================
|
| 1835 |
+
|
| 1836 |
+
Derived from IETF HTML table standard, see [RFC1942]
|
| 1837 |
+
</xs:documentation>
|
| 1838 |
+
</xs:annotation>
|
| 1839 |
+
<xs:simpleType name="TFrame">
|
| 1840 |
+
<xs:annotation>
|
| 1841 |
+
<xs:documentation>
|
| 1842 |
+
The border attribute sets the thickness of the frame around the
|
| 1843 |
+
table. The default units are screen pixels.
|
| 1844 |
+
|
| 1845 |
+
The frame attribute specifies which parts of the frame around
|
| 1846 |
+
the table should be rendered. The values are not the same as
|
| 1847 |
+
CALS to avoid a name clash with the valign attribute.
|
| 1848 |
+
</xs:documentation>
|
| 1849 |
+
</xs:annotation>
|
| 1850 |
+
<xs:restriction base="xs:token">
|
| 1851 |
+
<xs:enumeration value="void"/>
|
| 1852 |
+
<xs:enumeration value="above"/>
|
| 1853 |
+
<xs:enumeration value="below"/>
|
| 1854 |
+
<xs:enumeration value="hsides"/>
|
| 1855 |
+
<xs:enumeration value="lhs"/>
|
| 1856 |
+
<xs:enumeration value="rhs"/>
|
| 1857 |
+
<xs:enumeration value="vsides"/>
|
| 1858 |
+
<xs:enumeration value="box"/>
|
| 1859 |
+
<xs:enumeration value="border"/>
|
| 1860 |
+
</xs:restriction>
|
| 1861 |
+
</xs:simpleType>
|
| 1862 |
+
<xs:simpleType name="TRules">
|
| 1863 |
+
<xs:annotation>
|
| 1864 |
+
<xs:documentation>
|
| 1865 |
+
The rules attribute defines which rules to draw between cells:
|
| 1866 |
+
|
| 1867 |
+
If rules is absent then assume:
|
| 1868 |
+
"none" if border is absent or border="0" otherwise "all"
|
| 1869 |
+
</xs:documentation>
|
| 1870 |
+
</xs:annotation>
|
| 1871 |
+
<xs:restriction base="xs:token">
|
| 1872 |
+
<xs:enumeration value="none"/>
|
| 1873 |
+
<xs:enumeration value="groups"/>
|
| 1874 |
+
<xs:enumeration value="rows"/>
|
| 1875 |
+
<xs:enumeration value="cols"/>
|
| 1876 |
+
<xs:enumeration value="all"/>
|
| 1877 |
+
</xs:restriction>
|
| 1878 |
+
</xs:simpleType>
|
| 1879 |
+
<xs:attributeGroup name="cellhalign">
|
| 1880 |
+
<xs:annotation>
|
| 1881 |
+
<xs:documentation>
|
| 1882 |
+
horizontal alignment attributes for cell contents
|
| 1883 |
+
|
| 1884 |
+
char alignment char, e.g. char=':'
|
| 1885 |
+
charoff offset for alignment char
|
| 1886 |
+
</xs:documentation>
|
| 1887 |
+
</xs:annotation>
|
| 1888 |
+
<xs:attribute name="align">
|
| 1889 |
+
<xs:simpleType>
|
| 1890 |
+
<xs:restriction base="xs:token">
|
| 1891 |
+
<xs:enumeration value="left"/>
|
| 1892 |
+
<xs:enumeration value="center"/>
|
| 1893 |
+
<xs:enumeration value="right"/>
|
| 1894 |
+
<xs:enumeration value="justify"/>
|
| 1895 |
+
<xs:enumeration value="char"/>
|
| 1896 |
+
</xs:restriction>
|
| 1897 |
+
</xs:simpleType>
|
| 1898 |
+
</xs:attribute>
|
| 1899 |
+
<xs:attribute name="char" type="Character"/>
|
| 1900 |
+
<xs:attribute name="charoff" type="Length"/>
|
| 1901 |
+
</xs:attributeGroup>
|
| 1902 |
+
<xs:attributeGroup name="cellvalign">
|
| 1903 |
+
<xs:annotation>
|
| 1904 |
+
<xs:documentation>
|
| 1905 |
+
vertical alignment attributes for cell contents
|
| 1906 |
+
</xs:documentation>
|
| 1907 |
+
</xs:annotation>
|
| 1908 |
+
<xs:attribute name="valign">
|
| 1909 |
+
<xs:simpleType>
|
| 1910 |
+
<xs:restriction base="xs:token">
|
| 1911 |
+
<xs:enumeration value="top"/>
|
| 1912 |
+
<xs:enumeration value="middle"/>
|
| 1913 |
+
<xs:enumeration value="bottom"/>
|
| 1914 |
+
<xs:enumeration value="baseline"/>
|
| 1915 |
+
</xs:restriction>
|
| 1916 |
+
</xs:simpleType>
|
| 1917 |
+
</xs:attribute>
|
| 1918 |
+
</xs:attributeGroup>
|
| 1919 |
+
<xs:element name="table">
|
| 1920 |
+
<xs:complexType>
|
| 1921 |
+
<xs:sequence>
|
| 1922 |
+
<xs:element ref="caption" minOccurs="0"/>
|
| 1923 |
+
<xs:choice>
|
| 1924 |
+
<xs:element ref="col" minOccurs="0" maxOccurs="unbounded"/>
|
| 1925 |
+
<xs:element ref="colgroup" minOccurs="0" maxOccurs="unbounded"/>
|
| 1926 |
+
</xs:choice>
|
| 1927 |
+
<xs:element ref="thead" minOccurs="0"/>
|
| 1928 |
+
<xs:element ref="tfoot" minOccurs="0"/>
|
| 1929 |
+
<xs:choice>
|
| 1930 |
+
<xs:element ref="tbody" maxOccurs="unbounded"/>
|
| 1931 |
+
<xs:element ref="tr" maxOccurs="unbounded"/>
|
| 1932 |
+
</xs:choice>
|
| 1933 |
+
</xs:sequence>
|
| 1934 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1935 |
+
<xs:attribute name="summary" type="Text"/>
|
| 1936 |
+
<xs:attribute name="width" type="Length"/>
|
| 1937 |
+
<xs:attribute name="border" type="Pixels"/>
|
| 1938 |
+
<xs:attribute name="frame" type="TFrame"/>
|
| 1939 |
+
<xs:attribute name="rules" type="TRules"/>
|
| 1940 |
+
<xs:attribute name="cellspacing" type="Length"/>
|
| 1941 |
+
<xs:attribute name="cellpadding" type="Length"/>
|
| 1942 |
+
</xs:complexType>
|
| 1943 |
+
</xs:element>
|
| 1944 |
+
<xs:element name="caption">
|
| 1945 |
+
<xs:complexType mixed="true">
|
| 1946 |
+
<xs:complexContent>
|
| 1947 |
+
<xs:extension base="Inline">
|
| 1948 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1949 |
+
</xs:extension>
|
| 1950 |
+
</xs:complexContent>
|
| 1951 |
+
</xs:complexType>
|
| 1952 |
+
</xs:element>
|
| 1953 |
+
<xs:annotation>
|
| 1954 |
+
<xs:documentation>
|
| 1955 |
+
Use thead to duplicate headers when breaking table
|
| 1956 |
+
across page boundaries, or for static headers when
|
| 1957 |
+
tbody sections are rendered in scrolling panel.
|
| 1958 |
+
|
| 1959 |
+
Use tfoot to duplicate footers when breaking table
|
| 1960 |
+
across page boundaries, or for static footers when
|
| 1961 |
+
tbody sections are rendered in scrolling panel.
|
| 1962 |
+
|
| 1963 |
+
Use multiple tbody sections when rules are needed
|
| 1964 |
+
between groups of table rows.
|
| 1965 |
+
</xs:documentation>
|
| 1966 |
+
</xs:annotation>
|
| 1967 |
+
<xs:element name="thead">
|
| 1968 |
+
<xs:complexType>
|
| 1969 |
+
<xs:sequence>
|
| 1970 |
+
<xs:element ref="tr" maxOccurs="unbounded"/>
|
| 1971 |
+
</xs:sequence>
|
| 1972 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1973 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 1974 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 1975 |
+
</xs:complexType>
|
| 1976 |
+
</xs:element>
|
| 1977 |
+
<xs:element name="tfoot">
|
| 1978 |
+
<xs:complexType>
|
| 1979 |
+
<xs:sequence>
|
| 1980 |
+
<xs:element ref="tr" maxOccurs="unbounded"/>
|
| 1981 |
+
</xs:sequence>
|
| 1982 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1983 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 1984 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 1985 |
+
</xs:complexType>
|
| 1986 |
+
</xs:element>
|
| 1987 |
+
<xs:element name="tbody">
|
| 1988 |
+
<xs:complexType>
|
| 1989 |
+
<xs:sequence>
|
| 1990 |
+
<xs:element ref="tr" maxOccurs="unbounded"/>
|
| 1991 |
+
</xs:sequence>
|
| 1992 |
+
<xs:attributeGroup ref="attrs"/>
|
| 1993 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 1994 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 1995 |
+
</xs:complexType>
|
| 1996 |
+
</xs:element>
|
| 1997 |
+
<xs:element name="colgroup">
|
| 1998 |
+
<xs:annotation>
|
| 1999 |
+
<xs:documentation>
|
| 2000 |
+
colgroup groups a set of col elements. It allows you to group
|
| 2001 |
+
several semantically related columns together.
|
| 2002 |
+
</xs:documentation>
|
| 2003 |
+
</xs:annotation>
|
| 2004 |
+
<xs:complexType>
|
| 2005 |
+
<xs:sequence>
|
| 2006 |
+
<xs:element ref="col" minOccurs="0" maxOccurs="unbounded"/>
|
| 2007 |
+
</xs:sequence>
|
| 2008 |
+
<xs:attributeGroup ref="attrs"/>
|
| 2009 |
+
<xs:attribute name="span" type="Number" default="1"/>
|
| 2010 |
+
<xs:attribute name="width" type="MultiLength"/>
|
| 2011 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 2012 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 2013 |
+
</xs:complexType>
|
| 2014 |
+
</xs:element>
|
| 2015 |
+
<xs:element name="col">
|
| 2016 |
+
<xs:annotation>
|
| 2017 |
+
<xs:documentation>
|
| 2018 |
+
col elements define the alignment properties for cells in
|
| 2019 |
+
one or more columns.
|
| 2020 |
+
|
| 2021 |
+
The width attribute specifies the width of the columns, e.g.
|
| 2022 |
+
|
| 2023 |
+
width=64 width in screen pixels
|
| 2024 |
+
width=0.5* relative width of 0.5
|
| 2025 |
+
|
| 2026 |
+
The span attribute causes the attributes of one
|
| 2027 |
+
col element to apply to more than one column.
|
| 2028 |
+
</xs:documentation>
|
| 2029 |
+
</xs:annotation>
|
| 2030 |
+
<xs:complexType>
|
| 2031 |
+
<xs:attributeGroup ref="attrs"/>
|
| 2032 |
+
<xs:attribute name="span" type="Number" default="1"/>
|
| 2033 |
+
<xs:attribute name="width" type="MultiLength"/>
|
| 2034 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 2035 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 2036 |
+
</xs:complexType>
|
| 2037 |
+
</xs:element>
|
| 2038 |
+
<xs:element name="tr">
|
| 2039 |
+
<xs:complexType>
|
| 2040 |
+
<xs:choice maxOccurs="unbounded">
|
| 2041 |
+
<xs:element ref="th"/>
|
| 2042 |
+
<xs:element ref="td"/>
|
| 2043 |
+
</xs:choice>
|
| 2044 |
+
<xs:attributeGroup ref="attrs"/>
|
| 2045 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 2046 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 2047 |
+
</xs:complexType>
|
| 2048 |
+
</xs:element>
|
| 2049 |
+
<xs:simpleType name="Scope">
|
| 2050 |
+
<xs:annotation>
|
| 2051 |
+
<xs:documentation>
|
| 2052 |
+
Scope is simpler than headers attribute for common tables
|
| 2053 |
+
</xs:documentation>
|
| 2054 |
+
</xs:annotation>
|
| 2055 |
+
<xs:restriction base="xs:token">
|
| 2056 |
+
<xs:enumeration value="row"/>
|
| 2057 |
+
<xs:enumeration value="col"/>
|
| 2058 |
+
<xs:enumeration value="rowgroup"/>
|
| 2059 |
+
<xs:enumeration value="colgroup"/>
|
| 2060 |
+
</xs:restriction>
|
| 2061 |
+
</xs:simpleType>
|
| 2062 |
+
<xs:annotation>
|
| 2063 |
+
<xs:documentation>
|
| 2064 |
+
th is for headers, td for data and for cells acting as both
|
| 2065 |
+
</xs:documentation>
|
| 2066 |
+
</xs:annotation>
|
| 2067 |
+
<xs:element name="th">
|
| 2068 |
+
<xs:complexType mixed="true">
|
| 2069 |
+
<xs:complexContent>
|
| 2070 |
+
<xs:extension base="Flow">
|
| 2071 |
+
<xs:attributeGroup ref="attrs"/>
|
| 2072 |
+
<xs:attribute name="abbr" type="Text"/>
|
| 2073 |
+
<xs:attribute name="axis"/>
|
| 2074 |
+
<xs:attribute name="headers" type="xs:IDREFS"/>
|
| 2075 |
+
<xs:attribute name="scope" type="Scope"/>
|
| 2076 |
+
<xs:attribute name="rowspan" type="Number" default="1"/>
|
| 2077 |
+
<xs:attribute name="colspan" type="Number" default="1"/>
|
| 2078 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 2079 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 2080 |
+
</xs:extension>
|
| 2081 |
+
</xs:complexContent>
|
| 2082 |
+
</xs:complexType>
|
| 2083 |
+
</xs:element>
|
| 2084 |
+
<xs:element name="td">
|
| 2085 |
+
<xs:complexType mixed="true">
|
| 2086 |
+
<xs:complexContent>
|
| 2087 |
+
<xs:extension base="Flow">
|
| 2088 |
+
<xs:attributeGroup ref="attrs"/>
|
| 2089 |
+
<xs:attribute name="abbr" type="Text"/>
|
| 2090 |
+
<xs:attribute name="axis"/>
|
| 2091 |
+
<xs:attribute name="headers" type="xs:IDREFS"/>
|
| 2092 |
+
<xs:attribute name="scope" type="Scope"/>
|
| 2093 |
+
<xs:attribute name="rowspan" type="Number" default="1"/>
|
| 2094 |
+
<xs:attribute name="colspan" type="Number" default="1"/>
|
| 2095 |
+
<xs:attributeGroup ref="cellhalign"/>
|
| 2096 |
+
<xs:attributeGroup ref="cellvalign"/>
|
| 2097 |
+
</xs:extension>
|
| 2098 |
+
</xs:complexContent>
|
| 2099 |
+
</xs:complexType>
|
| 2100 |
+
</xs:element>
|
| 2101 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/flag.sch
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Flag
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Flag</sch:title>
|
| 21 |
+
<sch:rule context="//f:Flag">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Flag/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Flag/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Flag/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Flag/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Flag/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Flag/f:period">
|
| 44 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Flag/f:subject">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Flag/f:subject/f:identifier/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Flag/f:subject/f:identifier/f:assigner">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Flag/f:encounter">
|
| 56 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Flag/f:encounter/f:identifier/f:period">
|
| 59 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Flag/f:encounter/f:identifier/f:assigner">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Flag/f:author">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Flag/f:author/f:identifier/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Flag/f:author/f:identifier/f:assigner">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
</sch:pattern>
|
| 74 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/flag.xsd
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Flag" type="Flag">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Prospective warnings of potential issues when providing care to the patient.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Flag">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Prospective warnings of potential issues when providing care to the patient.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Identifier assigned to the flag for external use (outside the FHIR environment).</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="category" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Allows an flag to be divided into different categories like clinical, administrative etc. Intended to be used as a means of filtering which flags are displayed to particular user or in a given context.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="FlagStatus">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Supports basic workflow.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="period" minOccurs="0" maxOccurs="1" type="Period">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="subject" minOccurs="1" maxOccurs="1" type="Reference">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="encounter" minOccurs="0" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">This alert is only relevant during the encounter.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="author" minOccurs="0" maxOccurs="1" type="Reference">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The person, organization or device that created the flag.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="code" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The coded value or textual component of the flag to display to the user.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
</xs:sequence>
|
| 93 |
+
</xs:extension>
|
| 94 |
+
</xs:complexContent>
|
| 95 |
+
</xs:complexType>
|
| 96 |
+
<xs:simpleType name="FlagStatus-list">
|
| 97 |
+
<xs:restriction base="code-primitive">
|
| 98 |
+
<xs:enumeration value="active">
|
| 99 |
+
<xs:annotation>
|
| 100 |
+
<xs:documentation xml:lang="en">Active</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
</xs:enumeration>
|
| 103 |
+
<xs:enumeration value="inactive">
|
| 104 |
+
<xs:annotation>
|
| 105 |
+
<xs:documentation xml:lang="en">Inactive</xs:documentation>
|
| 106 |
+
</xs:annotation>
|
| 107 |
+
</xs:enumeration>
|
| 108 |
+
<xs:enumeration value="entered-in-error">
|
| 109 |
+
<xs:annotation>
|
| 110 |
+
<xs:documentation xml:lang="en">Entered in Error</xs:documentation>
|
| 111 |
+
</xs:annotation>
|
| 112 |
+
</xs:enumeration>
|
| 113 |
+
</xs:restriction>
|
| 114 |
+
</xs:simpleType>
|
| 115 |
+
<xs:complexType name="FlagStatus">
|
| 116 |
+
<xs:annotation>
|
| 117 |
+
<xs:documentation xml:lang="en">Indicates whether this flag is active and needs to be displayed to a user, or whether it is no longer needed or entered in error.</xs:documentation>
|
| 118 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 119 |
+
</xs:annotation>
|
| 120 |
+
<xs:complexContent>
|
| 121 |
+
<xs:extension base="Element">
|
| 122 |
+
<xs:attribute name="value" type="FlagStatus-list" use="optional"/>
|
| 123 |
+
</xs:extension>
|
| 124 |
+
</xs:complexContent>
|
| 125 |
+
</xs:complexType>
|
| 126 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/goal.sch
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Goal
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Goal</sch:title>
|
| 21 |
+
<sch:rule context="//f:Goal">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Goal/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Goal/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Goal/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Goal/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Goal/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Goal/f:subject">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Goal/f:subject/f:identifier/f:period">
|
| 47 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Goal/f:subject/f:identifier/f:assigner">
|
| 50 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Goal/f:targetDuration">
|
| 53 |
+
<sch:assert test="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')">drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Goal/f:expressedBy">
|
| 56 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Goal/f:expressedBy/f:identifier/f:period">
|
| 59 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Goal/f:expressedBy/f:identifier/f:assigner">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Goal/f:addresses">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Goal/f:addresses/f:identifier/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Goal/f:addresses/f:identifier/f:assigner">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:Goal/f:note/f:authorReference">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:Goal/f:note/f:authorReference/f:identifier/f:period">
|
| 77 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:Goal/f:note/f:authorReference/f:identifier/f:assigner">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:Goal/f:outcome/f:resultReference">
|
| 83 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:Goal/f:outcome/f:resultReference/f:identifier/f:period">
|
| 86 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:Goal/f:outcome/f:resultReference/f:identifier/f:assigner">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
</sch:pattern>
|
| 92 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/goal.xsd
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Goal" type="Goal">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Goal">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">This records identifiers associated with this care plan that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate (e.g. in CDA documents, or in written / printed documentation).</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="GoalStatus">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Indicates whether the goal has been reached and is still considered relevant.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="category" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Indicates a category the goal falls within.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="priority" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Identifies the mutually agreed level of importance associated with reaching/sustaining the goal.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="description" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">Code and/or human-readable description of a specific desired objective of care.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="subject" minOccurs="0" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Identifies the patient, group or organization for whom the goal is being established.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:choice minOccurs="0" maxOccurs="1" >
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The date or event after which the goal should begin being pursued.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
<xs:element name="startDate" type="date"/>
|
| 87 |
+
<xs:element name="startCodeableConcept" type="CodeableConcept"/>
|
| 88 |
+
</xs:choice>
|
| 89 |
+
<xs:choice minOccurs="0" maxOccurs="1" >
|
| 90 |
+
<xs:annotation>
|
| 91 |
+
<xs:documentation xml:lang="en">Indicates either the date or the duration after start by which the goal should be met.</xs:documentation>
|
| 92 |
+
</xs:annotation>
|
| 93 |
+
<xs:element name="targetDate" type="date"/>
|
| 94 |
+
<xs:element name="targetDuration" type="Duration"/>
|
| 95 |
+
</xs:choice>
|
| 96 |
+
<xs:element name="statusDate" minOccurs="0" maxOccurs="1" type="date">
|
| 97 |
+
<xs:annotation>
|
| 98 |
+
<xs:documentation xml:lang="en">Identifies when the current status. I.e. When initially created, when achieved, when cancelled, etc.</xs:documentation>
|
| 99 |
+
</xs:annotation>
|
| 100 |
+
</xs:element>
|
| 101 |
+
<xs:element name="statusReason" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 102 |
+
<xs:annotation>
|
| 103 |
+
<xs:documentation xml:lang="en">Captures the reason for the current status.</xs:documentation>
|
| 104 |
+
</xs:annotation>
|
| 105 |
+
</xs:element>
|
| 106 |
+
<xs:element name="expressedBy" minOccurs="0" maxOccurs="1" type="Reference">
|
| 107 |
+
<xs:annotation>
|
| 108 |
+
<xs:documentation xml:lang="en">Indicates whose goal this is - patient goal, practitioner goal, etc.</xs:documentation>
|
| 109 |
+
</xs:annotation>
|
| 110 |
+
</xs:element>
|
| 111 |
+
<xs:element name="addresses" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 112 |
+
<xs:annotation>
|
| 113 |
+
<xs:documentation xml:lang="en">The identified conditions and other health record elements that are intended to be addressed by the goal.</xs:documentation>
|
| 114 |
+
</xs:annotation>
|
| 115 |
+
</xs:element>
|
| 116 |
+
<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation">
|
| 117 |
+
<xs:annotation>
|
| 118 |
+
<xs:documentation xml:lang="en">Any comments related to the goal.</xs:documentation>
|
| 119 |
+
</xs:annotation>
|
| 120 |
+
</xs:element>
|
| 121 |
+
<xs:element name="outcome" type="Goal.Outcome" minOccurs="0" maxOccurs="unbounded">
|
| 122 |
+
<xs:annotation>
|
| 123 |
+
<xs:documentation xml:lang="en">Identifies the change (or lack of change) at the point where the goal was deemed to be cancelled or achieved.</xs:documentation>
|
| 124 |
+
</xs:annotation>
|
| 125 |
+
</xs:element>
|
| 126 |
+
</xs:sequence>
|
| 127 |
+
</xs:extension>
|
| 128 |
+
</xs:complexContent>
|
| 129 |
+
</xs:complexType>
|
| 130 |
+
<xs:complexType name="Goal.Outcome">
|
| 131 |
+
<xs:annotation>
|
| 132 |
+
<xs:documentation xml:lang="en">Describes the intended objective(s) for a patient, group or organization care, for example, weight loss, restoring an activity of daily living, obtaining herd immunity via immunization, meeting a process improvement objective, etc.</xs:documentation>
|
| 133 |
+
</xs:annotation>
|
| 134 |
+
<xs:complexContent>
|
| 135 |
+
<xs:extension base="BackboneElement">
|
| 136 |
+
<xs:sequence>
|
| 137 |
+
<xs:choice minOccurs="0" maxOccurs="1" >
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">Details of what's changed (or not changed).</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
<xs:element name="resultCodeableConcept" type="CodeableConcept"/>
|
| 142 |
+
<xs:element name="resultReference" type="Reference"/>
|
| 143 |
+
</xs:choice>
|
| 144 |
+
</xs:sequence>
|
| 145 |
+
</xs:extension>
|
| 146 |
+
</xs:complexContent>
|
| 147 |
+
</xs:complexType>
|
| 148 |
+
<xs:simpleType name="GoalStatus-list">
|
| 149 |
+
<xs:restriction base="code-primitive">
|
| 150 |
+
<xs:enumeration value="proposed">
|
| 151 |
+
<xs:annotation>
|
| 152 |
+
<xs:documentation xml:lang="en">Proposed</xs:documentation>
|
| 153 |
+
</xs:annotation>
|
| 154 |
+
</xs:enumeration>
|
| 155 |
+
<xs:enumeration value="planned">
|
| 156 |
+
<xs:annotation>
|
| 157 |
+
<xs:documentation xml:lang="en">Planned</xs:documentation>
|
| 158 |
+
</xs:annotation>
|
| 159 |
+
</xs:enumeration>
|
| 160 |
+
<xs:enumeration value="accepted">
|
| 161 |
+
<xs:annotation>
|
| 162 |
+
<xs:documentation xml:lang="en">Accepted</xs:documentation>
|
| 163 |
+
</xs:annotation>
|
| 164 |
+
</xs:enumeration>
|
| 165 |
+
<xs:enumeration value="rejected">
|
| 166 |
+
<xs:annotation>
|
| 167 |
+
<xs:documentation xml:lang="en">Rejected</xs:documentation>
|
| 168 |
+
</xs:annotation>
|
| 169 |
+
</xs:enumeration>
|
| 170 |
+
<xs:enumeration value="in-progress">
|
| 171 |
+
<xs:annotation>
|
| 172 |
+
<xs:documentation xml:lang="en">In Progress</xs:documentation>
|
| 173 |
+
</xs:annotation>
|
| 174 |
+
</xs:enumeration>
|
| 175 |
+
<xs:enumeration value="achieved">
|
| 176 |
+
<xs:annotation>
|
| 177 |
+
<xs:documentation xml:lang="en">Achieved</xs:documentation>
|
| 178 |
+
</xs:annotation>
|
| 179 |
+
</xs:enumeration>
|
| 180 |
+
<xs:enumeration value="sustaining">
|
| 181 |
+
<xs:annotation>
|
| 182 |
+
<xs:documentation xml:lang="en">Sustaining</xs:documentation>
|
| 183 |
+
</xs:annotation>
|
| 184 |
+
</xs:enumeration>
|
| 185 |
+
<xs:enumeration value="on-hold">
|
| 186 |
+
<xs:annotation>
|
| 187 |
+
<xs:documentation xml:lang="en">On Hold</xs:documentation>
|
| 188 |
+
</xs:annotation>
|
| 189 |
+
</xs:enumeration>
|
| 190 |
+
<xs:enumeration value="cancelled">
|
| 191 |
+
<xs:annotation>
|
| 192 |
+
<xs:documentation xml:lang="en">Cancelled</xs:documentation>
|
| 193 |
+
</xs:annotation>
|
| 194 |
+
</xs:enumeration>
|
| 195 |
+
<xs:enumeration value="on-target">
|
| 196 |
+
<xs:annotation>
|
| 197 |
+
<xs:documentation xml:lang="en">On Target</xs:documentation>
|
| 198 |
+
</xs:annotation>
|
| 199 |
+
</xs:enumeration>
|
| 200 |
+
<xs:enumeration value="ahead-of-target">
|
| 201 |
+
<xs:annotation>
|
| 202 |
+
<xs:documentation xml:lang="en">Ahead of Target</xs:documentation>
|
| 203 |
+
</xs:annotation>
|
| 204 |
+
</xs:enumeration>
|
| 205 |
+
<xs:enumeration value="behind-target">
|
| 206 |
+
<xs:annotation>
|
| 207 |
+
<xs:documentation xml:lang="en">Behind Target</xs:documentation>
|
| 208 |
+
</xs:annotation>
|
| 209 |
+
</xs:enumeration>
|
| 210 |
+
<xs:enumeration value="entered-in-error">
|
| 211 |
+
<xs:annotation>
|
| 212 |
+
<xs:documentation xml:lang="en">Entered In Error</xs:documentation>
|
| 213 |
+
</xs:annotation>
|
| 214 |
+
</xs:enumeration>
|
| 215 |
+
</xs:restriction>
|
| 216 |
+
</xs:simpleType>
|
| 217 |
+
<xs:complexType name="GoalStatus">
|
| 218 |
+
<xs:annotation>
|
| 219 |
+
<xs:documentation xml:lang="en">Indicates whether the goal has been met and is still being targeted</xs:documentation>
|
| 220 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 221 |
+
</xs:annotation>
|
| 222 |
+
<xs:complexContent>
|
| 223 |
+
<xs:extension base="Element">
|
| 224 |
+
<xs:attribute name="value" type="GoalStatus-list" use="optional"/>
|
| 225 |
+
</xs:extension>
|
| 226 |
+
</xs:complexContent>
|
| 227 |
+
</xs:complexType>
|
| 228 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/group.sch
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Group
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Group</sch:title>
|
| 21 |
+
<sch:rule context="//f:Group">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="f:actual/@value=true() or not(exists(f:member))">grp-1: Can only have members if group is "actual"</sch:assert>
|
| 27 |
+
</sch:rule>
|
| 28 |
+
<sch:rule context="//f:Group/f:text/h:div">
|
| 29 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 30 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 31 |
+
</sch:rule>
|
| 32 |
+
<sch:rule context="//f:Group/f:extension">
|
| 33 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 34 |
+
</sch:rule>
|
| 35 |
+
<sch:rule context="//f:Group/f:modifierExtension">
|
| 36 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 37 |
+
</sch:rule>
|
| 38 |
+
<sch:rule context="//f:Group/f:identifier/f:period">
|
| 39 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 40 |
+
</sch:rule>
|
| 41 |
+
<sch:rule context="//f:Group/f:identifier/f:assigner">
|
| 42 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 43 |
+
</sch:rule>
|
| 44 |
+
<sch:rule context="//f:Group/f:characteristic/f:valueQuantity">
|
| 45 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
<sch:rule context="//f:Group/f:characteristic/f:valueRange">
|
| 48 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 49 |
+
</sch:rule>
|
| 50 |
+
<sch:rule context="//f:Group/f:characteristic/f:valueRange/f:low">
|
| 51 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
<sch:rule context="//f:Group/f:characteristic/f:valueRange/f:high">
|
| 54 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 55 |
+
</sch:rule>
|
| 56 |
+
<sch:rule context="//f:Group/f:characteristic/f:period">
|
| 57 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 58 |
+
</sch:rule>
|
| 59 |
+
<sch:rule context="//f:Group/f:member/f:entity">
|
| 60 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 61 |
+
</sch:rule>
|
| 62 |
+
<sch:rule context="//f:Group/f:member/f:entity/f:identifier/f:period">
|
| 63 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 64 |
+
</sch:rule>
|
| 65 |
+
<sch:rule context="//f:Group/f:member/f:entity/f:identifier/f:assigner">
|
| 66 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 67 |
+
</sch:rule>
|
| 68 |
+
<sch:rule context="//f:Group/f:member/f:period">
|
| 69 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 70 |
+
</sch:rule>
|
| 71 |
+
</sch:pattern>
|
| 72 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/group.xsd
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Group" type="Group">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Group">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">A unique business identifier for this group.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="GroupType">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Identifies the broad classification of the kind of resources the group includes.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="actual" minOccurs="1" maxOccurs="1" type="boolean">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">If true, indicates that the resource refers to a specific group of real individuals. If false, the group defines a set of intended individuals.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="active" minOccurs="0" maxOccurs="1" type="boolean">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Indicates whether the record for the group is available for use or is merely being retained for historical purposes.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="code" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">Provides a specific type of resource the group includes; e.g. "cow", "syringe", etc.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">A label assigned to the group for human identification and communication.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="quantity" minOccurs="0" maxOccurs="1" type="unsignedInt">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">A count of the number of resource instances that are part of the group.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="characteristic" type="Group.Characteristic" minOccurs="0" maxOccurs="unbounded">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">Identifies the traits shared by members of the group.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="member" type="Group.Member" minOccurs="0" maxOccurs="unbounded">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Identifies the resource instances that are members of the group.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
</xs:sequence>
|
| 98 |
+
</xs:extension>
|
| 99 |
+
</xs:complexContent>
|
| 100 |
+
</xs:complexType>
|
| 101 |
+
<xs:complexType name="Group.Characteristic">
|
| 102 |
+
<xs:annotation>
|
| 103 |
+
<xs:documentation xml:lang="en">Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.</xs:documentation>
|
| 104 |
+
</xs:annotation>
|
| 105 |
+
<xs:complexContent>
|
| 106 |
+
<xs:extension base="BackboneElement">
|
| 107 |
+
<xs:sequence>
|
| 108 |
+
<xs:element name="code" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 109 |
+
<xs:annotation>
|
| 110 |
+
<xs:documentation xml:lang="en">A code that identifies the kind of trait being asserted.</xs:documentation>
|
| 111 |
+
</xs:annotation>
|
| 112 |
+
</xs:element>
|
| 113 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 114 |
+
<xs:annotation>
|
| 115 |
+
<xs:documentation xml:lang="en">The value of the trait that holds (or does not hold - see 'exclude') for members of the group.</xs:documentation>
|
| 116 |
+
</xs:annotation>
|
| 117 |
+
<xs:element name="valueCodeableConcept" type="CodeableConcept"/>
|
| 118 |
+
<xs:element name="valueBoolean" type="boolean"/>
|
| 119 |
+
<xs:element name="valueQuantity" type="Quantity"/>
|
| 120 |
+
<xs:element name="valueRange" type="Range"/>
|
| 121 |
+
</xs:choice>
|
| 122 |
+
<xs:element name="exclude" minOccurs="1" maxOccurs="1" type="boolean">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">If true, indicates the characteristic is one that is NOT held by members of the group.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="period" minOccurs="0" maxOccurs="1" type="Period">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">The period over which the characteristic is tested; e.g. the patient had an operation during the month of June.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
</xs:sequence>
|
| 133 |
+
</xs:extension>
|
| 134 |
+
</xs:complexContent>
|
| 135 |
+
</xs:complexType>
|
| 136 |
+
<xs:complexType name="Group.Member">
|
| 137 |
+
<xs:annotation>
|
| 138 |
+
<xs:documentation xml:lang="en">Represents a defined collection of entities that may be discussed or acted upon collectively but which are not expected to act collectively and are not formally or legally recognized; i.e. a collection of entities that isn't an Organization.</xs:documentation>
|
| 139 |
+
</xs:annotation>
|
| 140 |
+
<xs:complexContent>
|
| 141 |
+
<xs:extension base="BackboneElement">
|
| 142 |
+
<xs:sequence>
|
| 143 |
+
<xs:element name="entity" minOccurs="1" maxOccurs="1" type="Reference">
|
| 144 |
+
<xs:annotation>
|
| 145 |
+
<xs:documentation xml:lang="en">A reference to the entity that is a member of the group. Must be consistent with Group.type.</xs:documentation>
|
| 146 |
+
</xs:annotation>
|
| 147 |
+
</xs:element>
|
| 148 |
+
<xs:element name="period" minOccurs="0" maxOccurs="1" type="Period">
|
| 149 |
+
<xs:annotation>
|
| 150 |
+
<xs:documentation xml:lang="en">The period that the member was in the group, if known.</xs:documentation>
|
| 151 |
+
</xs:annotation>
|
| 152 |
+
</xs:element>
|
| 153 |
+
<xs:element name="inactive" minOccurs="0" maxOccurs="1" type="boolean">
|
| 154 |
+
<xs:annotation>
|
| 155 |
+
<xs:documentation xml:lang="en">A flag to indicate that the member is no longer in the group, but previously may have been a member.</xs:documentation>
|
| 156 |
+
</xs:annotation>
|
| 157 |
+
</xs:element>
|
| 158 |
+
</xs:sequence>
|
| 159 |
+
</xs:extension>
|
| 160 |
+
</xs:complexContent>
|
| 161 |
+
</xs:complexType>
|
| 162 |
+
<xs:simpleType name="GroupType-list">
|
| 163 |
+
<xs:restriction base="code-primitive">
|
| 164 |
+
<xs:enumeration value="person">
|
| 165 |
+
<xs:annotation>
|
| 166 |
+
<xs:documentation xml:lang="en">Person</xs:documentation>
|
| 167 |
+
</xs:annotation>
|
| 168 |
+
</xs:enumeration>
|
| 169 |
+
<xs:enumeration value="animal">
|
| 170 |
+
<xs:annotation>
|
| 171 |
+
<xs:documentation xml:lang="en">Animal</xs:documentation>
|
| 172 |
+
</xs:annotation>
|
| 173 |
+
</xs:enumeration>
|
| 174 |
+
<xs:enumeration value="practitioner">
|
| 175 |
+
<xs:annotation>
|
| 176 |
+
<xs:documentation xml:lang="en">Practitioner</xs:documentation>
|
| 177 |
+
</xs:annotation>
|
| 178 |
+
</xs:enumeration>
|
| 179 |
+
<xs:enumeration value="device">
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation xml:lang="en">Device</xs:documentation>
|
| 182 |
+
</xs:annotation>
|
| 183 |
+
</xs:enumeration>
|
| 184 |
+
<xs:enumeration value="medication">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">Medication</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
</xs:enumeration>
|
| 189 |
+
<xs:enumeration value="substance">
|
| 190 |
+
<xs:annotation>
|
| 191 |
+
<xs:documentation xml:lang="en">Substance</xs:documentation>
|
| 192 |
+
</xs:annotation>
|
| 193 |
+
</xs:enumeration>
|
| 194 |
+
</xs:restriction>
|
| 195 |
+
</xs:simpleType>
|
| 196 |
+
<xs:complexType name="GroupType">
|
| 197 |
+
<xs:annotation>
|
| 198 |
+
<xs:documentation xml:lang="en">Types of resources that are part of group</xs:documentation>
|
| 199 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 200 |
+
</xs:annotation>
|
| 201 |
+
<xs:complexContent>
|
| 202 |
+
<xs:extension base="Element">
|
| 203 |
+
<xs:attribute name="value" type="GroupType-list" use="optional"/>
|
| 204 |
+
</xs:extension>
|
| 205 |
+
</xs:complexContent>
|
| 206 |
+
</xs:complexType>
|
| 207 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/guidanceresponse.sch
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource GuidanceResponse
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>GuidanceResponse</sch:title>
|
| 21 |
+
<sch:rule context="//f:GuidanceResponse">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:GuidanceResponse/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:GuidanceResponse/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:GuidanceResponse/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:GuidanceResponse/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:GuidanceResponse/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:GuidanceResponse/f:module">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:GuidanceResponse/f:module/f:identifier/f:period">
|
| 47 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:GuidanceResponse/f:module/f:identifier/f:assigner">
|
| 50 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:GuidanceResponse/f:subject">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:GuidanceResponse/f:subject/f:identifier/f:period">
|
| 56 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:GuidanceResponse/f:subject/f:identifier/f:assigner">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:GuidanceResponse/f:context">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:GuidanceResponse/f:context/f:identifier/f:period">
|
| 65 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:GuidanceResponse/f:context/f:identifier/f:assigner">
|
| 68 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:GuidanceResponse/f:performer">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:GuidanceResponse/f:performer/f:identifier/f:period">
|
| 74 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:GuidanceResponse/f:performer/f:identifier/f:assigner">
|
| 77 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:GuidanceResponse/f:reasonReference">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:GuidanceResponse/f:reasonReference/f:identifier/f:period">
|
| 83 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:GuidanceResponse/f:reasonReference/f:identifier/f:assigner">
|
| 86 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:GuidanceResponse/f:note/f:authorReference">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
<sch:rule context="//f:GuidanceResponse/f:note/f:authorReference/f:identifier/f:period">
|
| 92 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 93 |
+
</sch:rule>
|
| 94 |
+
<sch:rule context="//f:GuidanceResponse/f:note/f:authorReference/f:identifier/f:assigner">
|
| 95 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 96 |
+
</sch:rule>
|
| 97 |
+
<sch:rule context="//f:GuidanceResponse/f:evaluationMessage">
|
| 98 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 99 |
+
</sch:rule>
|
| 100 |
+
<sch:rule context="//f:GuidanceResponse/f:evaluationMessage/f:identifier/f:period">
|
| 101 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 102 |
+
</sch:rule>
|
| 103 |
+
<sch:rule context="//f:GuidanceResponse/f:evaluationMessage/f:identifier/f:assigner">
|
| 104 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 105 |
+
</sch:rule>
|
| 106 |
+
<sch:rule context="//f:GuidanceResponse/f:outputParameters">
|
| 107 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 108 |
+
</sch:rule>
|
| 109 |
+
<sch:rule context="//f:GuidanceResponse/f:outputParameters/f:identifier/f:period">
|
| 110 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 111 |
+
</sch:rule>
|
| 112 |
+
<sch:rule context="//f:GuidanceResponse/f:outputParameters/f:identifier/f:assigner">
|
| 113 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 114 |
+
</sch:rule>
|
| 115 |
+
<sch:rule context="//f:GuidanceResponse/f:result">
|
| 116 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 117 |
+
</sch:rule>
|
| 118 |
+
<sch:rule context="//f:GuidanceResponse/f:result/f:identifier/f:period">
|
| 119 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 120 |
+
</sch:rule>
|
| 121 |
+
<sch:rule context="//f:GuidanceResponse/f:result/f:identifier/f:assigner">
|
| 122 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 123 |
+
</sch:rule>
|
| 124 |
+
<sch:rule context="//f:GuidanceResponse/f:dataRequirement/f:codeFilter/f:valueSetReference">
|
| 125 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 126 |
+
</sch:rule>
|
| 127 |
+
<sch:rule context="//f:GuidanceResponse/f:dataRequirement/f:codeFilter/f:valueSetReference/f:identifier/f:period">
|
| 128 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 129 |
+
</sch:rule>
|
| 130 |
+
<sch:rule context="//f:GuidanceResponse/f:dataRequirement/f:codeFilter/f:valueSetReference/f:identifier/f:assigner">
|
| 131 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 132 |
+
</sch:rule>
|
| 133 |
+
<sch:rule context="//f:GuidanceResponse/f:dataRequirement/f:dateFilter/f:valuePeriod">
|
| 134 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 135 |
+
</sch:rule>
|
| 136 |
+
<sch:rule context="//f:GuidanceResponse/f:dataRequirement/f:dateFilter/f:valueDuration">
|
| 137 |
+
<sch:assert test="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')">drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.</sch:assert>
|
| 138 |
+
</sch:rule>
|
| 139 |
+
</sch:pattern>
|
| 140 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/guidanceresponse.xsd
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="GuidanceResponse" type="GuidanceResponse">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="GuidanceResponse">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A guidance response is the formal response to a guidance request, including any output parameters returned by the evaluation, as well as the description of any proposed actions to be taken.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="requestId" minOccurs="0" maxOccurs="1" type="id">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">The id of the request associated with this response. If an id was given as part of the request, it will be reproduced here to enable the requester to more easily identify the response in a multi-request scenario.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="1" type="Identifier">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Allows a service to provide a unique, business identifier for the response.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="module" minOccurs="1" maxOccurs="1" type="Reference">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">A reference to the knowledge module that was invoked.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="GuidanceResponseStatus">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">The status of the response. If the evaluation is completed successfully, the status will indicate success. However, in order to complete the evaluation, the engine may require more information. In this case, the status will be data-required, and the response will contain a description of the additional required information. If the evaluation completed successfully, but the engine determines that a potentially more accurate response could be provided if more data was available, the status will be data-requested, and the response will contain a description of the additional requested information.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="subject" minOccurs="0" maxOccurs="1" type="Reference">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The patient for which the request was processed.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="context" minOccurs="0" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Allows the context of the guidance response to be provided if available. In a service context, this would likely be unavailable.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="occurrenceDateTime" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">Indicates when the guidance response was processed.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="performer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">Provides a reference to the device that performed the guidance.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:choice minOccurs="0" maxOccurs="1" >
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Indicates the reason the request was initiated. This is typically provided as a parameter to the evaluation and echoed by the service, although for some use cases, such as subscription- or event-based scenarios, it may provide an indication of the cause for the response.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
<xs:element name="reasonCodeableConcept" type="CodeableConcept"/>
|
| 97 |
+
<xs:element name="reasonReference" type="Reference"/>
|
| 98 |
+
</xs:choice>
|
| 99 |
+
<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation">
|
| 100 |
+
<xs:annotation>
|
| 101 |
+
<xs:documentation xml:lang="en">Provides a mechanism to communicate additional information about the response.</xs:documentation>
|
| 102 |
+
</xs:annotation>
|
| 103 |
+
</xs:element>
|
| 104 |
+
<xs:element name="evaluationMessage" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 105 |
+
<xs:annotation>
|
| 106 |
+
<xs:documentation xml:lang="en">Messages resulting from the evaluation of the artifact or artifacts. As part of evaluating the request, the engine may produce informational or warning messages. These messages will be provided by this element.</xs:documentation>
|
| 107 |
+
</xs:annotation>
|
| 108 |
+
</xs:element>
|
| 109 |
+
<xs:element name="outputParameters" minOccurs="0" maxOccurs="1" type="Reference">
|
| 110 |
+
<xs:annotation>
|
| 111 |
+
<xs:documentation xml:lang="en">The output parameters of the evaluation, if any. Many modules will result in the return of specific resources such as procedure or communication requests that are returned as part of the operation result. However, modules may define specific outputs that would be returned as the result of the evaluation, and these would be returned in this element.</xs:documentation>
|
| 112 |
+
</xs:annotation>
|
| 113 |
+
</xs:element>
|
| 114 |
+
<xs:element name="result" minOccurs="0" maxOccurs="1" type="Reference">
|
| 115 |
+
<xs:annotation>
|
| 116 |
+
<xs:documentation xml:lang="en">The actions, if any, produced by the evaluation of the artifact.</xs:documentation>
|
| 117 |
+
</xs:annotation>
|
| 118 |
+
</xs:element>
|
| 119 |
+
<xs:element name="dataRequirement" minOccurs="0" maxOccurs="unbounded" type="DataRequirement">
|
| 120 |
+
<xs:annotation>
|
| 121 |
+
<xs:documentation xml:lang="en">If the evaluation could not be completed due to lack of information, or additional information would potentially result in a more accurate response, this element will a description of the data required in order to proceed with the evaluation. A subsequent request to the service should include this data.</xs:documentation>
|
| 122 |
+
</xs:annotation>
|
| 123 |
+
</xs:element>
|
| 124 |
+
</xs:sequence>
|
| 125 |
+
</xs:extension>
|
| 126 |
+
</xs:complexContent>
|
| 127 |
+
</xs:complexType>
|
| 128 |
+
<xs:simpleType name="GuidanceResponseStatus-list">
|
| 129 |
+
<xs:restriction base="code-primitive">
|
| 130 |
+
<xs:enumeration value="success">
|
| 131 |
+
<xs:annotation>
|
| 132 |
+
<xs:documentation xml:lang="en">Success</xs:documentation>
|
| 133 |
+
</xs:annotation>
|
| 134 |
+
</xs:enumeration>
|
| 135 |
+
<xs:enumeration value="data-requested">
|
| 136 |
+
<xs:annotation>
|
| 137 |
+
<xs:documentation xml:lang="en">Data Requested</xs:documentation>
|
| 138 |
+
</xs:annotation>
|
| 139 |
+
</xs:enumeration>
|
| 140 |
+
<xs:enumeration value="data-required">
|
| 141 |
+
<xs:annotation>
|
| 142 |
+
<xs:documentation xml:lang="en">Data Required</xs:documentation>
|
| 143 |
+
</xs:annotation>
|
| 144 |
+
</xs:enumeration>
|
| 145 |
+
<xs:enumeration value="in-progress">
|
| 146 |
+
<xs:annotation>
|
| 147 |
+
<xs:documentation xml:lang="en">In Progress</xs:documentation>
|
| 148 |
+
</xs:annotation>
|
| 149 |
+
</xs:enumeration>
|
| 150 |
+
<xs:enumeration value="failure">
|
| 151 |
+
<xs:annotation>
|
| 152 |
+
<xs:documentation xml:lang="en">Failure</xs:documentation>
|
| 153 |
+
</xs:annotation>
|
| 154 |
+
</xs:enumeration>
|
| 155 |
+
</xs:restriction>
|
| 156 |
+
</xs:simpleType>
|
| 157 |
+
<xs:complexType name="GuidanceResponseStatus">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">The status of a guidance response</xs:documentation>
|
| 160 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 161 |
+
</xs:annotation>
|
| 162 |
+
<xs:complexContent>
|
| 163 |
+
<xs:extension base="Element">
|
| 164 |
+
<xs:attribute name="value" type="GuidanceResponseStatus-list" use="optional"/>
|
| 165 |
+
</xs:extension>
|
| 166 |
+
</xs:complexContent>
|
| 167 |
+
</xs:complexType>
|
| 168 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/hdlcholesterol.sch
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile Observation
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>f:Observation</sch:title>
|
| 14 |
+
<sch:rule context="f:Observation">
|
| 15 |
+
<sch:assert test="count(f:referenceRange) >= 1">referenceRange: minimum cardinality of 'referenceRange' is 1</sch:assert>
|
| 16 |
+
<sch:assert test="count(f:referenceRange) <= 1">referenceRange: maximum cardinality of 'referenceRange' is 1</sch:assert>
|
| 17 |
+
<sch:assert test="count(f:related) <= 0">related: maximum cardinality of 'related' is 0</sch:assert>
|
| 18 |
+
</sch:rule>
|
| 19 |
+
</sch:pattern>
|
| 20 |
+
<sch:pattern>
|
| 21 |
+
<sch:title>Observation</sch:title>
|
| 22 |
+
<sch:rule context="f:Observation">
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 24 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 26 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 27 |
+
<sch:assert test="not(exists(f: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)">If code is the same as a component code then the value element associated with the code SHALL NOT be present (inherited)</sch:assert>
|
| 28 |
+
<sch:assert test="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))">dataAbsentReason SHALL only be present if Observation.value[x] is not present (inherited)</sch:assert>
|
| 29 |
+
</sch:rule>
|
| 30 |
+
</sch:pattern>
|
| 31 |
+
<sch:pattern>
|
| 32 |
+
<sch:title>f:Observation/f:referenceRange</sch:title>
|
| 33 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 34 |
+
<sch:assert test="count(f:low) >= 1">low: minimum cardinality of 'low' is 1</sch:assert>
|
| 35 |
+
<sch:assert test="count(f:high) <= 0">high: maximum cardinality of 'high' is 0</sch:assert>
|
| 36 |
+
<sch:assert test="count(f:meaning) <= 0">meaning: maximum cardinality of 'meaning' is 0</sch:assert>
|
| 37 |
+
<sch:assert test="count(f:age) <= 0">age: maximum cardinality of 'age' is 0</sch:assert>
|
| 38 |
+
</sch:rule>
|
| 39 |
+
</sch:pattern>
|
| 40 |
+
<sch:pattern>
|
| 41 |
+
<sch:title>Observation.referenceRange</sch:title>
|
| 42 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 43 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 44 |
+
<sch:assert test="(exists(f:low) or exists(f:high)or exists(f:text))">Must have at least a low or a high or text (inherited)</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
</sch:pattern>
|
| 47 |
+
<sch:pattern>
|
| 48 |
+
<sch:title>Observation.referenceRange.low</sch:title>
|
| 49 |
+
<sch:rule context="f:Observation/f:referenceRange/f:low">
|
| 50 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 51 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">If a code for the unit is present, the system SHALL also be present (inherited)</sch:assert>
|
| 52 |
+
<sch:assert test="not(exists(f:comparator))">The comparator is not used on a SimpleQuantity (inherited)</sch:assert>
|
| 53 |
+
</sch:rule>
|
| 54 |
+
</sch:pattern>
|
| 55 |
+
<sch:pattern>
|
| 56 |
+
<sch:title>Observation.related</sch:title>
|
| 57 |
+
<sch:rule context="f:Observation/f:related">
|
| 58 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
</sch:pattern>
|
| 61 |
+
<sch:pattern>
|
| 62 |
+
<sch:title>Observation.component</sch:title>
|
| 63 |
+
<sch:rule context="f:Observation/f:component">
|
| 64 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
</sch:pattern>
|
| 67 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/headcircum.sch
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile Vital Signs Profile
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>Observation</sch:title>
|
| 14 |
+
<sch:rule context="f:Observation">
|
| 15 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 16 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 17 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 18 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 19 |
+
<sch:assert test="not(exists(f: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)">If code is the same as a component code then the value element associated with the code SHALL NOT be present (inherited)</sch:assert>
|
| 20 |
+
<sch:assert test="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))">dataAbsentReason SHALL only be present if Observation.value[x] is not present (inherited)</sch:assert>
|
| 21 |
+
<sch:assert test="exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no component or related element then either a value[x] or a data absent reason must be present (inherited)</sch:assert>
|
| 22 |
+
</sch:rule>
|
| 23 |
+
</sch:pattern>
|
| 24 |
+
<sch:pattern>
|
| 25 |
+
<sch:title>f:Observation/f:code</sch:title>
|
| 26 |
+
<sch:rule context="f:Observation/f:code">
|
| 27 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 28 |
+
<sch:assert test="count(f:text) <= 1">text: maximum cardinality of 'text' is 1</sch:assert>
|
| 29 |
+
</sch:rule>
|
| 30 |
+
</sch:pattern>
|
| 31 |
+
<sch:pattern>
|
| 32 |
+
<sch:title>f:Observation/f:code/f:coding</sch:title>
|
| 33 |
+
<sch:rule context="f:Observation/f:code/f:coding">
|
| 34 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 35 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 36 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 37 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 38 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 39 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 40 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 41 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 42 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 43 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 44 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 45 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
</sch:pattern>
|
| 48 |
+
<sch:pattern>
|
| 49 |
+
<sch:title>Observation.effective[x]</sch:title>
|
| 50 |
+
<sch:rule context="f:Observation/f:effective[x]">
|
| 51 |
+
<sch:assert test="f:matches(effectiveDateTime,/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)">Datetime must be at least to day. (inherited)</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
</sch:pattern>
|
| 54 |
+
<sch:pattern>
|
| 55 |
+
<sch:title>Observation.referenceRange</sch:title>
|
| 56 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 57 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 58 |
+
<sch:assert test="(exists(f:low) or exists(f:high)or exists(f:text))">Must have at least a low or a high or text (inherited)</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
</sch:pattern>
|
| 61 |
+
<sch:pattern>
|
| 62 |
+
<sch:title>Observation.related</sch:title>
|
| 63 |
+
<sch:rule context="f:Observation/f:related">
|
| 64 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
</sch:pattern>
|
| 67 |
+
<sch:pattern>
|
| 68 |
+
<sch:title>Observation.component</sch:title>
|
| 69 |
+
<sch:rule context="f:Observation/f:component">
|
| 70 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 71 |
+
<sch:assert test="exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no a value a data absent reason must be present (inherited)</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
</sch:pattern>
|
| 74 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/healthcareservice.sch
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource HealthcareService
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>HealthcareService</sch:title>
|
| 21 |
+
<sch:rule context="//f:HealthcareService">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:HealthcareService/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:HealthcareService/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:HealthcareService/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:HealthcareService/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:HealthcareService/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:HealthcareService/f:providedBy">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:HealthcareService/f:providedBy/f:identifier/f:period">
|
| 47 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:HealthcareService/f:providedBy/f:identifier//f:assigner">
|
| 50 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:HealthcareService/f:location">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:HealthcareService/f:location/f:identifier/f:period">
|
| 56 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:HealthcareService/f:location/f:identifier/f:assigner">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:HealthcareService/f:photo">
|
| 62 |
+
<sch:assert test="not(exists(f:data)) or exists(f:contentType)">att-1: It the Attachment has data, it SHALL have a contentType</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:HealthcareService/f:telecom">
|
| 65 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:HealthcareService/f:telecom/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:HealthcareService/f:coverageArea">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:HealthcareService/f:coverageArea/f:identifier/f:period">
|
| 74 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:HealthcareService/f:coverageArea/f:identifier/f:assigner">
|
| 77 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:HealthcareService/f:notAvailable/f:during">
|
| 80 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:HealthcareService/f:endpoint">
|
| 83 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:HealthcareService/f:endpoint/f:identifier/f:period">
|
| 86 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:HealthcareService/f:endpoint/f:identifier/f:assigner">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
</sch:pattern>
|
| 92 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/healthcareservice.xsd
ADDED
|
@@ -0,0 +1,283 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="HealthcareService" type="HealthcareService">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">The details of a healthcare service available at a location.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="HealthcareService">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">The details of a healthcare service available at a location.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">External identifiers for this item.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="active" minOccurs="0" maxOccurs="1" type="boolean">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Whether this healthcareservice record is in active use.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="providedBy" minOccurs="0" maxOccurs="1" type="Reference">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">The organization that provides this healthcare service.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="serviceCategory" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Identifies the broad category of service being performed or delivered.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="serviceType" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The specific type of service that may be delivered or performed.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="specialty" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Collection of specialties handled by the service site. This is more of a medical term.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="location" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The location(s) where this healthcare service may be provided.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="serviceName" minOccurs="0" maxOccurs="1" type="string">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">Further description of the service as it would be presented to a consumer while searching.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="comment" minOccurs="0" maxOccurs="1" type="string">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="extraDetails" minOccurs="0" maxOccurs="1" type="string">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">Extra details about the service that can't be placed in the other fields.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="photo" minOccurs="0" maxOccurs="1" type="Attachment">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="telecom" minOccurs="0" maxOccurs="unbounded" type="ContactPoint">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">List of contacts related to this specific healthcare service.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="coverageArea" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">The location(s) that this service is available to (not where the service is provided).</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="serviceProvisionCode" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">The code(s) that detail the conditions under which the healthcare service is available/offered.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="eligibility" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">Does this service have specific eligibility requirements that need to be met in order to use the service?</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="eligibilityNote" minOccurs="0" maxOccurs="1" type="string">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">Describes the eligibility conditions for the service.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="programName" minOccurs="0" maxOccurs="unbounded" type="string">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">Program Names that can be used to categorize the service.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="characteristic" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">Collection of characteristics (attributes).</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
<xs:element name="referralMethod" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 143 |
+
<xs:annotation>
|
| 144 |
+
<xs:documentation xml:lang="en">Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.</xs:documentation>
|
| 145 |
+
</xs:annotation>
|
| 146 |
+
</xs:element>
|
| 147 |
+
<xs:element name="publicKey" minOccurs="0" maxOccurs="1" type="string">
|
| 148 |
+
<xs:annotation>
|
| 149 |
+
<xs:documentation xml:lang="en">The public part of the 'keys' allocated to an Organization by an accredited body to support secure exchange of data over the internet. To be provided by the Organization, where available.</xs:documentation>
|
| 150 |
+
</xs:annotation>
|
| 151 |
+
</xs:element>
|
| 152 |
+
<xs:element name="appointmentRequired" minOccurs="0" maxOccurs="1" type="boolean">
|
| 153 |
+
<xs:annotation>
|
| 154 |
+
<xs:documentation xml:lang="en">Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.</xs:documentation>
|
| 155 |
+
</xs:annotation>
|
| 156 |
+
</xs:element>
|
| 157 |
+
<xs:element name="availableTime" type="HealthcareService.AvailableTime" minOccurs="0" maxOccurs="unbounded">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">A collection of times that the Service Site is available.</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
</xs:element>
|
| 162 |
+
<xs:element name="notAvailable" type="HealthcareService.NotAvailable" minOccurs="0" maxOccurs="unbounded">
|
| 163 |
+
<xs:annotation>
|
| 164 |
+
<xs:documentation xml:lang="en">The HealthcareService is not available during this period of time due to the provided reason.</xs:documentation>
|
| 165 |
+
</xs:annotation>
|
| 166 |
+
</xs:element>
|
| 167 |
+
<xs:element name="availabilityExceptions" minOccurs="0" maxOccurs="1" type="string">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
</xs:element>
|
| 172 |
+
<xs:element name="endpoint" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation xml:lang="en">Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
</xs:element>
|
| 177 |
+
</xs:sequence>
|
| 178 |
+
</xs:extension>
|
| 179 |
+
</xs:complexContent>
|
| 180 |
+
</xs:complexType>
|
| 181 |
+
<xs:complexType name="HealthcareService.AvailableTime">
|
| 182 |
+
<xs:annotation>
|
| 183 |
+
<xs:documentation xml:lang="en">The details of a healthcare service available at a location.</xs:documentation>
|
| 184 |
+
</xs:annotation>
|
| 185 |
+
<xs:complexContent>
|
| 186 |
+
<xs:extension base="BackboneElement">
|
| 187 |
+
<xs:sequence>
|
| 188 |
+
<xs:element name="daysOfWeek" minOccurs="0" maxOccurs="unbounded" type="DaysOfWeek">
|
| 189 |
+
<xs:annotation>
|
| 190 |
+
<xs:documentation xml:lang="en">Indicates which days of the week are available between the start and end Times.</xs:documentation>
|
| 191 |
+
</xs:annotation>
|
| 192 |
+
</xs:element>
|
| 193 |
+
<xs:element name="allDay" minOccurs="0" maxOccurs="1" type="boolean">
|
| 194 |
+
<xs:annotation>
|
| 195 |
+
<xs:documentation xml:lang="en">Is this always available? (hence times are irrelevant) e.g. 24 hour service.</xs:documentation>
|
| 196 |
+
</xs:annotation>
|
| 197 |
+
</xs:element>
|
| 198 |
+
<xs:element name="availableStartTime" minOccurs="0" maxOccurs="1" type="time">
|
| 199 |
+
<xs:annotation>
|
| 200 |
+
<xs:documentation xml:lang="en">The opening time of day. Note: If the AllDay flag is set, then this time is ignored.</xs:documentation>
|
| 201 |
+
</xs:annotation>
|
| 202 |
+
</xs:element>
|
| 203 |
+
<xs:element name="availableEndTime" minOccurs="0" maxOccurs="1" type="time">
|
| 204 |
+
<xs:annotation>
|
| 205 |
+
<xs:documentation xml:lang="en">The closing time of day. Note: If the AllDay flag is set, then this time is ignored.</xs:documentation>
|
| 206 |
+
</xs:annotation>
|
| 207 |
+
</xs:element>
|
| 208 |
+
</xs:sequence>
|
| 209 |
+
</xs:extension>
|
| 210 |
+
</xs:complexContent>
|
| 211 |
+
</xs:complexType>
|
| 212 |
+
<xs:complexType name="HealthcareService.NotAvailable">
|
| 213 |
+
<xs:annotation>
|
| 214 |
+
<xs:documentation xml:lang="en">The details of a healthcare service available at a location.</xs:documentation>
|
| 215 |
+
</xs:annotation>
|
| 216 |
+
<xs:complexContent>
|
| 217 |
+
<xs:extension base="BackboneElement">
|
| 218 |
+
<xs:sequence>
|
| 219 |
+
<xs:element name="description" minOccurs="1" maxOccurs="1" type="string">
|
| 220 |
+
<xs:annotation>
|
| 221 |
+
<xs:documentation xml:lang="en">The reason that can be presented to the user as to why this time is not available.</xs:documentation>
|
| 222 |
+
</xs:annotation>
|
| 223 |
+
</xs:element>
|
| 224 |
+
<xs:element name="during" minOccurs="0" maxOccurs="1" type="Period">
|
| 225 |
+
<xs:annotation>
|
| 226 |
+
<xs:documentation xml:lang="en">Service is not available (seasonally or for a public holiday) from this date.</xs:documentation>
|
| 227 |
+
</xs:annotation>
|
| 228 |
+
</xs:element>
|
| 229 |
+
</xs:sequence>
|
| 230 |
+
</xs:extension>
|
| 231 |
+
</xs:complexContent>
|
| 232 |
+
</xs:complexType>
|
| 233 |
+
<xs:simpleType name="DaysOfWeek-list">
|
| 234 |
+
<xs:restriction base="code-primitive">
|
| 235 |
+
<xs:enumeration value="mon">
|
| 236 |
+
<xs:annotation>
|
| 237 |
+
<xs:documentation xml:lang="en">Monday</xs:documentation>
|
| 238 |
+
</xs:annotation>
|
| 239 |
+
</xs:enumeration>
|
| 240 |
+
<xs:enumeration value="tue">
|
| 241 |
+
<xs:annotation>
|
| 242 |
+
<xs:documentation xml:lang="en">Tuesday</xs:documentation>
|
| 243 |
+
</xs:annotation>
|
| 244 |
+
</xs:enumeration>
|
| 245 |
+
<xs:enumeration value="wed">
|
| 246 |
+
<xs:annotation>
|
| 247 |
+
<xs:documentation xml:lang="en">Wednesday</xs:documentation>
|
| 248 |
+
</xs:annotation>
|
| 249 |
+
</xs:enumeration>
|
| 250 |
+
<xs:enumeration value="thu">
|
| 251 |
+
<xs:annotation>
|
| 252 |
+
<xs:documentation xml:lang="en">Thursday</xs:documentation>
|
| 253 |
+
</xs:annotation>
|
| 254 |
+
</xs:enumeration>
|
| 255 |
+
<xs:enumeration value="fri">
|
| 256 |
+
<xs:annotation>
|
| 257 |
+
<xs:documentation xml:lang="en">Friday</xs:documentation>
|
| 258 |
+
</xs:annotation>
|
| 259 |
+
</xs:enumeration>
|
| 260 |
+
<xs:enumeration value="sat">
|
| 261 |
+
<xs:annotation>
|
| 262 |
+
<xs:documentation xml:lang="en">Saturday</xs:documentation>
|
| 263 |
+
</xs:annotation>
|
| 264 |
+
</xs:enumeration>
|
| 265 |
+
<xs:enumeration value="sun">
|
| 266 |
+
<xs:annotation>
|
| 267 |
+
<xs:documentation xml:lang="en">Sunday</xs:documentation>
|
| 268 |
+
</xs:annotation>
|
| 269 |
+
</xs:enumeration>
|
| 270 |
+
</xs:restriction>
|
| 271 |
+
</xs:simpleType>
|
| 272 |
+
<xs:complexType name="DaysOfWeek">
|
| 273 |
+
<xs:annotation>
|
| 274 |
+
<xs:documentation xml:lang="en">The days of the week.</xs:documentation>
|
| 275 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 276 |
+
</xs:annotation>
|
| 277 |
+
<xs:complexContent>
|
| 278 |
+
<xs:extension base="Element">
|
| 279 |
+
<xs:attribute name="value" type="DaysOfWeek-list" use="optional"/>
|
| 280 |
+
</xs:extension>
|
| 281 |
+
</xs:complexContent>
|
| 282 |
+
</xs:complexType>
|
| 283 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/heartrate.sch
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile Vital Signs Profile
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>Observation</sch:title>
|
| 14 |
+
<sch:rule context="f:Observation">
|
| 15 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 16 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 17 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 18 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 19 |
+
<sch:assert test="not(exists(f: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)">If code is the same as a component code then the value element associated with the code SHALL NOT be present (inherited)</sch:assert>
|
| 20 |
+
<sch:assert test="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))">dataAbsentReason SHALL only be present if Observation.value[x] is not present (inherited)</sch:assert>
|
| 21 |
+
<sch:assert test="exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no component or related element then either a value[x] or a data absent reason must be present (inherited)</sch:assert>
|
| 22 |
+
</sch:rule>
|
| 23 |
+
</sch:pattern>
|
| 24 |
+
<sch:pattern>
|
| 25 |
+
<sch:title>f:Observation/f:code</sch:title>
|
| 26 |
+
<sch:rule context="f:Observation/f:code">
|
| 27 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 28 |
+
<sch:assert test="count(f:text) <= 1">text: maximum cardinality of 'text' is 1</sch:assert>
|
| 29 |
+
</sch:rule>
|
| 30 |
+
</sch:pattern>
|
| 31 |
+
<sch:pattern>
|
| 32 |
+
<sch:title>f:Observation/f:code/f:coding</sch:title>
|
| 33 |
+
<sch:rule context="f:Observation/f:code/f:coding">
|
| 34 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 35 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 36 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 37 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 38 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 39 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 40 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 41 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 42 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 43 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 44 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 45 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
</sch:pattern>
|
| 48 |
+
<sch:pattern>
|
| 49 |
+
<sch:title>Observation.effective[x]</sch:title>
|
| 50 |
+
<sch:rule context="f:Observation/f:effective[x]">
|
| 51 |
+
<sch:assert test="f:matches(effectiveDateTime,/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)">Datetime must be at least to day. (inherited)</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
</sch:pattern>
|
| 54 |
+
<sch:pattern>
|
| 55 |
+
<sch:title>Observation.referenceRange</sch:title>
|
| 56 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 57 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 58 |
+
<sch:assert test="(exists(f:low) or exists(f:high)or exists(f:text))">Must have at least a low or a high or text (inherited)</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
</sch:pattern>
|
| 61 |
+
<sch:pattern>
|
| 62 |
+
<sch:title>Observation.related</sch:title>
|
| 63 |
+
<sch:rule context="f:Observation/f:related">
|
| 64 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
</sch:pattern>
|
| 67 |
+
<sch:pattern>
|
| 68 |
+
<sch:title>Observation.component</sch:title>
|
| 69 |
+
<sch:rule context="f:Observation/f:component">
|
| 70 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 71 |
+
<sch:assert test="exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no a value a data absent reason must be present (inherited)</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
</sch:pattern>
|
| 74 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/hlaresult.sch
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile DiagnosticReport
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>f:DiagnosticReport</sch:title>
|
| 14 |
+
<sch:rule context="f:DiagnosticReport">
|
| 15 |
+
<sch:assert test="count(f:extension[@url = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsAlleleDatabase']) <= 1">extension with URL = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsAlleleDatabase': maximum cardinality of 'extension' is 1</sch:assert>
|
| 16 |
+
<sch:assert test="count(f:extension[@url = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsGlstring']) <= 1">extension with URL = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsGlstring': maximum cardinality of 'extension' is 1</sch:assert>
|
| 17 |
+
<sch:assert test="count(f:extension[@url = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsMethod']) <= 1">extension with URL = 'http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsMethod': maximum cardinality of 'extension' is 1</sch:assert>
|
| 18 |
+
</sch:rule>
|
| 19 |
+
</sch:pattern>
|
| 20 |
+
<sch:pattern>
|
| 21 |
+
<sch:title>DiagnosticReport</sch:title>
|
| 22 |
+
<sch:rule context="f:DiagnosticReport">
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 24 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 26 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 27 |
+
</sch:rule>
|
| 28 |
+
</sch:pattern>
|
| 29 |
+
<sch:pattern>
|
| 30 |
+
<sch:title>DiagnosticReport.extension</sch:title>
|
| 31 |
+
<sch:rule context="f:DiagnosticReport/f:extension">
|
| 32 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 33 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">Must have either extensions or value[x], not both (inherited)</sch:assert>
|
| 34 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">Must have either extensions or value[x], not both (inherited)</sch:assert>
|
| 36 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 37 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">Must have either extensions or value[x], not both (inherited)</sch:assert>
|
| 38 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 39 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">Must have either extensions or value[x], not both (inherited)</sch:assert>
|
| 40 |
+
</sch:rule>
|
| 41 |
+
</sch:pattern>
|
| 42 |
+
<sch:pattern>
|
| 43 |
+
<sch:title>DiagnosticReport.image</sch:title>
|
| 44 |
+
<sch:rule context="f:DiagnosticReport/f:image">
|
| 45 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
</sch:pattern>
|
| 48 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingmanifest.sch
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource ImagingManifest
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>ImagingManifest</sch:title>
|
| 21 |
+
<sch:rule context="//f:ImagingManifest">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:ImagingManifest/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:ImagingManifest/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:ImagingManifest/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:ImagingManifest/f:patient">
|
| 38 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:ImagingManifest/f:patient/f:identifier/f:period">
|
| 41 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:ImagingManifest/f:patient/f:identifier/f:assigner">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:ImagingManifest/f:author">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:ImagingManifest/f:author/f:identifier/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:ImagingManifest/f:author/f:identifier/f:assigner">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:ImagingManifest/f:study/f:imagingStudy">
|
| 56 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:ImagingManifest/f:study/f:imagingStudy/f:identifier/f:period">
|
| 59 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:ImagingManifest/f:study/f:imagingStudy/f:identifier/f:assigner">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
</sch:pattern>
|
| 65 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingmanifest.xsd
ADDED
|
@@ -0,0 +1,211 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="ImagingManifest" type="ImagingManifest">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="ImagingManifest">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="uid" minOccurs="0" maxOccurs="1" type="oid">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Unique identifier of the the DICOM Key Object Selection (KOS) that this resource represents.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="patient" minOccurs="1" maxOccurs="1" type="Reference">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">A patient resource reference which is the patient subject of all DICOM SOP Instances in this ImagingManifest.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="authoringTime" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Date and time when the selection of the referenced instances were made. It is (typically) different from the creation date of the selection resource, and from dates associated with the referenced instances (e.g. capture time of the referenced image).</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="author" minOccurs="0" maxOccurs="1" type="Reference">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Author of ImagingManifest. It can be a human author or a device which made the decision of the SOP instances selected. For example, a radiologist selected a set of imaging SOP instances to attach in a diagnostic report, and a CAD application may author a selection to describe SOP instances it used to generate a detection conclusion.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="title" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The reason for, or significance of, the selection of objects referenced in the resource.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Text description of the DICOM SOP instances selected in the ImagingManifest. This should be aligned with the content of the title element, and can provide further explanation of the SOP instances in the selection.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="study" type="ImagingManifest.Study" minOccurs="1" maxOccurs="unbounded">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">Study identity and locating information of the DICOM SOP instances in the selection.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
</xs:sequence>
|
| 88 |
+
</xs:extension>
|
| 89 |
+
</xs:complexContent>
|
| 90 |
+
</xs:complexType>
|
| 91 |
+
<xs:complexType name="ImagingManifest.Study">
|
| 92 |
+
<xs:annotation>
|
| 93 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 94 |
+
</xs:annotation>
|
| 95 |
+
<xs:complexContent>
|
| 96 |
+
<xs:extension base="BackboneElement">
|
| 97 |
+
<xs:sequence>
|
| 98 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 99 |
+
<xs:annotation>
|
| 100 |
+
<xs:documentation xml:lang="en">Study instance UID of the SOP instances in the selection.</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
</xs:element>
|
| 103 |
+
<xs:element name="imagingStudy" minOccurs="0" maxOccurs="1" type="Reference">
|
| 104 |
+
<xs:annotation>
|
| 105 |
+
<xs:documentation xml:lang="en">Reference to the Imaging Study in FHIR form.</xs:documentation>
|
| 106 |
+
</xs:annotation>
|
| 107 |
+
</xs:element>
|
| 108 |
+
<xs:element name="baseLocation" type="ImagingManifest.BaseLocation" minOccurs="0" maxOccurs="unbounded">
|
| 109 |
+
<xs:annotation>
|
| 110 |
+
<xs:documentation xml:lang="en">Methods of accessing (e.g., retrieving, viewing) the study.</xs:documentation>
|
| 111 |
+
</xs:annotation>
|
| 112 |
+
</xs:element>
|
| 113 |
+
<xs:element name="series" type="ImagingManifest.Series" minOccurs="1" maxOccurs="unbounded">
|
| 114 |
+
<xs:annotation>
|
| 115 |
+
<xs:documentation xml:lang="en">Series identity and locating information of the DICOM SOP instances in the selection.</xs:documentation>
|
| 116 |
+
</xs:annotation>
|
| 117 |
+
</xs:element>
|
| 118 |
+
</xs:sequence>
|
| 119 |
+
</xs:extension>
|
| 120 |
+
</xs:complexContent>
|
| 121 |
+
</xs:complexType>
|
| 122 |
+
<xs:complexType name="ImagingManifest.BaseLocation">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
<xs:complexContent>
|
| 127 |
+
<xs:extension base="BackboneElement">
|
| 128 |
+
<xs:sequence>
|
| 129 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="Coding">
|
| 130 |
+
<xs:annotation>
|
| 131 |
+
<xs:documentation xml:lang="en">The service type for accessing (e.g., retrieving, viewing) the DICOM instances.</xs:documentation>
|
| 132 |
+
</xs:annotation>
|
| 133 |
+
</xs:element>
|
| 134 |
+
<xs:element name="url" minOccurs="1" maxOccurs="1" type="uri">
|
| 135 |
+
<xs:annotation>
|
| 136 |
+
<xs:documentation xml:lang="en">The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.baseLocation.type.</xs:documentation>
|
| 137 |
+
</xs:annotation>
|
| 138 |
+
</xs:element>
|
| 139 |
+
</xs:sequence>
|
| 140 |
+
</xs:extension>
|
| 141 |
+
</xs:complexContent>
|
| 142 |
+
</xs:complexType>
|
| 143 |
+
<xs:complexType name="ImagingManifest.Series">
|
| 144 |
+
<xs:annotation>
|
| 145 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 146 |
+
</xs:annotation>
|
| 147 |
+
<xs:complexContent>
|
| 148 |
+
<xs:extension base="BackboneElement">
|
| 149 |
+
<xs:sequence>
|
| 150 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 151 |
+
<xs:annotation>
|
| 152 |
+
<xs:documentation xml:lang="en">Series instance UID of the SOP instances in the selection.</xs:documentation>
|
| 153 |
+
</xs:annotation>
|
| 154 |
+
</xs:element>
|
| 155 |
+
<xs:element name="baseLocation" type="ImagingManifest.BaseLocation1" minOccurs="0" maxOccurs="unbounded">
|
| 156 |
+
<xs:annotation>
|
| 157 |
+
<xs:documentation xml:lang="en">Methods of accessing (e.g. retrieving) the series.</xs:documentation>
|
| 158 |
+
</xs:annotation>
|
| 159 |
+
</xs:element>
|
| 160 |
+
<xs:element name="instance" type="ImagingManifest.Instance" minOccurs="1" maxOccurs="unbounded">
|
| 161 |
+
<xs:annotation>
|
| 162 |
+
<xs:documentation xml:lang="en">Identity and locating information of the selected DICOM SOP instances.</xs:documentation>
|
| 163 |
+
</xs:annotation>
|
| 164 |
+
</xs:element>
|
| 165 |
+
</xs:sequence>
|
| 166 |
+
</xs:extension>
|
| 167 |
+
</xs:complexContent>
|
| 168 |
+
</xs:complexType>
|
| 169 |
+
<xs:complexType name="ImagingManifest.BaseLocation1">
|
| 170 |
+
<xs:annotation>
|
| 171 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 172 |
+
</xs:annotation>
|
| 173 |
+
<xs:complexContent>
|
| 174 |
+
<xs:extension base="BackboneElement">
|
| 175 |
+
<xs:sequence>
|
| 176 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="Coding">
|
| 177 |
+
<xs:annotation>
|
| 178 |
+
<xs:documentation xml:lang="en">The service type for accessing (e.g., retrieving) the DICOM instances.</xs:documentation>
|
| 179 |
+
</xs:annotation>
|
| 180 |
+
</xs:element>
|
| 181 |
+
<xs:element name="url" minOccurs="1" maxOccurs="1" type="uri">
|
| 182 |
+
<xs:annotation>
|
| 183 |
+
<xs:documentation xml:lang="en">The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.series.baseLocation.type.</xs:documentation>
|
| 184 |
+
</xs:annotation>
|
| 185 |
+
</xs:element>
|
| 186 |
+
</xs:sequence>
|
| 187 |
+
</xs:extension>
|
| 188 |
+
</xs:complexContent>
|
| 189 |
+
</xs:complexType>
|
| 190 |
+
<xs:complexType name="ImagingManifest.Instance">
|
| 191 |
+
<xs:annotation>
|
| 192 |
+
<xs:documentation xml:lang="en">A manifest of a set of DICOM Service-Object Pair Instances (SOP Instances). The referenced SOP Instances (images or other content) are for a single patient, and may be from one or more studies. The referenced SOP Instances may have been selected for a purpose, such as conference, or consult. Reflecting a range of sharing purposes, typical ImagingManifest resources may include all SOP Instances in a study (perhaps for sharing through a Health Information Exchange); key images from multiple studies (for reference by a referring or treating physician); both a multi-frame ultrasound instance ("cine" video clip) and a set of measurements taken from that instance (for inclusion in a teaching file); and so on.</xs:documentation>
|
| 193 |
+
</xs:annotation>
|
| 194 |
+
<xs:complexContent>
|
| 195 |
+
<xs:extension base="BackboneElement">
|
| 196 |
+
<xs:sequence>
|
| 197 |
+
<xs:element name="sopClass" minOccurs="1" maxOccurs="1" type="oid">
|
| 198 |
+
<xs:annotation>
|
| 199 |
+
<xs:documentation xml:lang="en">SOP class UID of the selected instance.</xs:documentation>
|
| 200 |
+
</xs:annotation>
|
| 201 |
+
</xs:element>
|
| 202 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 203 |
+
<xs:annotation>
|
| 204 |
+
<xs:documentation xml:lang="en">SOP Instance UID of the selected instance.</xs:documentation>
|
| 205 |
+
</xs:annotation>
|
| 206 |
+
</xs:element>
|
| 207 |
+
</xs:sequence>
|
| 208 |
+
</xs:extension>
|
| 209 |
+
</xs:complexContent>
|
| 210 |
+
</xs:complexType>
|
| 211 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingstudy.sch
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource ImagingStudy
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>ImagingStudy</sch:title>
|
| 21 |
+
<sch:rule context="//f:ImagingStudy">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:ImagingStudy/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:ImagingStudy/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:ImagingStudy/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:ImagingStudy/f:accession/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:ImagingStudy/f:accession/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:ImagingStudy/f:identifier/f:period">
|
| 44 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:ImagingStudy/f:identifier/f:assigner">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:ImagingStudy/f:patient">
|
| 50 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:ImagingStudy/f:patient/f:identifier/f:period">
|
| 53 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:ImagingStudy/f:patient/f:identifier/f:assigner">
|
| 56 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:ImagingStudy/f:context">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:ImagingStudy/f:context/f:identifier/f:period">
|
| 62 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:ImagingStudy/f:context/f:identifier/f:assigner">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:ImagingStudy/f:basedOn">
|
| 68 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:ImagingStudy/f:basedOn/f:identifier/f:period">
|
| 71 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:ImagingStudy/f:basedOn/f:identifier/f:assigner">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:ImagingStudy/f:referrer">
|
| 77 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:ImagingStudy/f:referrer/f:identifier/f:period">
|
| 80 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:ImagingStudy/f:referrer/f:identifier/f:assigner">
|
| 83 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:ImagingStudy/f:interpreter">
|
| 86 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:ImagingStudy/f:interpreter/f:identifier/f:period">
|
| 89 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
<sch:rule context="//f:ImagingStudy/f:interpreter/f:identifier/f:assigner">
|
| 92 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 93 |
+
</sch:rule>
|
| 94 |
+
<sch:rule context="//f:ImagingStudy/f:procedure">
|
| 95 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 96 |
+
</sch:rule>
|
| 97 |
+
<sch:rule context="//f:ImagingStudy/f:procedure/f:identifier/f:period">
|
| 98 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 99 |
+
</sch:rule>
|
| 100 |
+
<sch:rule context="//f:ImagingStudy/f:procedure/f:identifier/f:assigner">
|
| 101 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 102 |
+
</sch:rule>
|
| 103 |
+
</sch:pattern>
|
| 104 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/imagingstudy.xsd
ADDED
|
@@ -0,0 +1,320 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="ImagingStudy" type="ImagingStudy">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="ImagingStudy">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Formal identifier for the study.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="accession" minOccurs="0" maxOccurs="1" type="Identifier">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Accession Number is an identifier related to some aspect of imaging workflow and data management. Usage may vary across different institutions. See for instance [IHE Radiology Technical Framework Volume 1 Appendix A](http://www.ihe.net/uploadedFiles/Documents/Radiology/IHE_RAD_TF_Rev13.0_Vol1_FT_2014-07-30.pdf).</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Other identifiers for the study.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="availability" minOccurs="0" maxOccurs="1" type="InstanceAvailability">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Availability of study (online, offline or nearline).</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="modalityList" minOccurs="0" maxOccurs="unbounded" type="Coding">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">A list of all the Series.ImageModality values that are actual acquisition modalities, i.e. those in the DICOM Context Group 29 (value set OID 1.2.840.10008.6.1.19).</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="patient" minOccurs="1" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The patient imaged in the study.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="context" minOccurs="0" maxOccurs="1" type="Reference">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The encounter at which the request is initiated.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="started" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">Date and Time the study started.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="basedOn" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">A list of the diagnostic requests that resulted in this imaging study being performed.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="referrer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">The requesting/referring physician.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="interpreter" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">Who read the study and interpreted the images or other content.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="baseLocation" type="ImagingStudy.BaseLocation" minOccurs="0" maxOccurs="unbounded">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">Methods of accessing (e.g., retrieving, viewing) the study.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="numberOfSeries" minOccurs="1" maxOccurs="1" type="unsignedInt">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">Number of Series in Study.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="numberOfInstances" minOccurs="1" maxOccurs="1" type="unsignedInt">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">Number of SOP Instances in Study.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="procedure" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">Type of procedure performed.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="reason" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">Description of clinical codition indicating why the ImagingStudy was requested.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">Institution-generated description or classification of the Study performed.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="series" type="ImagingStudy.Series" minOccurs="0" maxOccurs="unbounded">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">Each study has one or more series of images or other content.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
</xs:sequence>
|
| 143 |
+
</xs:extension>
|
| 144 |
+
</xs:complexContent>
|
| 145 |
+
</xs:complexType>
|
| 146 |
+
<xs:complexType name="ImagingStudy.BaseLocation">
|
| 147 |
+
<xs:annotation>
|
| 148 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 149 |
+
</xs:annotation>
|
| 150 |
+
<xs:complexContent>
|
| 151 |
+
<xs:extension base="BackboneElement">
|
| 152 |
+
<xs:sequence>
|
| 153 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="Coding">
|
| 154 |
+
<xs:annotation>
|
| 155 |
+
<xs:documentation xml:lang="en">The service type for accessing (e.g., retrieving, viewing) the DICOM instances.</xs:documentation>
|
| 156 |
+
</xs:annotation>
|
| 157 |
+
</xs:element>
|
| 158 |
+
<xs:element name="url" minOccurs="1" maxOccurs="1" type="uri">
|
| 159 |
+
<xs:annotation>
|
| 160 |
+
<xs:documentation xml:lang="en">The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.baseLocation.type.</xs:documentation>
|
| 161 |
+
</xs:annotation>
|
| 162 |
+
</xs:element>
|
| 163 |
+
</xs:sequence>
|
| 164 |
+
</xs:extension>
|
| 165 |
+
</xs:complexContent>
|
| 166 |
+
</xs:complexType>
|
| 167 |
+
<xs:complexType name="ImagingStudy.Series">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
<xs:complexContent>
|
| 172 |
+
<xs:extension base="BackboneElement">
|
| 173 |
+
<xs:sequence>
|
| 174 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 175 |
+
<xs:annotation>
|
| 176 |
+
<xs:documentation xml:lang="en">Formal identifier for this series.</xs:documentation>
|
| 177 |
+
</xs:annotation>
|
| 178 |
+
</xs:element>
|
| 179 |
+
<xs:element name="number" minOccurs="0" maxOccurs="1" type="unsignedInt">
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation xml:lang="en">The Numeric identifier of this series in the study.</xs:documentation>
|
| 182 |
+
</xs:annotation>
|
| 183 |
+
</xs:element>
|
| 184 |
+
<xs:element name="modality" minOccurs="1" maxOccurs="1" type="Coding">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">The modality of this series sequence.</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
</xs:element>
|
| 189 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 190 |
+
<xs:annotation>
|
| 191 |
+
<xs:documentation xml:lang="en">A description of the series.</xs:documentation>
|
| 192 |
+
</xs:annotation>
|
| 193 |
+
</xs:element>
|
| 194 |
+
<xs:element name="numberOfInstances" minOccurs="1" maxOccurs="1" type="unsignedInt">
|
| 195 |
+
<xs:annotation>
|
| 196 |
+
<xs:documentation xml:lang="en">Number of SOP Instances in Series.</xs:documentation>
|
| 197 |
+
</xs:annotation>
|
| 198 |
+
</xs:element>
|
| 199 |
+
<xs:element name="availability" minOccurs="0" maxOccurs="1" type="InstanceAvailability">
|
| 200 |
+
<xs:annotation>
|
| 201 |
+
<xs:documentation xml:lang="en">Availability of series (online, offline or nearline).</xs:documentation>
|
| 202 |
+
</xs:annotation>
|
| 203 |
+
</xs:element>
|
| 204 |
+
<xs:element name="baseLocation" type="ImagingStudy.BaseLocation1" minOccurs="0" maxOccurs="unbounded">
|
| 205 |
+
<xs:annotation>
|
| 206 |
+
<xs:documentation xml:lang="en">Methods of accessing (e.g. retrieving) the series.</xs:documentation>
|
| 207 |
+
</xs:annotation>
|
| 208 |
+
</xs:element>
|
| 209 |
+
<xs:element name="bodySite" minOccurs="0" maxOccurs="1" type="Coding">
|
| 210 |
+
<xs:annotation>
|
| 211 |
+
<xs:documentation xml:lang="en">Body part examined. See DICOM Part 16 Annex L for the mapping from DICOM to Snomed CT.</xs:documentation>
|
| 212 |
+
</xs:annotation>
|
| 213 |
+
</xs:element>
|
| 214 |
+
<xs:element name="laterality" minOccurs="0" maxOccurs="1" type="Coding">
|
| 215 |
+
<xs:annotation>
|
| 216 |
+
<xs:documentation xml:lang="en">Laterality if body site is paired anatomic structure and laterality is not pre-coordinated in body site code.</xs:documentation>
|
| 217 |
+
</xs:annotation>
|
| 218 |
+
</xs:element>
|
| 219 |
+
<xs:element name="started" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 220 |
+
<xs:annotation>
|
| 221 |
+
<xs:documentation xml:lang="en">The date and time the series was started.</xs:documentation>
|
| 222 |
+
</xs:annotation>
|
| 223 |
+
</xs:element>
|
| 224 |
+
<xs:element name="instance" type="ImagingStudy.Instance" minOccurs="0" maxOccurs="unbounded">
|
| 225 |
+
<xs:annotation>
|
| 226 |
+
<xs:documentation xml:lang="en">A single SOP Instance within the series, e.g. an image, or presentation state.</xs:documentation>
|
| 227 |
+
</xs:annotation>
|
| 228 |
+
</xs:element>
|
| 229 |
+
</xs:sequence>
|
| 230 |
+
</xs:extension>
|
| 231 |
+
</xs:complexContent>
|
| 232 |
+
</xs:complexType>
|
| 233 |
+
<xs:complexType name="ImagingStudy.BaseLocation1">
|
| 234 |
+
<xs:annotation>
|
| 235 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 236 |
+
</xs:annotation>
|
| 237 |
+
<xs:complexContent>
|
| 238 |
+
<xs:extension base="BackboneElement">
|
| 239 |
+
<xs:sequence>
|
| 240 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="Coding">
|
| 241 |
+
<xs:annotation>
|
| 242 |
+
<xs:documentation xml:lang="en">The service type for accessing (e.g., retrieving) the DICOM instances.</xs:documentation>
|
| 243 |
+
</xs:annotation>
|
| 244 |
+
</xs:element>
|
| 245 |
+
<xs:element name="url" minOccurs="1" maxOccurs="1" type="uri">
|
| 246 |
+
<xs:annotation>
|
| 247 |
+
<xs:documentation xml:lang="en">The service URL for accessing the study. The interpretation of the URL depends on the type of the service specified in ImagingManifest.study.series.baseLocation.type.</xs:documentation>
|
| 248 |
+
</xs:annotation>
|
| 249 |
+
</xs:element>
|
| 250 |
+
</xs:sequence>
|
| 251 |
+
</xs:extension>
|
| 252 |
+
</xs:complexContent>
|
| 253 |
+
</xs:complexType>
|
| 254 |
+
<xs:complexType name="ImagingStudy.Instance">
|
| 255 |
+
<xs:annotation>
|
| 256 |
+
<xs:documentation xml:lang="en">Representation of the content produced in a DICOM imaging study. A study comprises a set of series, each of which includes a set of Service-Object Pair Instances (SOP Instances - images or other data) acquired or produced in a common context. A series is of only one modality (e.g. X-ray, CT, MR, ultrasound), but a study may have multiple series of different modalities.</xs:documentation>
|
| 257 |
+
</xs:annotation>
|
| 258 |
+
<xs:complexContent>
|
| 259 |
+
<xs:extension base="BackboneElement">
|
| 260 |
+
<xs:sequence>
|
| 261 |
+
<xs:element name="uid" minOccurs="1" maxOccurs="1" type="oid">
|
| 262 |
+
<xs:annotation>
|
| 263 |
+
<xs:documentation xml:lang="en">Formal identifier for this image or other content.</xs:documentation>
|
| 264 |
+
</xs:annotation>
|
| 265 |
+
</xs:element>
|
| 266 |
+
<xs:element name="number" minOccurs="0" maxOccurs="1" type="unsignedInt">
|
| 267 |
+
<xs:annotation>
|
| 268 |
+
<xs:documentation xml:lang="en">The number of instance in the series.</xs:documentation>
|
| 269 |
+
</xs:annotation>
|
| 270 |
+
</xs:element>
|
| 271 |
+
<xs:element name="sopClass" minOccurs="1" maxOccurs="1" type="oid">
|
| 272 |
+
<xs:annotation>
|
| 273 |
+
<xs:documentation xml:lang="en">DICOM instance type.</xs:documentation>
|
| 274 |
+
</xs:annotation>
|
| 275 |
+
</xs:element>
|
| 276 |
+
<xs:element name="title" minOccurs="0" maxOccurs="1" type="string">
|
| 277 |
+
<xs:annotation>
|
| 278 |
+
<xs:documentation xml:lang="en">The description of the instance.</xs:documentation>
|
| 279 |
+
</xs:annotation>
|
| 280 |
+
</xs:element>
|
| 281 |
+
</xs:sequence>
|
| 282 |
+
</xs:extension>
|
| 283 |
+
</xs:complexContent>
|
| 284 |
+
</xs:complexType>
|
| 285 |
+
<xs:simpleType name="InstanceAvailability-list">
|
| 286 |
+
<xs:restriction base="code-primitive">
|
| 287 |
+
<xs:enumeration value="ONLINE">
|
| 288 |
+
<xs:annotation>
|
| 289 |
+
<xs:documentation xml:lang="en">Online</xs:documentation>
|
| 290 |
+
</xs:annotation>
|
| 291 |
+
</xs:enumeration>
|
| 292 |
+
<xs:enumeration value="OFFLINE">
|
| 293 |
+
<xs:annotation>
|
| 294 |
+
<xs:documentation xml:lang="en">Offline</xs:documentation>
|
| 295 |
+
</xs:annotation>
|
| 296 |
+
</xs:enumeration>
|
| 297 |
+
<xs:enumeration value="NEARLINE">
|
| 298 |
+
<xs:annotation>
|
| 299 |
+
<xs:documentation xml:lang="en">Nearline</xs:documentation>
|
| 300 |
+
</xs:annotation>
|
| 301 |
+
</xs:enumeration>
|
| 302 |
+
<xs:enumeration value="UNAVAILABLE">
|
| 303 |
+
<xs:annotation>
|
| 304 |
+
<xs:documentation xml:lang="en">Unavailable</xs:documentation>
|
| 305 |
+
</xs:annotation>
|
| 306 |
+
</xs:enumeration>
|
| 307 |
+
</xs:restriction>
|
| 308 |
+
</xs:simpleType>
|
| 309 |
+
<xs:complexType name="InstanceAvailability">
|
| 310 |
+
<xs:annotation>
|
| 311 |
+
<xs:documentation xml:lang="en">Availability of the resource</xs:documentation>
|
| 312 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 313 |
+
</xs:annotation>
|
| 314 |
+
<xs:complexContent>
|
| 315 |
+
<xs:extension base="Element">
|
| 316 |
+
<xs:attribute name="value" type="InstanceAvailability-list" use="optional"/>
|
| 317 |
+
</xs:extension>
|
| 318 |
+
</xs:complexContent>
|
| 319 |
+
</xs:complexType>
|
| 320 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunization.sch
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Immunization
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Immunization</sch:title>
|
| 21 |
+
<sch:rule context="//f:Immunization">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="not(f:wasNotGiven/@value=false() and exists(f:explanation/f:reasonNotGiven))">imm-2: If immunization was administered (wasNotGiven=false) then explanation.reasonNotGiven SHALL be absent.</sch:assert>
|
| 27 |
+
<sch:assert test="not(f:wasNotGiven/@value=true() and (count(f:reaction) > 0 or exists(f:explanation/f:reason)))">imm-1: If immunization was not administered (wasNotGiven=true) then there SHALL be no reaction nor explanation.reason present</sch:assert>
|
| 28 |
+
</sch:rule>
|
| 29 |
+
<sch:rule context="//f:Immunization/f:text/h:div">
|
| 30 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 31 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 32 |
+
</sch:rule>
|
| 33 |
+
<sch:rule context="//f:Immunization/f:extension">
|
| 34 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 35 |
+
</sch:rule>
|
| 36 |
+
<sch:rule context="//f:Immunization/f:modifierExtension">
|
| 37 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 38 |
+
</sch:rule>
|
| 39 |
+
<sch:rule context="//f:Immunization/f:identifier/f:period">
|
| 40 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 41 |
+
</sch:rule>
|
| 42 |
+
<sch:rule context="//f:Immunization/f:identifier/f:assigner">
|
| 43 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 44 |
+
</sch:rule>
|
| 45 |
+
<sch:rule context="//f:Immunization/f:patient">
|
| 46 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 47 |
+
</sch:rule>
|
| 48 |
+
<sch:rule context="//f:Immunization/f:patient/f:identifier/f:period">
|
| 49 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 50 |
+
</sch:rule>
|
| 51 |
+
<sch:rule context="//f:Immunization/f:patient/f:identifier/f:assigner">
|
| 52 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 53 |
+
</sch:rule>
|
| 54 |
+
<sch:rule context="//f:Immunization/f:performer">
|
| 55 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 56 |
+
</sch:rule>
|
| 57 |
+
<sch:rule context="//f:Immunization/f:performer/f:identifier/f:period">
|
| 58 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
<sch:rule context="//f:Immunization/f:performer/f:identifier/f:assigner">
|
| 61 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 62 |
+
</sch:rule>
|
| 63 |
+
<sch:rule context="//f:Immunization/f:requester">
|
| 64 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
<sch:rule context="//f:Immunization/f:requester/f:identifier/f:period">
|
| 67 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 68 |
+
</sch:rule>
|
| 69 |
+
<sch:rule context="//f:Immunization/f:requester/f:identifier/f:assigner">
|
| 70 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 71 |
+
</sch:rule>
|
| 72 |
+
<sch:rule context="//f:Immunization/f:encounter">
|
| 73 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 74 |
+
</sch:rule>
|
| 75 |
+
<sch:rule context="//f:Immunization/f:encounter/f:identifier/f:period">
|
| 76 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 77 |
+
</sch:rule>
|
| 78 |
+
<sch:rule context="//f:Immunization/f:encounter/f:identifier/f:assigner">
|
| 79 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 80 |
+
</sch:rule>
|
| 81 |
+
<sch:rule context="//f:Immunization/f:manufacturer">
|
| 82 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 83 |
+
</sch:rule>
|
| 84 |
+
<sch:rule context="//f:Immunization/f:manufacturer/f:identifier/f:period">
|
| 85 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 86 |
+
</sch:rule>
|
| 87 |
+
<sch:rule context="//f:Immunization/f:manufacturer/f:identifier//f:assigner">
|
| 88 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 89 |
+
</sch:rule>
|
| 90 |
+
<sch:rule context="//f:Immunization/f:location">
|
| 91 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 92 |
+
</sch:rule>
|
| 93 |
+
<sch:rule context="//f:Immunization/f:location/f:identifier/f:period">
|
| 94 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 95 |
+
</sch:rule>
|
| 96 |
+
<sch:rule context="//f:Immunization/f:location/f:identifier/f:assigner">
|
| 97 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 98 |
+
</sch:rule>
|
| 99 |
+
<sch:rule context="//f:Immunization/f:doseQuantity">
|
| 100 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 101 |
+
</sch:rule>
|
| 102 |
+
<sch:rule context="//f:Immunization/f:note/f:authorReference">
|
| 103 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 104 |
+
</sch:rule>
|
| 105 |
+
<sch:rule context="//f:Immunization/f:note/f:authorReference/f:identifier/f:period">
|
| 106 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 107 |
+
</sch:rule>
|
| 108 |
+
<sch:rule context="//f:Immunization/f:note/f:authorReference/f:identifier/f:assigner">
|
| 109 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 110 |
+
</sch:rule>
|
| 111 |
+
<sch:rule context="//f:Immunization/f:reaction/f:detail">
|
| 112 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 113 |
+
</sch:rule>
|
| 114 |
+
<sch:rule context="//f:Immunization/f:reaction/f:detail/f:identifier/f:period">
|
| 115 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 116 |
+
</sch:rule>
|
| 117 |
+
<sch:rule context="//f:Immunization/f:reaction/f:detail/f:identifier/f:assigner">
|
| 118 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 119 |
+
</sch:rule>
|
| 120 |
+
<sch:rule context="//f:Immunization/f:vaccinationProtocol/f:authority">
|
| 121 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 122 |
+
</sch:rule>
|
| 123 |
+
<sch:rule context="//f:Immunization/f:vaccinationProtocol/f:authority/f:identifier/f:period">
|
| 124 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 125 |
+
</sch:rule>
|
| 126 |
+
<sch:rule context="//f:Immunization/f:vaccinationProtocol/f:authority/f:identifier//f:assigner">
|
| 127 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 128 |
+
</sch:rule>
|
| 129 |
+
</sch:pattern>
|
| 130 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunization.xsd
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Immunization" type="Immunization">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Immunization">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">A unique identifier assigned to this immunization record.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="code">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Indicates the current status of the vaccination event.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Date vaccine administered or was to be administered.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="vaccineCode" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Vaccine that was administered or was to be administered.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="patient" minOccurs="1" maxOccurs="1" type="Reference">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The patient who either received or did not receive the immunization.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="wasNotGiven" minOccurs="1" maxOccurs="1" type="boolean">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Indicates if the vaccination was or was not given.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="primarySource" minOccurs="1" maxOccurs="1" type="boolean">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">An indication that the content of the record is based on information from the person who administered the vaccine. This reflects the context under which the data was originally recorded.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="reportOrigin" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The source of the data when the report of the immunization event is not based on information from the person who administered the vaccine.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="performer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Clinician who administered the vaccine.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="requester" minOccurs="0" maxOccurs="1" type="Reference">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">Clinician who ordered the vaccination.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="encounter" minOccurs="0" maxOccurs="1" type="Reference">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">The visit or admission or other contact between patient and health care provider the immunization was performed as part of.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="manufacturer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">Name of vaccine manufacturer.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="location" minOccurs="0" maxOccurs="1" type="Reference">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">The service delivery location where the vaccine administration occurred.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="lotNumber" minOccurs="0" maxOccurs="1" type="string">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">Lot number of the vaccine product.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="expirationDate" minOccurs="0" maxOccurs="1" type="date">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">Date vaccine batch expires.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="site" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">Body site where vaccine was administered.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="route" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">The path by which the vaccine product is taken into the body.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="doseQuantity" minOccurs="0" maxOccurs="1" type="Quantity">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">The quantity of vaccine product that was administered.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation">
|
| 143 |
+
<xs:annotation>
|
| 144 |
+
<xs:documentation xml:lang="en">Extra information about the immunization that is not conveyed by the other attributes.</xs:documentation>
|
| 145 |
+
</xs:annotation>
|
| 146 |
+
</xs:element>
|
| 147 |
+
<xs:element name="explanation" type="Immunization.Explanation" minOccurs="0" maxOccurs="1">
|
| 148 |
+
<xs:annotation>
|
| 149 |
+
<xs:documentation xml:lang="en">Reasons why a vaccine was or was not administered.</xs:documentation>
|
| 150 |
+
</xs:annotation>
|
| 151 |
+
</xs:element>
|
| 152 |
+
<xs:element name="reaction" type="Immunization.Reaction" minOccurs="0" maxOccurs="unbounded">
|
| 153 |
+
<xs:annotation>
|
| 154 |
+
<xs:documentation xml:lang="en">Categorical data indicating that an adverse event is associated in time to an immunization.</xs:documentation>
|
| 155 |
+
</xs:annotation>
|
| 156 |
+
</xs:element>
|
| 157 |
+
<xs:element name="vaccinationProtocol" type="Immunization.VaccinationProtocol" minOccurs="0" maxOccurs="unbounded">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">Contains information about the protocol(s) under which the vaccine was administered.</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
</xs:element>
|
| 162 |
+
</xs:sequence>
|
| 163 |
+
</xs:extension>
|
| 164 |
+
</xs:complexContent>
|
| 165 |
+
</xs:complexType>
|
| 166 |
+
<xs:complexType name="Immunization.Explanation">
|
| 167 |
+
<xs:annotation>
|
| 168 |
+
<xs:documentation xml:lang="en">Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.</xs:documentation>
|
| 169 |
+
</xs:annotation>
|
| 170 |
+
<xs:complexContent>
|
| 171 |
+
<xs:extension base="BackboneElement">
|
| 172 |
+
<xs:sequence>
|
| 173 |
+
<xs:element name="reason" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 174 |
+
<xs:annotation>
|
| 175 |
+
<xs:documentation xml:lang="en">Reasons why a vaccine was administered.</xs:documentation>
|
| 176 |
+
</xs:annotation>
|
| 177 |
+
</xs:element>
|
| 178 |
+
<xs:element name="reasonNotGiven" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 179 |
+
<xs:annotation>
|
| 180 |
+
<xs:documentation xml:lang="en">Reason why a vaccine was not administered.</xs:documentation>
|
| 181 |
+
</xs:annotation>
|
| 182 |
+
</xs:element>
|
| 183 |
+
</xs:sequence>
|
| 184 |
+
</xs:extension>
|
| 185 |
+
</xs:complexContent>
|
| 186 |
+
</xs:complexType>
|
| 187 |
+
<xs:complexType name="Immunization.Reaction">
|
| 188 |
+
<xs:annotation>
|
| 189 |
+
<xs:documentation xml:lang="en">Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.</xs:documentation>
|
| 190 |
+
</xs:annotation>
|
| 191 |
+
<xs:complexContent>
|
| 192 |
+
<xs:extension base="BackboneElement">
|
| 193 |
+
<xs:sequence>
|
| 194 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 195 |
+
<xs:annotation>
|
| 196 |
+
<xs:documentation xml:lang="en">Date of reaction to the immunization.</xs:documentation>
|
| 197 |
+
</xs:annotation>
|
| 198 |
+
</xs:element>
|
| 199 |
+
<xs:element name="detail" minOccurs="0" maxOccurs="1" type="Reference">
|
| 200 |
+
<xs:annotation>
|
| 201 |
+
<xs:documentation xml:lang="en">Details of the reaction.</xs:documentation>
|
| 202 |
+
</xs:annotation>
|
| 203 |
+
</xs:element>
|
| 204 |
+
<xs:element name="reported" minOccurs="0" maxOccurs="1" type="boolean">
|
| 205 |
+
<xs:annotation>
|
| 206 |
+
<xs:documentation xml:lang="en">Self-reported indicator.</xs:documentation>
|
| 207 |
+
</xs:annotation>
|
| 208 |
+
</xs:element>
|
| 209 |
+
</xs:sequence>
|
| 210 |
+
</xs:extension>
|
| 211 |
+
</xs:complexContent>
|
| 212 |
+
</xs:complexType>
|
| 213 |
+
<xs:complexType name="Immunization.VaccinationProtocol">
|
| 214 |
+
<xs:annotation>
|
| 215 |
+
<xs:documentation xml:lang="en">Describes the event of a patient being administered a vaccination or a record of a vaccination as reported by a patient, a clinician or another party and may include vaccine reaction information and what vaccination protocol was followed.</xs:documentation>
|
| 216 |
+
</xs:annotation>
|
| 217 |
+
<xs:complexContent>
|
| 218 |
+
<xs:extension base="BackboneElement">
|
| 219 |
+
<xs:sequence>
|
| 220 |
+
<xs:element name="doseSequence" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 221 |
+
<xs:annotation>
|
| 222 |
+
<xs:documentation xml:lang="en">Nominal position in a series.</xs:documentation>
|
| 223 |
+
</xs:annotation>
|
| 224 |
+
</xs:element>
|
| 225 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 226 |
+
<xs:annotation>
|
| 227 |
+
<xs:documentation xml:lang="en">Contains the description about the protocol under which the vaccine was administered.</xs:documentation>
|
| 228 |
+
</xs:annotation>
|
| 229 |
+
</xs:element>
|
| 230 |
+
<xs:element name="authority" minOccurs="0" maxOccurs="1" type="Reference">
|
| 231 |
+
<xs:annotation>
|
| 232 |
+
<xs:documentation xml:lang="en">Indicates the authority who published the protocol. E.g. ACIP.</xs:documentation>
|
| 233 |
+
</xs:annotation>
|
| 234 |
+
</xs:element>
|
| 235 |
+
<xs:element name="series" minOccurs="0" maxOccurs="1" type="string">
|
| 236 |
+
<xs:annotation>
|
| 237 |
+
<xs:documentation xml:lang="en">One possible path to achieve presumed immunity against a disease - within the context of an authority.</xs:documentation>
|
| 238 |
+
</xs:annotation>
|
| 239 |
+
</xs:element>
|
| 240 |
+
<xs:element name="seriesDoses" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 241 |
+
<xs:annotation>
|
| 242 |
+
<xs:documentation xml:lang="en">The recommended number of doses to achieve immunity.</xs:documentation>
|
| 243 |
+
</xs:annotation>
|
| 244 |
+
</xs:element>
|
| 245 |
+
<xs:element name="targetDisease" minOccurs="1" maxOccurs="unbounded" type="CodeableConcept">
|
| 246 |
+
<xs:annotation>
|
| 247 |
+
<xs:documentation xml:lang="en">The targeted disease.</xs:documentation>
|
| 248 |
+
</xs:annotation>
|
| 249 |
+
</xs:element>
|
| 250 |
+
<xs:element name="doseStatus" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 251 |
+
<xs:annotation>
|
| 252 |
+
<xs:documentation xml:lang="en">Indicates if the immunization event should "count" against the protocol.</xs:documentation>
|
| 253 |
+
</xs:annotation>
|
| 254 |
+
</xs:element>
|
| 255 |
+
<xs:element name="doseStatusReason" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 256 |
+
<xs:annotation>
|
| 257 |
+
<xs:documentation xml:lang="en">Provides an explanation as to why an immunization event should or should not count against the protocol.</xs:documentation>
|
| 258 |
+
</xs:annotation>
|
| 259 |
+
</xs:element>
|
| 260 |
+
</xs:sequence>
|
| 261 |
+
</xs:extension>
|
| 262 |
+
</xs:complexContent>
|
| 263 |
+
</xs:complexType>
|
| 264 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunizationrecommendation.sch
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource ImmunizationRecommendation
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>ImmunizationRecommendation</sch:title>
|
| 21 |
+
<sch:rule context="//f:ImmunizationRecommendation">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:patient">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:patient/f:identifier/f:period">
|
| 47 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:patient/f:identifier/f:assigner">
|
| 50 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:protocol/f:authority">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:protocol/f:authority/f:identifier/f:period">
|
| 56 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:protocol/f:authority/f:identifier//f:assigner">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingImmunization">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingImmunization/f:identifier/f:period">
|
| 65 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingImmunization/f:identifier/f:assigner">
|
| 68 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingPatientInformation">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingPatientInformation/f:identifier/f:period">
|
| 74 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:ImmunizationRecommendation/f:recommendation/f:supportingPatientInformation/f:identifier/f:assigner">
|
| 77 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
</sch:pattern>
|
| 80 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/immunizationrecommendation.xsd
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="ImmunizationRecommendation" type="ImmunizationRecommendation">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="ImmunizationRecommendation">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">A unique identifier assigned to this particular recommendation record.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="patient" minOccurs="1" maxOccurs="1" type="Reference">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">The patient for whom the recommendations are for.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="recommendation" type="ImmunizationRecommendation.Recommendation" minOccurs="1" maxOccurs="unbounded">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Vaccine administration recommendations.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
</xs:sequence>
|
| 68 |
+
</xs:extension>
|
| 69 |
+
</xs:complexContent>
|
| 70 |
+
</xs:complexType>
|
| 71 |
+
<xs:complexType name="ImmunizationRecommendation.Recommendation">
|
| 72 |
+
<xs:annotation>
|
| 73 |
+
<xs:documentation xml:lang="en">A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.</xs:documentation>
|
| 74 |
+
</xs:annotation>
|
| 75 |
+
<xs:complexContent>
|
| 76 |
+
<xs:extension base="BackboneElement">
|
| 77 |
+
<xs:sequence>
|
| 78 |
+
<xs:element name="date" minOccurs="1" maxOccurs="1" type="dateTime">
|
| 79 |
+
<xs:annotation>
|
| 80 |
+
<xs:documentation xml:lang="en">The date the immunization recommendation was created.</xs:documentation>
|
| 81 |
+
</xs:annotation>
|
| 82 |
+
</xs:element>
|
| 83 |
+
<xs:element name="vaccineCode" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 84 |
+
<xs:annotation>
|
| 85 |
+
<xs:documentation xml:lang="en">Vaccine that pertains to the recommendation.</xs:documentation>
|
| 86 |
+
</xs:annotation>
|
| 87 |
+
</xs:element>
|
| 88 |
+
<xs:element name="doseNumber" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 89 |
+
<xs:annotation>
|
| 90 |
+
<xs:documentation xml:lang="en">This indicates the next recommended dose number (e.g. dose 2 is the next recommended dose).</xs:documentation>
|
| 91 |
+
</xs:annotation>
|
| 92 |
+
</xs:element>
|
| 93 |
+
<xs:element name="forecastStatus" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 94 |
+
<xs:annotation>
|
| 95 |
+
<xs:documentation xml:lang="en">Vaccine administration status.</xs:documentation>
|
| 96 |
+
</xs:annotation>
|
| 97 |
+
</xs:element>
|
| 98 |
+
<xs:element name="dateCriterion" type="ImmunizationRecommendation.DateCriterion" minOccurs="0" maxOccurs="unbounded">
|
| 99 |
+
<xs:annotation>
|
| 100 |
+
<xs:documentation xml:lang="en">Vaccine date recommendations. For example, earliest date to administer, latest date to administer, etc.</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
</xs:element>
|
| 103 |
+
<xs:element name="protocol" type="ImmunizationRecommendation.Protocol" minOccurs="0" maxOccurs="1">
|
| 104 |
+
<xs:annotation>
|
| 105 |
+
<xs:documentation xml:lang="en">Contains information about the protocol under which the vaccine was administered.</xs:documentation>
|
| 106 |
+
</xs:annotation>
|
| 107 |
+
</xs:element>
|
| 108 |
+
<xs:element name="supportingImmunization" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 109 |
+
<xs:annotation>
|
| 110 |
+
<xs:documentation xml:lang="en">Immunization event history that supports the status and recommendation.</xs:documentation>
|
| 111 |
+
</xs:annotation>
|
| 112 |
+
</xs:element>
|
| 113 |
+
<xs:element name="supportingPatientInformation" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 114 |
+
<xs:annotation>
|
| 115 |
+
<xs:documentation xml:lang="en">Patient Information that supports the status and recommendation. This includes patient observations, adverse reactions and allergy/intolerance information.</xs:documentation>
|
| 116 |
+
</xs:annotation>
|
| 117 |
+
</xs:element>
|
| 118 |
+
</xs:sequence>
|
| 119 |
+
</xs:extension>
|
| 120 |
+
</xs:complexContent>
|
| 121 |
+
</xs:complexType>
|
| 122 |
+
<xs:complexType name="ImmunizationRecommendation.DateCriterion">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
<xs:complexContent>
|
| 127 |
+
<xs:extension base="BackboneElement">
|
| 128 |
+
<xs:sequence>
|
| 129 |
+
<xs:element name="code" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 130 |
+
<xs:annotation>
|
| 131 |
+
<xs:documentation xml:lang="en">Date classification of recommendation. For example, earliest date to give, latest date to give, etc.</xs:documentation>
|
| 132 |
+
</xs:annotation>
|
| 133 |
+
</xs:element>
|
| 134 |
+
<xs:element name="value" minOccurs="1" maxOccurs="1" type="dateTime">
|
| 135 |
+
<xs:annotation>
|
| 136 |
+
<xs:documentation xml:lang="en">The date whose meaning is specified by dateCriterion.code.</xs:documentation>
|
| 137 |
+
</xs:annotation>
|
| 138 |
+
</xs:element>
|
| 139 |
+
</xs:sequence>
|
| 140 |
+
</xs:extension>
|
| 141 |
+
</xs:complexContent>
|
| 142 |
+
</xs:complexType>
|
| 143 |
+
<xs:complexType name="ImmunizationRecommendation.Protocol">
|
| 144 |
+
<xs:annotation>
|
| 145 |
+
<xs:documentation xml:lang="en">A patient's point-in-time immunization and recommendation (i.e. forecasting a patient's immunization eligibility according to a published schedule) with optional supporting justification.</xs:documentation>
|
| 146 |
+
</xs:annotation>
|
| 147 |
+
<xs:complexContent>
|
| 148 |
+
<xs:extension base="BackboneElement">
|
| 149 |
+
<xs:sequence>
|
| 150 |
+
<xs:element name="doseSequence" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 151 |
+
<xs:annotation>
|
| 152 |
+
<xs:documentation xml:lang="en">Indicates the nominal position in a series of the next dose. This is the recommended dose number as per a specified protocol.</xs:documentation>
|
| 153 |
+
</xs:annotation>
|
| 154 |
+
</xs:element>
|
| 155 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 156 |
+
<xs:annotation>
|
| 157 |
+
<xs:documentation xml:lang="en">Contains the description about the protocol under which the vaccine was administered.</xs:documentation>
|
| 158 |
+
</xs:annotation>
|
| 159 |
+
</xs:element>
|
| 160 |
+
<xs:element name="authority" minOccurs="0" maxOccurs="1" type="Reference">
|
| 161 |
+
<xs:annotation>
|
| 162 |
+
<xs:documentation xml:lang="en">Indicates the authority who published the protocol. For example, ACIP.</xs:documentation>
|
| 163 |
+
</xs:annotation>
|
| 164 |
+
</xs:element>
|
| 165 |
+
<xs:element name="series" minOccurs="0" maxOccurs="1" type="string">
|
| 166 |
+
<xs:annotation>
|
| 167 |
+
<xs:documentation xml:lang="en">One possible path to achieve presumed immunity against a disease - within the context of an authority.</xs:documentation>
|
| 168 |
+
</xs:annotation>
|
| 169 |
+
</xs:element>
|
| 170 |
+
</xs:sequence>
|
| 171 |
+
</xs:extension>
|
| 172 |
+
</xs:complexContent>
|
| 173 |
+
</xs:complexType>
|
| 174 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/implementationguide.sch
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource ImplementationGuide
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>ImplementationGuide</sch:title>
|
| 21 |
+
<sch:rule context="//f:ImplementationGuide">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:ImplementationGuide/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:ImplementationGuide/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:ImplementationGuide/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:ImplementationGuide/f:contact/f:telecom">
|
| 38 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:ImplementationGuide/f:contact/f:telecom/f:period">
|
| 41 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:ImplementationGuide/f:useContext/f:valueQuantity">
|
| 44 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:ImplementationGuide/f:useContext/f:valueRange">
|
| 47 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:ImplementationGuide/f:useContext/f:valueRange/f:low">
|
| 50 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:ImplementationGuide/f:useContext/f:valueRange/f:high">
|
| 53 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:sourceReference">
|
| 56 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:sourceReference/f:identifier/f:period">
|
| 59 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:sourceReference/f:identifier/f:assigner">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:exampleFor">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:exampleFor/f:identifier/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:ImplementationGuide/f:package/f:resource/f:exampleFor/f:identifier/f:assigner">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:ImplementationGuide/f:global/f:profile">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:ImplementationGuide/f:global/f:profile/f:identifier/f:period">
|
| 77 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:ImplementationGuide/f:global/f:profile/f:identifier/f:assigner">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
</sch:pattern>
|
| 83 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/implementationguide.xsd
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="ImplementationGuide" type="ImplementationGuide">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="ImplementationGuide">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="url" minOccurs="1" maxOccurs="1" type="uri">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">An absolute URL that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this implementation guide is (or will be) published. The URL SHOULD include the major version of the implementation guide. For more information see [Technical and Business Versions](resource.html#versions).</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="version" minOccurs="0" maxOccurs="1" type="string">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="name" minOccurs="1" maxOccurs="1" type="string">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="PublicationStatus">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">The status of this implementation guide. Enables tracking the life-cycle of the content.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="experimental" minOccurs="0" maxOccurs="1" type="boolean">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">A flag to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="publisher" minOccurs="0" maxOccurs="1" type="string">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The name of the individual or organization that published the implementation guide.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="contact" minOccurs="0" maxOccurs="unbounded" type="ContactDetail">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">Contact details to assist a user in finding and communicating with the publisher.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The date (and optionally time) when the implementation guide was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="markdown">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">A free text natural language description of the implementation guide from the consumer's perspective.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="useContext" minOccurs="0" maxOccurs="unbounded" type="UsageContext">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="jurisdiction" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">A jurisdiction in which the implementation guide is intended to be used.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="copyright" minOccurs="0" maxOccurs="1" type="markdown">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="fhirVersion" minOccurs="0" maxOccurs="1" type="id">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">The version of the FHIR specification on which this ImplementationGuide is based - this is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 1.8.0 for this version.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="dependency" type="ImplementationGuide.Dependency" minOccurs="0" maxOccurs="unbounded">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="package" type="ImplementationGuide.Package" minOccurs="0" maxOccurs="unbounded">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">A logical group of resources. Logical groups can be used when building pages.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="global" type="ImplementationGuide.Global" minOccurs="0" maxOccurs="unbounded">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">A set of profiles that all resources covered by this implementation guide must conform to.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="binary" minOccurs="0" maxOccurs="unbounded" type="uri">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">A binary file that is included in the implementation guide when it is published.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="page" type="ImplementationGuide.Page" minOccurs="0" maxOccurs="1">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">A page / section in the implementation guide. The root page is the implementation guide home page.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
</xs:sequence>
|
| 143 |
+
</xs:extension>
|
| 144 |
+
</xs:complexContent>
|
| 145 |
+
</xs:complexType>
|
| 146 |
+
<xs:complexType name="ImplementationGuide.Dependency">
|
| 147 |
+
<xs:annotation>
|
| 148 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 149 |
+
</xs:annotation>
|
| 150 |
+
<xs:complexContent>
|
| 151 |
+
<xs:extension base="BackboneElement">
|
| 152 |
+
<xs:sequence>
|
| 153 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="GuideDependencyType">
|
| 154 |
+
<xs:annotation>
|
| 155 |
+
<xs:documentation xml:lang="en">How the dependency is represented when the guide is published.</xs:documentation>
|
| 156 |
+
</xs:annotation>
|
| 157 |
+
</xs:element>
|
| 158 |
+
<xs:element name="uri" minOccurs="1" maxOccurs="1" type="uri">
|
| 159 |
+
<xs:annotation>
|
| 160 |
+
<xs:documentation xml:lang="en">Where the dependency is located.</xs:documentation>
|
| 161 |
+
</xs:annotation>
|
| 162 |
+
</xs:element>
|
| 163 |
+
</xs:sequence>
|
| 164 |
+
</xs:extension>
|
| 165 |
+
</xs:complexContent>
|
| 166 |
+
</xs:complexType>
|
| 167 |
+
<xs:complexType name="ImplementationGuide.Package">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
<xs:complexContent>
|
| 172 |
+
<xs:extension base="BackboneElement">
|
| 173 |
+
<xs:sequence>
|
| 174 |
+
<xs:element name="name" minOccurs="1" maxOccurs="1" type="string">
|
| 175 |
+
<xs:annotation>
|
| 176 |
+
<xs:documentation xml:lang="en">The name for the group, as used in page.package.</xs:documentation>
|
| 177 |
+
</xs:annotation>
|
| 178 |
+
</xs:element>
|
| 179 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation xml:lang="en">Human readable text describing the package.</xs:documentation>
|
| 182 |
+
</xs:annotation>
|
| 183 |
+
</xs:element>
|
| 184 |
+
<xs:element name="resource" type="ImplementationGuide.Resource" minOccurs="1" maxOccurs="unbounded">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
</xs:element>
|
| 189 |
+
</xs:sequence>
|
| 190 |
+
</xs:extension>
|
| 191 |
+
</xs:complexContent>
|
| 192 |
+
</xs:complexType>
|
| 193 |
+
<xs:complexType name="ImplementationGuide.Resource">
|
| 194 |
+
<xs:annotation>
|
| 195 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 196 |
+
</xs:annotation>
|
| 197 |
+
<xs:complexContent>
|
| 198 |
+
<xs:extension base="BackboneElement">
|
| 199 |
+
<xs:sequence>
|
| 200 |
+
<xs:element name="example" minOccurs="1" maxOccurs="1" type="boolean">
|
| 201 |
+
<xs:annotation>
|
| 202 |
+
<xs:documentation xml:lang="en">Whether a resource is included in the guide as part of the rules defined by the guide, or just as an example of a resource that conforms to the rules and/or help implementers understand the intent of the guide.</xs:documentation>
|
| 203 |
+
</xs:annotation>
|
| 204 |
+
</xs:element>
|
| 205 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 206 |
+
<xs:annotation>
|
| 207 |
+
<xs:documentation xml:lang="en">A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).</xs:documentation>
|
| 208 |
+
</xs:annotation>
|
| 209 |
+
</xs:element>
|
| 210 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 211 |
+
<xs:annotation>
|
| 212 |
+
<xs:documentation xml:lang="en">A description of the reason that a resource has been included in the implementation guide.</xs:documentation>
|
| 213 |
+
</xs:annotation>
|
| 214 |
+
</xs:element>
|
| 215 |
+
<xs:element name="acronym" minOccurs="0" maxOccurs="1" type="string">
|
| 216 |
+
<xs:annotation>
|
| 217 |
+
<xs:documentation xml:lang="en">A short code that may be used to identify the resource throughout the implementation guide.</xs:documentation>
|
| 218 |
+
</xs:annotation>
|
| 219 |
+
</xs:element>
|
| 220 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 221 |
+
<xs:annotation>
|
| 222 |
+
<xs:documentation xml:lang="en">Where this resource is found.</xs:documentation>
|
| 223 |
+
</xs:annotation>
|
| 224 |
+
<xs:element name="sourceUri" type="uri"/>
|
| 225 |
+
<xs:element name="sourceReference" type="Reference"/>
|
| 226 |
+
</xs:choice>
|
| 227 |
+
<xs:element name="exampleFor" minOccurs="0" maxOccurs="1" type="Reference">
|
| 228 |
+
<xs:annotation>
|
| 229 |
+
<xs:documentation xml:lang="en">Another resource that this resource is an example for. This is mostly used for resources that are included as examples of StructureDefinitions.</xs:documentation>
|
| 230 |
+
</xs:annotation>
|
| 231 |
+
</xs:element>
|
| 232 |
+
</xs:sequence>
|
| 233 |
+
</xs:extension>
|
| 234 |
+
</xs:complexContent>
|
| 235 |
+
</xs:complexType>
|
| 236 |
+
<xs:complexType name="ImplementationGuide.Global">
|
| 237 |
+
<xs:annotation>
|
| 238 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 239 |
+
</xs:annotation>
|
| 240 |
+
<xs:complexContent>
|
| 241 |
+
<xs:extension base="BackboneElement">
|
| 242 |
+
<xs:sequence>
|
| 243 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="code">
|
| 244 |
+
<xs:annotation>
|
| 245 |
+
<xs:documentation xml:lang="en">The type of resource that all instances must conform to.</xs:documentation>
|
| 246 |
+
</xs:annotation>
|
| 247 |
+
</xs:element>
|
| 248 |
+
<xs:element name="profile" minOccurs="1" maxOccurs="1" type="Reference">
|
| 249 |
+
<xs:annotation>
|
| 250 |
+
<xs:documentation xml:lang="en">A reference to the profile that all instances must conform to.</xs:documentation>
|
| 251 |
+
</xs:annotation>
|
| 252 |
+
</xs:element>
|
| 253 |
+
</xs:sequence>
|
| 254 |
+
</xs:extension>
|
| 255 |
+
</xs:complexContent>
|
| 256 |
+
</xs:complexType>
|
| 257 |
+
<xs:complexType name="ImplementationGuide.Page">
|
| 258 |
+
<xs:annotation>
|
| 259 |
+
<xs:documentation xml:lang="en">A set of rules or how FHIR is used to solve a particular problem. This resource is used to gather all the parts of an implementation guide into a logical whole, and to publish a computable definition of all the parts.</xs:documentation>
|
| 260 |
+
</xs:annotation>
|
| 261 |
+
<xs:complexContent>
|
| 262 |
+
<xs:extension base="BackboneElement">
|
| 263 |
+
<xs:sequence>
|
| 264 |
+
<xs:element name="source" minOccurs="1" maxOccurs="1" type="uri">
|
| 265 |
+
<xs:annotation>
|
| 266 |
+
<xs:documentation xml:lang="en">The source address for the page.</xs:documentation>
|
| 267 |
+
</xs:annotation>
|
| 268 |
+
</xs:element>
|
| 269 |
+
<xs:element name="title" minOccurs="1" maxOccurs="1" type="string">
|
| 270 |
+
<xs:annotation>
|
| 271 |
+
<xs:documentation xml:lang="en">A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.</xs:documentation>
|
| 272 |
+
</xs:annotation>
|
| 273 |
+
</xs:element>
|
| 274 |
+
<xs:element name="kind" minOccurs="1" maxOccurs="1" type="GuidePageKind">
|
| 275 |
+
<xs:annotation>
|
| 276 |
+
<xs:documentation xml:lang="en">The kind of page that this is. Some pages are autogenerated (list, example), and other kinds are of interest so that tools can navigate the user to the page of interest.</xs:documentation>
|
| 277 |
+
</xs:annotation>
|
| 278 |
+
</xs:element>
|
| 279 |
+
<xs:element name="type" minOccurs="0" maxOccurs="unbounded" type="code">
|
| 280 |
+
<xs:annotation>
|
| 281 |
+
<xs:documentation xml:lang="en">For constructed pages, what kind of resources to include in the list.</xs:documentation>
|
| 282 |
+
</xs:annotation>
|
| 283 |
+
</xs:element>
|
| 284 |
+
<xs:element name="package" minOccurs="0" maxOccurs="unbounded" type="string">
|
| 285 |
+
<xs:annotation>
|
| 286 |
+
<xs:documentation xml:lang="en">For constructed pages, a list of packages to include in the page (or else empty for everything).</xs:documentation>
|
| 287 |
+
</xs:annotation>
|
| 288 |
+
</xs:element>
|
| 289 |
+
<xs:element name="format" minOccurs="0" maxOccurs="1" type="code">
|
| 290 |
+
<xs:annotation>
|
| 291 |
+
<xs:documentation xml:lang="en">The format of the page.</xs:documentation>
|
| 292 |
+
</xs:annotation>
|
| 293 |
+
</xs:element>
|
| 294 |
+
<xs:element name="page" type="ImplementationGuide.Page" minOccurs="0" maxOccurs="unbounded">
|
| 295 |
+
<xs:annotation>
|
| 296 |
+
<xs:documentation xml:lang="en">Nested Pages/Sections under this page.</xs:documentation>
|
| 297 |
+
</xs:annotation>
|
| 298 |
+
</xs:element>
|
| 299 |
+
</xs:sequence>
|
| 300 |
+
</xs:extension>
|
| 301 |
+
</xs:complexContent>
|
| 302 |
+
</xs:complexType>
|
| 303 |
+
<xs:simpleType name="GuideDependencyType-list">
|
| 304 |
+
<xs:restriction base="code-primitive">
|
| 305 |
+
<xs:enumeration value="reference">
|
| 306 |
+
<xs:annotation>
|
| 307 |
+
<xs:documentation xml:lang="en">Reference</xs:documentation>
|
| 308 |
+
</xs:annotation>
|
| 309 |
+
</xs:enumeration>
|
| 310 |
+
<xs:enumeration value="inclusion">
|
| 311 |
+
<xs:annotation>
|
| 312 |
+
<xs:documentation xml:lang="en">Inclusion</xs:documentation>
|
| 313 |
+
</xs:annotation>
|
| 314 |
+
</xs:enumeration>
|
| 315 |
+
</xs:restriction>
|
| 316 |
+
</xs:simpleType>
|
| 317 |
+
<xs:complexType name="GuideDependencyType">
|
| 318 |
+
<xs:annotation>
|
| 319 |
+
<xs:documentation xml:lang="en">How a dependency is represented when the guide is published.</xs:documentation>
|
| 320 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 321 |
+
</xs:annotation>
|
| 322 |
+
<xs:complexContent>
|
| 323 |
+
<xs:extension base="Element">
|
| 324 |
+
<xs:attribute name="value" type="GuideDependencyType-list" use="optional"/>
|
| 325 |
+
</xs:extension>
|
| 326 |
+
</xs:complexContent>
|
| 327 |
+
</xs:complexType>
|
| 328 |
+
<xs:simpleType name="GuidePageKind-list">
|
| 329 |
+
<xs:restriction base="code-primitive">
|
| 330 |
+
<xs:enumeration value="page">
|
| 331 |
+
<xs:annotation>
|
| 332 |
+
<xs:documentation xml:lang="en">Page</xs:documentation>
|
| 333 |
+
</xs:annotation>
|
| 334 |
+
</xs:enumeration>
|
| 335 |
+
<xs:enumeration value="example">
|
| 336 |
+
<xs:annotation>
|
| 337 |
+
<xs:documentation xml:lang="en">Example</xs:documentation>
|
| 338 |
+
</xs:annotation>
|
| 339 |
+
</xs:enumeration>
|
| 340 |
+
<xs:enumeration value="list">
|
| 341 |
+
<xs:annotation>
|
| 342 |
+
<xs:documentation xml:lang="en">List</xs:documentation>
|
| 343 |
+
</xs:annotation>
|
| 344 |
+
</xs:enumeration>
|
| 345 |
+
<xs:enumeration value="include">
|
| 346 |
+
<xs:annotation>
|
| 347 |
+
<xs:documentation xml:lang="en">Include</xs:documentation>
|
| 348 |
+
</xs:annotation>
|
| 349 |
+
</xs:enumeration>
|
| 350 |
+
<xs:enumeration value="directory">
|
| 351 |
+
<xs:annotation>
|
| 352 |
+
<xs:documentation xml:lang="en">Directory</xs:documentation>
|
| 353 |
+
</xs:annotation>
|
| 354 |
+
</xs:enumeration>
|
| 355 |
+
<xs:enumeration value="dictionary">
|
| 356 |
+
<xs:annotation>
|
| 357 |
+
<xs:documentation xml:lang="en">Dictionary</xs:documentation>
|
| 358 |
+
</xs:annotation>
|
| 359 |
+
</xs:enumeration>
|
| 360 |
+
<xs:enumeration value="toc">
|
| 361 |
+
<xs:annotation>
|
| 362 |
+
<xs:documentation xml:lang="en">Table Of Contents</xs:documentation>
|
| 363 |
+
</xs:annotation>
|
| 364 |
+
</xs:enumeration>
|
| 365 |
+
<xs:enumeration value="resource">
|
| 366 |
+
<xs:annotation>
|
| 367 |
+
<xs:documentation xml:lang="en">Resource</xs:documentation>
|
| 368 |
+
</xs:annotation>
|
| 369 |
+
</xs:enumeration>
|
| 370 |
+
</xs:restriction>
|
| 371 |
+
</xs:simpleType>
|
| 372 |
+
<xs:complexType name="GuidePageKind">
|
| 373 |
+
<xs:annotation>
|
| 374 |
+
<xs:documentation xml:lang="en">The kind of an included page.</xs:documentation>
|
| 375 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 376 |
+
</xs:annotation>
|
| 377 |
+
<xs:complexContent>
|
| 378 |
+
<xs:extension base="Element">
|
| 379 |
+
<xs:attribute name="value" type="GuidePageKind-list" use="optional"/>
|
| 380 |
+
</xs:extension>
|
| 381 |
+
</xs:complexContent>
|
| 382 |
+
</xs:complexType>
|
| 383 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/ldlcholesterol.sch
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile Observation
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>f:Observation</sch:title>
|
| 14 |
+
<sch:rule context="f:Observation">
|
| 15 |
+
<sch:assert test="count(f:extension) <= 1">extension: maximum cardinality of 'extension' is 1</sch:assert>
|
| 16 |
+
<sch:assert test="count(f:referenceRange) >= 1">referenceRange: minimum cardinality of 'referenceRange' is 1</sch:assert>
|
| 17 |
+
<sch:assert test="count(f:referenceRange) <= 1">referenceRange: maximum cardinality of 'referenceRange' is 1</sch:assert>
|
| 18 |
+
<sch:assert test="count(f:related) <= 0">related: maximum cardinality of 'related' is 0</sch:assert>
|
| 19 |
+
</sch:rule>
|
| 20 |
+
</sch:pattern>
|
| 21 |
+
<sch:pattern>
|
| 22 |
+
<sch:title>Observation</sch:title>
|
| 23 |
+
<sch:rule context="f:Observation">
|
| 24 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 25 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 26 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 27 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 28 |
+
<sch:assert test="not(exists(f: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)">If code is the same as a component code then the value element associated with the code SHALL NOT be present (inherited)</sch:assert>
|
| 29 |
+
<sch:assert test="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))">dataAbsentReason SHALL only be present if Observation.value[x] is not present (inherited)</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
</sch:pattern>
|
| 32 |
+
<sch:pattern>
|
| 33 |
+
<sch:title>Observation.extension</sch:title>
|
| 34 |
+
<sch:rule context="f:Observation/f:extension">
|
| 35 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 36 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">Must have either extensions or value[x], not both (inherited)</sch:assert>
|
| 37 |
+
</sch:rule>
|
| 38 |
+
</sch:pattern>
|
| 39 |
+
<sch:pattern>
|
| 40 |
+
<sch:title>f:Observation/f:referenceRange</sch:title>
|
| 41 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 42 |
+
<sch:assert test="count(f:low) <= 0">low: maximum cardinality of 'low' is 0</sch:assert>
|
| 43 |
+
<sch:assert test="count(f:high) >= 1">high: minimum cardinality of 'high' is 1</sch:assert>
|
| 44 |
+
<sch:assert test="count(f:meaning) <= 0">meaning: maximum cardinality of 'meaning' is 0</sch:assert>
|
| 45 |
+
<sch:assert test="count(f:age) <= 0">age: maximum cardinality of 'age' is 0</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
</sch:pattern>
|
| 48 |
+
<sch:pattern>
|
| 49 |
+
<sch:title>Observation.referenceRange</sch:title>
|
| 50 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 51 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 52 |
+
<sch:assert test="(exists(f:low) or exists(f:high)or exists(f:text))">Must have at least a low or a high or text (inherited)</sch:assert>
|
| 53 |
+
</sch:rule>
|
| 54 |
+
</sch:pattern>
|
| 55 |
+
<sch:pattern>
|
| 56 |
+
<sch:title>Observation.referenceRange.high</sch:title>
|
| 57 |
+
<sch:rule context="f:Observation/f:referenceRange/f:high">
|
| 58 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 59 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">If a code for the unit is present, the system SHALL also be present (inherited)</sch:assert>
|
| 60 |
+
<sch:assert test="not(exists(f:comparator))">The comparator is not used on a SimpleQuantity (inherited)</sch:assert>
|
| 61 |
+
</sch:rule>
|
| 62 |
+
</sch:pattern>
|
| 63 |
+
<sch:pattern>
|
| 64 |
+
<sch:title>Observation.related</sch:title>
|
| 65 |
+
<sch:rule context="f:Observation/f:related">
|
| 66 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 67 |
+
</sch:rule>
|
| 68 |
+
</sch:pattern>
|
| 69 |
+
<sch:pattern>
|
| 70 |
+
<sch:title>Observation.component</sch:title>
|
| 71 |
+
<sch:rule context="f:Observation/f:component">
|
| 72 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 73 |
+
</sch:rule>
|
| 74 |
+
</sch:pattern>
|
| 75 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/library.sch
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Library
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Library</sch:title>
|
| 21 |
+
<sch:rule context="//f:Library">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Library/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Library/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Library/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Library/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Library/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Library/f:effectivePeriod">
|
| 44 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Library/f:useContext/f:valueQuantity">
|
| 47 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Library/f:useContext/f:valueRange">
|
| 50 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Library/f:useContext/f:valueRange/f:low">
|
| 53 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Library/f:useContext/f:valueRange/f:high">
|
| 56 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Library/f:contributor/f:contact/f:telecom">
|
| 59 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Library/f:contributor/f:contact/f:telecom/f:period">
|
| 62 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Library/f:contact/f:telecom">
|
| 65 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Library/f:contact/f:telecom/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Library/f:relatedArtifact/f:document">
|
| 71 |
+
<sch:assert test="not(exists(f:data)) or exists(f:contentType)">att-1: It the Attachment has data, it SHALL have a contentType</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:Library/f:relatedArtifact/f:resource">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:Library/f:relatedArtifact/f:resource/f:identifier/f:period">
|
| 77 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:Library/f:relatedArtifact/f:resource/f:identifier/f:assigner">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:Library/f:parameter/f:profile">
|
| 83 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:Library/f:parameter/f:profile/f:identifier/f:period">
|
| 86 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:Library/f:parameter/f:profile/f:identifier/f:assigner">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
<sch:rule context="//f:Library/f:dataRequirement/f:codeFilter/f:valueSetReference">
|
| 92 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 93 |
+
</sch:rule>
|
| 94 |
+
<sch:rule context="//f:Library/f:dataRequirement/f:codeFilter/f:valueSetReference/f:identifier/f:period">
|
| 95 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 96 |
+
</sch:rule>
|
| 97 |
+
<sch:rule context="//f:Library/f:dataRequirement/f:codeFilter/f:valueSetReference/f:identifier/f:assigner">
|
| 98 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 99 |
+
</sch:rule>
|
| 100 |
+
<sch:rule context="//f:Library/f:dataRequirement/f:dateFilter/f:valuePeriod">
|
| 101 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 102 |
+
</sch:rule>
|
| 103 |
+
<sch:rule context="//f:Library/f:dataRequirement/f:dateFilter/f:valueDuration">
|
| 104 |
+
<sch:assert test="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')">drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.</sch:assert>
|
| 105 |
+
</sch:rule>
|
| 106 |
+
<sch:rule context="//f:Library/f:content">
|
| 107 |
+
<sch:assert test="not(exists(f:data)) or exists(f:contentType)">att-1: It the Attachment has data, it SHALL have a contentType</sch:assert>
|
| 108 |
+
</sch:rule>
|
| 109 |
+
</sch:pattern>
|
| 110 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/library.xsd
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Library" type="Library">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose exist knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Library">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose exist knowledge assets such as logic libraries and information model descriptions, as well as to describe a collection of knowledge assets.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="url" minOccurs="0" maxOccurs="1" type="uri">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">An absolute URL that is used to identify this library when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this library is (or will be) published. The URL SHOULD include the major version of the library. For more information see [Technical and Business Versions](resource.html#versions).</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">A formal identifier that is used to identify this library when it is represented in other formats, or referenced in a specification, model, design or an instance. e.g. CMS or NQF identifiers for a measure artifact. Note that at least one identifier is required for non-experimental active artifacts.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="version" minOccurs="0" maxOccurs="1" type="string">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">The identifier that is used to identify this version of the library when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the library author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">A natural language name identifying the library. This name should be usable as an identifier for the module by machine processing applications such as code generation.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="title" minOccurs="0" maxOccurs="1" type="string">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">A short, descriptive, user-friendly title for the library.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="CodeableConcept">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Identifies the type of library such as a Logic Library, Model Definition, Asset Collection, or Module Definition.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="PublicationStatus">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The status of this library. Enables tracking the life-cycle of the content.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="experimental" minOccurs="0" maxOccurs="1" type="boolean">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">A flag to indicate that this library is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">The date (and optionally time) when the library was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the library changes.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="markdown">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">A free text natural language description of the library from the consumer's perspective.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="purpose" minOccurs="0" maxOccurs="1" type="markdown">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">Explains why this library is needed and why it has been designed as it has.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="usage" minOccurs="0" maxOccurs="1" type="string">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">A detailed description of how the library is used from a clinical perspective.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="approvalDate" minOccurs="0" maxOccurs="1" type="date">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="lastReviewDate" minOccurs="0" maxOccurs="1" type="date">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="effectivePeriod" minOccurs="0" maxOccurs="1" type="Period">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">The period during which the library content was or is planned to be effective.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="useContext" minOccurs="0" maxOccurs="unbounded" type="UsageContext">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="jurisdiction" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">A jurisdiction in which the library is intended to be used.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="topic" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">Clinical topics related to the content of the library.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
<xs:element name="contributor" minOccurs="0" maxOccurs="unbounded" type="Contributor">
|
| 143 |
+
<xs:annotation>
|
| 144 |
+
<xs:documentation xml:lang="en">A contributor to the content of the library, including authors, editors, reviewers, and endorsers.</xs:documentation>
|
| 145 |
+
</xs:annotation>
|
| 146 |
+
</xs:element>
|
| 147 |
+
<xs:element name="publisher" minOccurs="0" maxOccurs="1" type="string">
|
| 148 |
+
<xs:annotation>
|
| 149 |
+
<xs:documentation xml:lang="en">The name of the individual or organization that published the library.</xs:documentation>
|
| 150 |
+
</xs:annotation>
|
| 151 |
+
</xs:element>
|
| 152 |
+
<xs:element name="contact" minOccurs="0" maxOccurs="unbounded" type="ContactDetail">
|
| 153 |
+
<xs:annotation>
|
| 154 |
+
<xs:documentation xml:lang="en">Contact details to assist a user in finding and communicating with the publisher.</xs:documentation>
|
| 155 |
+
</xs:annotation>
|
| 156 |
+
</xs:element>
|
| 157 |
+
<xs:element name="copyright" minOccurs="0" maxOccurs="1" type="markdown">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">A copyright statement relating to the library and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the library.</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
</xs:element>
|
| 162 |
+
<xs:element name="relatedArtifact" minOccurs="0" maxOccurs="unbounded" type="RelatedArtifact">
|
| 163 |
+
<xs:annotation>
|
| 164 |
+
<xs:documentation xml:lang="en">Related artifacts such as additional documentation, justification, or bibliographic references.</xs:documentation>
|
| 165 |
+
</xs:annotation>
|
| 166 |
+
</xs:element>
|
| 167 |
+
<xs:element name="parameter" minOccurs="0" maxOccurs="unbounded" type="ParameterDefinition">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">The parameter element defines parameters used by the library.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
</xs:element>
|
| 172 |
+
<xs:element name="dataRequirement" minOccurs="0" maxOccurs="unbounded" type="DataRequirement">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation xml:lang="en">Describes a set of data that must be provided in order to be able to successfully perform the computations defined by the library.</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
</xs:element>
|
| 177 |
+
<xs:element name="content" minOccurs="0" maxOccurs="unbounded" type="Attachment">
|
| 178 |
+
<xs:annotation>
|
| 179 |
+
<xs:documentation xml:lang="en">The content of the library as an Attachment. The content may be a reference to a url, or may be directly embedded as a base-64 string. Either way, the contentType of the attachment determines how to interpret the content.</xs:documentation>
|
| 180 |
+
</xs:annotation>
|
| 181 |
+
</xs:element>
|
| 182 |
+
</xs:sequence>
|
| 183 |
+
</xs:extension>
|
| 184 |
+
</xs:complexContent>
|
| 185 |
+
</xs:complexType>
|
| 186 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/linkage.sch
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Linkage
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Linkage</sch:title>
|
| 21 |
+
<sch:rule context="//f:Linkage">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Linkage/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Linkage/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Linkage/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Linkage/f:author">
|
| 38 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Linkage/f:author/f:identifier/f:period">
|
| 41 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Linkage/f:author/f:identifier/f:assigner">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Linkage/f:item/f:resource">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Linkage/f:item/f:resource/f:identifier/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Linkage/f:item/f:resource/f:identifier/f:assigner">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
</sch:pattern>
|
| 56 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/linkage.xsd
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Linkage" type="Linkage">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Identifies two or more records (resource instances) that are referring to the same real-world "occurrence".</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Linkage">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Identifies two or more records (resource instances) that are referring to the same real-world "occurrence".</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="author" minOccurs="0" maxOccurs="1" type="Reference">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Identifies the user or organization responsible for asserting the linkages and who establishes the context for evaluating the nature of each linkage.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="item" type="Linkage.Item" minOccurs="1" maxOccurs="unbounded">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Identifies one of the records that is considered to refer to the same real-world occurrence as well as how the items hould be evaluated within the collection of linked items.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
</xs:sequence>
|
| 63 |
+
</xs:extension>
|
| 64 |
+
</xs:complexContent>
|
| 65 |
+
</xs:complexType>
|
| 66 |
+
<xs:complexType name="Linkage.Item">
|
| 67 |
+
<xs:annotation>
|
| 68 |
+
<xs:documentation xml:lang="en">Identifies two or more records (resource instances) that are referring to the same real-world "occurrence".</xs:documentation>
|
| 69 |
+
</xs:annotation>
|
| 70 |
+
<xs:complexContent>
|
| 71 |
+
<xs:extension base="BackboneElement">
|
| 72 |
+
<xs:sequence>
|
| 73 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="LinkageType">
|
| 74 |
+
<xs:annotation>
|
| 75 |
+
<xs:documentation xml:lang="en">Distinguishes which item is "source of truth" (if any) and which items are no longer considered to be current representations.</xs:documentation>
|
| 76 |
+
</xs:annotation>
|
| 77 |
+
</xs:element>
|
| 78 |
+
<xs:element name="resource" minOccurs="1" maxOccurs="1" type="Reference">
|
| 79 |
+
<xs:annotation>
|
| 80 |
+
<xs:documentation xml:lang="en">The resource instance being linked as part of the group.</xs:documentation>
|
| 81 |
+
</xs:annotation>
|
| 82 |
+
</xs:element>
|
| 83 |
+
</xs:sequence>
|
| 84 |
+
</xs:extension>
|
| 85 |
+
</xs:complexContent>
|
| 86 |
+
</xs:complexType>
|
| 87 |
+
<xs:simpleType name="LinkageType-list">
|
| 88 |
+
<xs:restriction base="code-primitive">
|
| 89 |
+
<xs:enumeration value="source">
|
| 90 |
+
<xs:annotation>
|
| 91 |
+
<xs:documentation xml:lang="en">Source of truth</xs:documentation>
|
| 92 |
+
</xs:annotation>
|
| 93 |
+
</xs:enumeration>
|
| 94 |
+
<xs:enumeration value="alternate">
|
| 95 |
+
<xs:annotation>
|
| 96 |
+
<xs:documentation xml:lang="en">Alternate record</xs:documentation>
|
| 97 |
+
</xs:annotation>
|
| 98 |
+
</xs:enumeration>
|
| 99 |
+
<xs:enumeration value="historical">
|
| 100 |
+
<xs:annotation>
|
| 101 |
+
<xs:documentation xml:lang="en">Historical/obsolete record</xs:documentation>
|
| 102 |
+
</xs:annotation>
|
| 103 |
+
</xs:enumeration>
|
| 104 |
+
</xs:restriction>
|
| 105 |
+
</xs:simpleType>
|
| 106 |
+
<xs:complexType name="LinkageType">
|
| 107 |
+
<xs:annotation>
|
| 108 |
+
<xs:documentation xml:lang="en">Used to distinguish different roles a resource can play within a set of linked resources</xs:documentation>
|
| 109 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
<xs:complexContent>
|
| 112 |
+
<xs:extension base="Element">
|
| 113 |
+
<xs:attribute name="value" type="LinkageType-list" use="optional"/>
|
| 114 |
+
</xs:extension>
|
| 115 |
+
</xs:complexContent>
|
| 116 |
+
</xs:complexType>
|
| 117 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/lipidprofile.sch
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile DiagnosticReport
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>f:DiagnosticReport</sch:title>
|
| 14 |
+
<sch:rule context="f:DiagnosticReport">
|
| 15 |
+
<sch:assert test="count(f:codedDiagnosis) <= 0">codedDiagnosis: maximum cardinality of 'codedDiagnosis' is 0</sch:assert>
|
| 16 |
+
</sch:rule>
|
| 17 |
+
</sch:pattern>
|
| 18 |
+
<sch:pattern>
|
| 19 |
+
<sch:title>DiagnosticReport</sch:title>
|
| 20 |
+
<sch:rule context="f:DiagnosticReport">
|
| 21 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 23 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 25 |
+
</sch:rule>
|
| 26 |
+
</sch:pattern>
|
| 27 |
+
<sch:pattern>
|
| 28 |
+
<sch:title>DiagnosticReport.image</sch:title>
|
| 29 |
+
<sch:rule context="f:DiagnosticReport/f:image">
|
| 30 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 31 |
+
</sch:rule>
|
| 32 |
+
</sch:pattern>
|
| 33 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/list.sch
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource List
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>List</sch:title>
|
| 21 |
+
<sch:rule context="//f:List">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="(f:mode/@value = 'changes') or not(exists(f:entry/f:deleted))">lst-2: The deleted flag can only be used if the mode of the list is "changes"</sch:assert>
|
| 27 |
+
<sch:assert test="not(exists(f:emptyReason) and exists(f:entry))">lst-1: A list can only have an emptyReason if it is empty</sch:assert>
|
| 28 |
+
</sch:rule>
|
| 29 |
+
<sch:rule context="//f:List/f:text/h:div">
|
| 30 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 31 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 32 |
+
</sch:rule>
|
| 33 |
+
<sch:rule context="//f:List/f:extension">
|
| 34 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 35 |
+
</sch:rule>
|
| 36 |
+
<sch:rule context="//f:List/f:modifierExtension">
|
| 37 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 38 |
+
</sch:rule>
|
| 39 |
+
<sch:rule context="//f:List/f:identifier/f:period">
|
| 40 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 41 |
+
</sch:rule>
|
| 42 |
+
<sch:rule context="//f:List/f:identifier/f:assigner">
|
| 43 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 44 |
+
</sch:rule>
|
| 45 |
+
<sch:rule context="//f:List/f:subject">
|
| 46 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 47 |
+
</sch:rule>
|
| 48 |
+
<sch:rule context="//f:List/f:subject/f:identifier/f:period">
|
| 49 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 50 |
+
</sch:rule>
|
| 51 |
+
<sch:rule context="//f:List/f:subject/f:identifier/f:assigner">
|
| 52 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 53 |
+
</sch:rule>
|
| 54 |
+
<sch:rule context="//f:List/f:encounter">
|
| 55 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 56 |
+
</sch:rule>
|
| 57 |
+
<sch:rule context="//f:List/f:encounter/f:identifier/f:period">
|
| 58 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
<sch:rule context="//f:List/f:encounter/f:identifier/f:assigner">
|
| 61 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 62 |
+
</sch:rule>
|
| 63 |
+
<sch:rule context="//f:List/f:source">
|
| 64 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
<sch:rule context="//f:List/f:source/f:identifier/f:period">
|
| 67 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 68 |
+
</sch:rule>
|
| 69 |
+
<sch:rule context="//f:List/f:source/f:identifier/f:assigner">
|
| 70 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 71 |
+
</sch:rule>
|
| 72 |
+
<sch:rule context="//f:List/f:note/f:authorReference">
|
| 73 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 74 |
+
</sch:rule>
|
| 75 |
+
<sch:rule context="//f:List/f:note/f:authorReference/f:identifier/f:period">
|
| 76 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 77 |
+
</sch:rule>
|
| 78 |
+
<sch:rule context="//f:List/f:note/f:authorReference/f:identifier/f:assigner">
|
| 79 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 80 |
+
</sch:rule>
|
| 81 |
+
<sch:rule context="//f:List/f:entry/f:item">
|
| 82 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 83 |
+
</sch:rule>
|
| 84 |
+
<sch:rule context="//f:List/f:entry/f:item/f:identifier/f:period">
|
| 85 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 86 |
+
</sch:rule>
|
| 87 |
+
<sch:rule context="//f:List/f:entry/f:item/f:identifier/f:assigner">
|
| 88 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 89 |
+
</sch:rule>
|
| 90 |
+
</sch:pattern>
|
| 91 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/list.xsd
ADDED
|
@@ -0,0 +1,212 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="List" type="List">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A set of information summarized from a list of other resources.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="List">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A set of information summarized from a list of other resources.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Identifier for the List assigned for business purposes outside the context of FHIR.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="ListStatus">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Indicates the current state of this list.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="mode" minOccurs="1" maxOccurs="1" type="ListMode">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">How this list was prepared - whether it is a working list that is suitable for being maintained on an ongoing basis, or if it represents a snapshot of a list of items from another source, or whether it is a prepared list where items may be marked as added, modified or deleted.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="title" minOccurs="0" maxOccurs="1" type="string">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">A label for the list assigned by the author.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="code" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">This code defines the purpose of the list - why it was created.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="subject" minOccurs="0" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The common subject (or patient) of the resources that are in the list, if there is one.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="encounter" minOccurs="0" maxOccurs="1" type="Reference">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The encounter that is the context in which this list was created.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The date that the list was prepared.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="source" minOccurs="0" maxOccurs="1" type="Reference">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">The entity responsible for deciding what the contents of the list were. Where the list was created by a human, this is the same as the author of the list.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="orderedBy" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">What order applies to the items in the list.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">Comments that apply to the overall list.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="entry" type="List.Entry" minOccurs="0" maxOccurs="unbounded">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">Entries in this list.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="emptyReason" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">If the list is empty, why the list is empty.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
</xs:sequence>
|
| 118 |
+
</xs:extension>
|
| 119 |
+
</xs:complexContent>
|
| 120 |
+
</xs:complexType>
|
| 121 |
+
<xs:complexType name="List.Entry">
|
| 122 |
+
<xs:annotation>
|
| 123 |
+
<xs:documentation xml:lang="en">A set of information summarized from a list of other resources.</xs:documentation>
|
| 124 |
+
</xs:annotation>
|
| 125 |
+
<xs:complexContent>
|
| 126 |
+
<xs:extension base="BackboneElement">
|
| 127 |
+
<xs:sequence>
|
| 128 |
+
<xs:element name="flag" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 129 |
+
<xs:annotation>
|
| 130 |
+
<xs:documentation xml:lang="en">The flag allows the system constructing the list to indicate the role and significance of the item in the list.</xs:documentation>
|
| 131 |
+
</xs:annotation>
|
| 132 |
+
</xs:element>
|
| 133 |
+
<xs:element name="deleted" minOccurs="0" maxOccurs="1" type="boolean">
|
| 134 |
+
<xs:annotation>
|
| 135 |
+
<xs:documentation xml:lang="en">True if this item is marked as deleted in the list.</xs:documentation>
|
| 136 |
+
</xs:annotation>
|
| 137 |
+
</xs:element>
|
| 138 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 139 |
+
<xs:annotation>
|
| 140 |
+
<xs:documentation xml:lang="en">When this item was added to the list.</xs:documentation>
|
| 141 |
+
</xs:annotation>
|
| 142 |
+
</xs:element>
|
| 143 |
+
<xs:element name="item" minOccurs="1" maxOccurs="1" type="Reference">
|
| 144 |
+
<xs:annotation>
|
| 145 |
+
<xs:documentation xml:lang="en">A reference to the actual resource from which data was derived.</xs:documentation>
|
| 146 |
+
</xs:annotation>
|
| 147 |
+
</xs:element>
|
| 148 |
+
</xs:sequence>
|
| 149 |
+
</xs:extension>
|
| 150 |
+
</xs:complexContent>
|
| 151 |
+
</xs:complexType>
|
| 152 |
+
<xs:simpleType name="ListStatus-list">
|
| 153 |
+
<xs:restriction base="code-primitive">
|
| 154 |
+
<xs:enumeration value="current">
|
| 155 |
+
<xs:annotation>
|
| 156 |
+
<xs:documentation xml:lang="en">Current</xs:documentation>
|
| 157 |
+
</xs:annotation>
|
| 158 |
+
</xs:enumeration>
|
| 159 |
+
<xs:enumeration value="retired">
|
| 160 |
+
<xs:annotation>
|
| 161 |
+
<xs:documentation xml:lang="en">Retired</xs:documentation>
|
| 162 |
+
</xs:annotation>
|
| 163 |
+
</xs:enumeration>
|
| 164 |
+
<xs:enumeration value="entered-in-error">
|
| 165 |
+
<xs:annotation>
|
| 166 |
+
<xs:documentation xml:lang="en">Entered In Error</xs:documentation>
|
| 167 |
+
</xs:annotation>
|
| 168 |
+
</xs:enumeration>
|
| 169 |
+
</xs:restriction>
|
| 170 |
+
</xs:simpleType>
|
| 171 |
+
<xs:complexType name="ListStatus">
|
| 172 |
+
<xs:annotation>
|
| 173 |
+
<xs:documentation xml:lang="en">The current state of the list</xs:documentation>
|
| 174 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
<xs:complexContent>
|
| 177 |
+
<xs:extension base="Element">
|
| 178 |
+
<xs:attribute name="value" type="ListStatus-list" use="optional"/>
|
| 179 |
+
</xs:extension>
|
| 180 |
+
</xs:complexContent>
|
| 181 |
+
</xs:complexType>
|
| 182 |
+
<xs:simpleType name="ListMode-list">
|
| 183 |
+
<xs:restriction base="code-primitive">
|
| 184 |
+
<xs:enumeration value="working">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">Working List</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
</xs:enumeration>
|
| 189 |
+
<xs:enumeration value="snapshot">
|
| 190 |
+
<xs:annotation>
|
| 191 |
+
<xs:documentation xml:lang="en">Snapshot List</xs:documentation>
|
| 192 |
+
</xs:annotation>
|
| 193 |
+
</xs:enumeration>
|
| 194 |
+
<xs:enumeration value="changes">
|
| 195 |
+
<xs:annotation>
|
| 196 |
+
<xs:documentation xml:lang="en">Change List</xs:documentation>
|
| 197 |
+
</xs:annotation>
|
| 198 |
+
</xs:enumeration>
|
| 199 |
+
</xs:restriction>
|
| 200 |
+
</xs:simpleType>
|
| 201 |
+
<xs:complexType name="ListMode">
|
| 202 |
+
<xs:annotation>
|
| 203 |
+
<xs:documentation xml:lang="en">The processing mode that applies to this list</xs:documentation>
|
| 204 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 205 |
+
</xs:annotation>
|
| 206 |
+
<xs:complexContent>
|
| 207 |
+
<xs:extension base="Element">
|
| 208 |
+
<xs:attribute name="value" type="ListMode-list" use="optional"/>
|
| 209 |
+
</xs:extension>
|
| 210 |
+
</xs:complexContent>
|
| 211 |
+
</xs:complexType>
|
| 212 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/location.sch
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Location
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Location</sch:title>
|
| 21 |
+
<sch:rule context="//f:Location">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Location/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Location/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Location/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Location/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Location/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Location/f:telecom">
|
| 44 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Location/f:telecom/f:period">
|
| 47 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Location/f:address/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Location/f:managingOrganization">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Location/f:managingOrganization/f:identifier/f:period">
|
| 56 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Location/f:managingOrganization/f:identifier//f:assigner">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Location/f:partOf">
|
| 62 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Location/f:partOf/f:identifier/f:period">
|
| 65 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Location/f:partOf/f:identifier/f:assigner">
|
| 68 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Location/f:endpoint">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:Location/f:endpoint/f:identifier/f:period">
|
| 74 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:Location/f:endpoint/f:identifier/f:assigner">
|
| 77 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
</sch:pattern>
|
| 80 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/location.xsd
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Location" type="Location">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Location">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Unique code or number identifying the location to its users.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="status" minOccurs="0" maxOccurs="1" type="LocationStatus">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">active | suspended | inactive.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Name of the location as used by humans. Does not need to be unique.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="alias" minOccurs="0" maxOccurs="unbounded" type="string">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">A list of alternate names that the location is known as, or was known as in the past.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">Description of the Location, which helps in finding or referencing the place.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="mode" minOccurs="0" maxOccurs="1" type="LocationMode">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">Indicates whether a resource instance represents a specific location or a class of locations.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="type" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">Indicates the type of function performed at the location.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="telecom" minOccurs="0" maxOccurs="unbounded" type="ContactPoint">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The contact details of communication devices available at the location. This can include phone numbers, fax numbers, mobile numbers, email addresses and web sites.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="address" minOccurs="0" maxOccurs="1" type="Address">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Physical location.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="physicalType" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">Physical form of the location, e.g. building, room, vehicle, road.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="position" type="Location.Position" minOccurs="0" maxOccurs="1">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">The absolute geographic location of the Location, expressed using the WGS84 datum (This is the same co-ordinate system used in KML).</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="managingOrganization" minOccurs="0" maxOccurs="1" type="Reference">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">The organization responsible for the provisioning and upkeep of the location.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="partOf" minOccurs="0" maxOccurs="1" type="Reference">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">Another Location which this Location is physically part of.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="endpoint" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">Technical endpoints providing access to services operated for the location.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
</xs:sequence>
|
| 123 |
+
</xs:extension>
|
| 124 |
+
</xs:complexContent>
|
| 125 |
+
</xs:complexType>
|
| 126 |
+
<xs:complexType name="Location.Position">
|
| 127 |
+
<xs:annotation>
|
| 128 |
+
<xs:documentation xml:lang="en">Details and position information for a physical place where services are provided and resources and participants may be stored, found, contained or accommodated.</xs:documentation>
|
| 129 |
+
</xs:annotation>
|
| 130 |
+
<xs:complexContent>
|
| 131 |
+
<xs:extension base="BackboneElement">
|
| 132 |
+
<xs:sequence>
|
| 133 |
+
<xs:element name="longitude" minOccurs="1" maxOccurs="1" type="decimal">
|
| 134 |
+
<xs:annotation>
|
| 135 |
+
<xs:documentation xml:lang="en">Longitude. The value domain and the interpretation are the same as for the text of the longitude element in KML (see notes below).</xs:documentation>
|
| 136 |
+
</xs:annotation>
|
| 137 |
+
</xs:element>
|
| 138 |
+
<xs:element name="latitude" minOccurs="1" maxOccurs="1" type="decimal">
|
| 139 |
+
<xs:annotation>
|
| 140 |
+
<xs:documentation xml:lang="en">Latitude. The value domain and the interpretation are the same as for the text of the latitude element in KML (see notes below).</xs:documentation>
|
| 141 |
+
</xs:annotation>
|
| 142 |
+
</xs:element>
|
| 143 |
+
<xs:element name="altitude" minOccurs="0" maxOccurs="1" type="decimal">
|
| 144 |
+
<xs:annotation>
|
| 145 |
+
<xs:documentation xml:lang="en">Altitude. The value domain and the interpretation are the same as for the text of the altitude element in KML (see notes below).</xs:documentation>
|
| 146 |
+
</xs:annotation>
|
| 147 |
+
</xs:element>
|
| 148 |
+
</xs:sequence>
|
| 149 |
+
</xs:extension>
|
| 150 |
+
</xs:complexContent>
|
| 151 |
+
</xs:complexType>
|
| 152 |
+
<xs:simpleType name="LocationMode-list">
|
| 153 |
+
<xs:restriction base="code-primitive">
|
| 154 |
+
<xs:enumeration value="instance">
|
| 155 |
+
<xs:annotation>
|
| 156 |
+
<xs:documentation xml:lang="en">Instance</xs:documentation>
|
| 157 |
+
</xs:annotation>
|
| 158 |
+
</xs:enumeration>
|
| 159 |
+
<xs:enumeration value="kind">
|
| 160 |
+
<xs:annotation>
|
| 161 |
+
<xs:documentation xml:lang="en">Kind</xs:documentation>
|
| 162 |
+
</xs:annotation>
|
| 163 |
+
</xs:enumeration>
|
| 164 |
+
</xs:restriction>
|
| 165 |
+
</xs:simpleType>
|
| 166 |
+
<xs:complexType name="LocationMode">
|
| 167 |
+
<xs:annotation>
|
| 168 |
+
<xs:documentation xml:lang="en">Indicates whether a resource instance represents a specific location or a class of locations.</xs:documentation>
|
| 169 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
<xs:complexContent>
|
| 172 |
+
<xs:extension base="Element">
|
| 173 |
+
<xs:attribute name="value" type="LocationMode-list" use="optional"/>
|
| 174 |
+
</xs:extension>
|
| 175 |
+
</xs:complexContent>
|
| 176 |
+
</xs:complexType>
|
| 177 |
+
<xs:simpleType name="LocationStatus-list">
|
| 178 |
+
<xs:restriction base="code-primitive">
|
| 179 |
+
<xs:enumeration value="active">
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation xml:lang="en">Active</xs:documentation>
|
| 182 |
+
</xs:annotation>
|
| 183 |
+
</xs:enumeration>
|
| 184 |
+
<xs:enumeration value="suspended">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">Suspended</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
</xs:enumeration>
|
| 189 |
+
<xs:enumeration value="inactive">
|
| 190 |
+
<xs:annotation>
|
| 191 |
+
<xs:documentation xml:lang="en">Inactive</xs:documentation>
|
| 192 |
+
</xs:annotation>
|
| 193 |
+
</xs:enumeration>
|
| 194 |
+
</xs:restriction>
|
| 195 |
+
</xs:simpleType>
|
| 196 |
+
<xs:complexType name="LocationStatus">
|
| 197 |
+
<xs:annotation>
|
| 198 |
+
<xs:documentation xml:lang="en">Indicates whether the location is still in use.</xs:documentation>
|
| 199 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 200 |
+
</xs:annotation>
|
| 201 |
+
<xs:complexContent>
|
| 202 |
+
<xs:extension base="Element">
|
| 203 |
+
<xs:attribute name="value" type="LocationStatus-list" use="optional"/>
|
| 204 |
+
</xs:extension>
|
| 205 |
+
</xs:complexContent>
|
| 206 |
+
</xs:complexType>
|
| 207 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/mbp.sch
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the profile Vital Signs Profile
|
| 7 |
+
It includes the base constraints for the resource as well.
|
| 8 |
+
Because of the way that schematrons and containment work,
|
| 9 |
+
you may need to use this schematron fragment to build a,
|
| 10 |
+
single schematron that validates contained resources (if you have any)
|
| 11 |
+
-->
|
| 12 |
+
<sch:pattern>
|
| 13 |
+
<sch:title>Observation</sch:title>
|
| 14 |
+
<sch:rule context="f:Observation">
|
| 15 |
+
<sch:assert test="not(parent::f:contained and f:contained)">If the resource is contained in another resource, it SHALL NOT contain nested Resources (inherited)</sch:assert>
|
| 16 |
+
<sch:assert test="not(parent::f:contained and f:text)">If the resource is contained in another resource, it SHALL NOT contain any narrative (inherited)</sch:assert>
|
| 17 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated (inherited)</sch:assert>
|
| 18 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource (inherited)</sch:assert>
|
| 19 |
+
<sch:assert test="not(exists(f: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)">If code is the same as a component code then the value element associated with the code SHALL NOT be present (inherited)</sch:assert>
|
| 20 |
+
<sch:assert test="not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))">dataAbsentReason SHALL only be present if Observation.value[x] is not present (inherited)</sch:assert>
|
| 21 |
+
<sch:assert test="exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no component or related element then either a value[x] or a data absent reason must be present (inherited)</sch:assert>
|
| 22 |
+
</sch:rule>
|
| 23 |
+
</sch:pattern>
|
| 24 |
+
<sch:pattern>
|
| 25 |
+
<sch:title>f:Observation/f:code</sch:title>
|
| 26 |
+
<sch:rule context="f:Observation/f:code">
|
| 27 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 28 |
+
<sch:assert test="count(f:text) <= 1">text: maximum cardinality of 'text' is 1</sch:assert>
|
| 29 |
+
</sch:rule>
|
| 30 |
+
</sch:pattern>
|
| 31 |
+
<sch:pattern>
|
| 32 |
+
<sch:title>f:Observation/f:code/f:coding</sch:title>
|
| 33 |
+
<sch:rule context="f:Observation/f:code/f:coding">
|
| 34 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 35 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 36 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 37 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 38 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 39 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 40 |
+
<sch:assert test="count(f:id) <= 1">id: maximum cardinality of 'id' is 1</sch:assert>
|
| 41 |
+
<sch:assert test="count(f:system) <= 1">system: maximum cardinality of 'system' is 1</sch:assert>
|
| 42 |
+
<sch:assert test="count(f:version) <= 1">version: maximum cardinality of 'version' is 1</sch:assert>
|
| 43 |
+
<sch:assert test="count(f:code) <= 1">code: maximum cardinality of 'code' is 1</sch:assert>
|
| 44 |
+
<sch:assert test="count(f:display) <= 1">display: maximum cardinality of 'display' is 1</sch:assert>
|
| 45 |
+
<sch:assert test="count(f:userSelected) <= 1">userSelected: maximum cardinality of 'userSelected' is 1</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
</sch:pattern>
|
| 48 |
+
<sch:pattern>
|
| 49 |
+
<sch:title>Observation.effective[x]</sch:title>
|
| 50 |
+
<sch:rule context="f:Observation/f:effective[x]">
|
| 51 |
+
<sch:assert test="f:matches(effectiveDateTime,/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)/)">Datetime must be at least to day. (inherited)</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
</sch:pattern>
|
| 54 |
+
<sch:pattern>
|
| 55 |
+
<sch:title>Observation.referenceRange</sch:title>
|
| 56 |
+
<sch:rule context="f:Observation/f:referenceRange">
|
| 57 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 58 |
+
<sch:assert test="(exists(f:low) or exists(f:high)or exists(f:text))">Must have at least a low or a high or text (inherited)</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
</sch:pattern>
|
| 61 |
+
<sch:pattern>
|
| 62 |
+
<sch:title>Observation.related</sch:title>
|
| 63 |
+
<sch:rule context="f:Observation/f:related">
|
| 64 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
</sch:pattern>
|
| 67 |
+
<sch:pattern>
|
| 68 |
+
<sch:title>Observation.component</sch:title>
|
| 69 |
+
<sch:rule context="f:Observation/f:component">
|
| 70 |
+
<sch:assert test="@value|f:*|h:div">All FHIR elements must have a @value or children (inherited)</sch:assert>
|
| 71 |
+
<sch:assert test="exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)">If there is no a value a data absent reason must be present (inherited)</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
</sch:pattern>
|
| 74 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measure.sch
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Measure
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Measure</sch:title>
|
| 21 |
+
<sch:rule context="//f:Measure">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Measure/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Measure/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Measure/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Measure/f:identifier/f:period">
|
| 38 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Measure/f:identifier/f:assigner">
|
| 41 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Measure/f:effectivePeriod">
|
| 44 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Measure/f:useContext/f:valueQuantity">
|
| 47 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Measure/f:useContext/f:valueRange">
|
| 50 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Measure/f:useContext/f:valueRange/f:low">
|
| 53 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Measure/f:useContext/f:valueRange/f:high">
|
| 56 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Measure/f:contributor/f:contact/f:telecom">
|
| 59 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Measure/f:contributor/f:contact/f:telecom/f:period">
|
| 62 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Measure/f:contact/f:telecom">
|
| 65 |
+
<sch:assert test="not(exists(f:value)) or exists(f:system)">cpt-2: A system is required if a value is provided.</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Measure/f:contact/f:telecom/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Measure/f:relatedArtifact/f:document">
|
| 71 |
+
<sch:assert test="not(exists(f:data)) or exists(f:contentType)">att-1: It the Attachment has data, it SHALL have a contentType</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:Measure/f:relatedArtifact/f:resource">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:Measure/f:relatedArtifact/f:resource/f:identifier/f:period">
|
| 77 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:Measure/f:relatedArtifact/f:resource/f:identifier/f:assigner">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:Measure/f:library">
|
| 83 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:Measure/f:library/f:identifier/f:period">
|
| 86 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:Measure/f:library/f:identifier/f:assigner">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
<sch:rule context="//f:Measure/f:group/f:identifier/f:period">
|
| 92 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 93 |
+
</sch:rule>
|
| 94 |
+
<sch:rule context="//f:Measure/f:group/f:identifier/f:assigner">
|
| 95 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 96 |
+
</sch:rule>
|
| 97 |
+
<sch:rule context="//f:Measure/f:group/f:population/f:identifier/f:period">
|
| 98 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 99 |
+
</sch:rule>
|
| 100 |
+
<sch:rule context="//f:Measure/f:group/f:population/f:identifier/f:assigner">
|
| 101 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 102 |
+
</sch:rule>
|
| 103 |
+
<sch:rule context="//f:Measure/f:group/f:stratifier/f:identifier/f:period">
|
| 104 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 105 |
+
</sch:rule>
|
| 106 |
+
<sch:rule context="//f:Measure/f:group/f:stratifier/f:identifier/f:assigner">
|
| 107 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 108 |
+
</sch:rule>
|
| 109 |
+
<sch:rule context="//f:Measure/f:supplementalData/f:identifier/f:period">
|
| 110 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 111 |
+
</sch:rule>
|
| 112 |
+
<sch:rule context="//f:Measure/f:supplementalData/f:identifier/f:assigner">
|
| 113 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 114 |
+
</sch:rule>
|
| 115 |
+
</sch:pattern>
|
| 116 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measure.xsd
ADDED
|
@@ -0,0 +1,565 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Measure" type="Measure">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Measure">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="url" minOccurs="0" maxOccurs="1" type="uri">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">An absolute URL that is used to identify this measure when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this measure is (or will be) published. The URL SHOULD include the major version of the measure. For more information see [Technical and Business Versions](resource.html#versions).</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">A formal identifier that is used to identify this measure when it is represented in other formats, or referenced in a specification, model, design or an instance.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="version" minOccurs="0" maxOccurs="1" type="string">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">The identifier that is used to identify this version of the measure when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the measure author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions are orderable. To provide a version consistent with the Decision Support Service specification, use the format Major.Minor.Revision (e.g. 1.0.0). For more information on versioning knowledge assets, refer to the Decision Support Service specification. Note that a version is required for non-experimental active artifacts.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">A natural language name identifying the measure. This name should be usable as an identifier for the module by machine processing applications such as code generation.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="title" minOccurs="0" maxOccurs="1" type="string">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">A short, descriptive, user-friendly title for the measure.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="PublicationStatus">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The status of this measure. Enables tracking the life-cycle of the content.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="experimental" minOccurs="0" maxOccurs="1" type="boolean">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">A flag to indicate that this measure is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The date (and optionally time) when the measure was published. The date must change when the business version changes, if it does, and it must change if the status code changes. In addition, it should change when the substantive content of the measure changes.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="markdown">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">A free text natural language description of the measure from the consumer's perspective.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="purpose" minOccurs="0" maxOccurs="1" type="markdown">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">Explains why this measure is needed and why it has been designed as it has.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="usage" minOccurs="0" maxOccurs="1" type="string">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">A detailed description of how the measure is used from a clinical perspective.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="approvalDate" minOccurs="0" maxOccurs="1" type="date">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">The date on which the asset content was approved by the publisher. Approval happens once when the content is officially approved for usage.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
<xs:element name="lastReviewDate" minOccurs="0" maxOccurs="1" type="date">
|
| 113 |
+
<xs:annotation>
|
| 114 |
+
<xs:documentation xml:lang="en">The date on which the asset content was last reviewed. Review happens periodically after that, but doesn't change the original approval date.</xs:documentation>
|
| 115 |
+
</xs:annotation>
|
| 116 |
+
</xs:element>
|
| 117 |
+
<xs:element name="effectivePeriod" minOccurs="0" maxOccurs="1" type="Period">
|
| 118 |
+
<xs:annotation>
|
| 119 |
+
<xs:documentation xml:lang="en">The period during which the measure content was or is planned to be effective.</xs:documentation>
|
| 120 |
+
</xs:annotation>
|
| 121 |
+
</xs:element>
|
| 122 |
+
<xs:element name="useContext" minOccurs="0" maxOccurs="unbounded" type="UsageContext">
|
| 123 |
+
<xs:annotation>
|
| 124 |
+
<xs:documentation xml:lang="en">The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching of code system definitions.</xs:documentation>
|
| 125 |
+
</xs:annotation>
|
| 126 |
+
</xs:element>
|
| 127 |
+
<xs:element name="jurisdiction" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 128 |
+
<xs:annotation>
|
| 129 |
+
<xs:documentation xml:lang="en">A jurisdiction in which the measure is intended to be used.</xs:documentation>
|
| 130 |
+
</xs:annotation>
|
| 131 |
+
</xs:element>
|
| 132 |
+
<xs:element name="topic" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 133 |
+
<xs:annotation>
|
| 134 |
+
<xs:documentation xml:lang="en">Clinical topics related to the content of the measure.</xs:documentation>
|
| 135 |
+
</xs:annotation>
|
| 136 |
+
</xs:element>
|
| 137 |
+
<xs:element name="contributor" minOccurs="0" maxOccurs="unbounded" type="Contributor">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">A contributor to the content of the measure, including authors, editors, reviewers, and endorsers.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
<xs:element name="publisher" minOccurs="0" maxOccurs="1" type="string">
|
| 143 |
+
<xs:annotation>
|
| 144 |
+
<xs:documentation xml:lang="en">The name of the individual or organization that published the measure.</xs:documentation>
|
| 145 |
+
</xs:annotation>
|
| 146 |
+
</xs:element>
|
| 147 |
+
<xs:element name="contact" minOccurs="0" maxOccurs="unbounded" type="ContactDetail">
|
| 148 |
+
<xs:annotation>
|
| 149 |
+
<xs:documentation xml:lang="en">Contact details to assist a user in finding and communicating with the publisher.</xs:documentation>
|
| 150 |
+
</xs:annotation>
|
| 151 |
+
</xs:element>
|
| 152 |
+
<xs:element name="copyright" minOccurs="0" maxOccurs="1" type="markdown">
|
| 153 |
+
<xs:annotation>
|
| 154 |
+
<xs:documentation xml:lang="en">A copyright statement relating to the measure and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the measure.</xs:documentation>
|
| 155 |
+
</xs:annotation>
|
| 156 |
+
</xs:element>
|
| 157 |
+
<xs:element name="relatedArtifact" minOccurs="0" maxOccurs="unbounded" type="RelatedArtifact">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">Related artifacts such as additional documentation, justification, or bibliographic references.</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
</xs:element>
|
| 162 |
+
<xs:element name="library" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 163 |
+
<xs:annotation>
|
| 164 |
+
<xs:documentation xml:lang="en">A reference to a Library resource containing the formal logic used by the measure.</xs:documentation>
|
| 165 |
+
</xs:annotation>
|
| 166 |
+
</xs:element>
|
| 167 |
+
<xs:element name="disclaimer" minOccurs="0" maxOccurs="1" type="markdown">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">A disclaimer for the use of the measure.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
</xs:element>
|
| 172 |
+
<xs:element name="scoring" minOccurs="0" maxOccurs="1" type="MeasureScoring">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation xml:lang="en">The measure scoring type, e.g. proportion, CV.</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
</xs:element>
|
| 177 |
+
<xs:element name="compositeScoring" minOccurs="0" maxOccurs="1" type="CompositeMeasureScoring">
|
| 178 |
+
<xs:annotation>
|
| 179 |
+
<xs:documentation xml:lang="en">If this is a composite measure, the scoring method used to combine the component measures to determine the composite score.</xs:documentation>
|
| 180 |
+
</xs:annotation>
|
| 181 |
+
</xs:element>
|
| 182 |
+
<xs:element name="type" minOccurs="0" maxOccurs="unbounded" type="MeasureType">
|
| 183 |
+
<xs:annotation>
|
| 184 |
+
<xs:documentation xml:lang="en">The measure type, e.g. process, outcome.</xs:documentation>
|
| 185 |
+
</xs:annotation>
|
| 186 |
+
</xs:element>
|
| 187 |
+
<xs:element name="riskAdjustment" minOccurs="0" maxOccurs="1" type="string">
|
| 188 |
+
<xs:annotation>
|
| 189 |
+
<xs:documentation xml:lang="en">A description of the risk adjustment factors that may impact the resulting score for the measure and how they may be accounted for when computing and reporting measure results.</xs:documentation>
|
| 190 |
+
</xs:annotation>
|
| 191 |
+
</xs:element>
|
| 192 |
+
<xs:element name="rateAggregation" minOccurs="0" maxOccurs="1" type="string">
|
| 193 |
+
<xs:annotation>
|
| 194 |
+
<xs:documentation xml:lang="en">A description of the rate aggregation for the measure.</xs:documentation>
|
| 195 |
+
</xs:annotation>
|
| 196 |
+
</xs:element>
|
| 197 |
+
<xs:element name="rationale" minOccurs="0" maxOccurs="1" type="markdown">
|
| 198 |
+
<xs:annotation>
|
| 199 |
+
<xs:documentation xml:lang="en">The rationale for the measure.</xs:documentation>
|
| 200 |
+
</xs:annotation>
|
| 201 |
+
</xs:element>
|
| 202 |
+
<xs:element name="clinicalRecommendationStatement" minOccurs="0" maxOccurs="1" type="markdown">
|
| 203 |
+
<xs:annotation>
|
| 204 |
+
<xs:documentation xml:lang="en">The clinical recommendation statement for the measure.</xs:documentation>
|
| 205 |
+
</xs:annotation>
|
| 206 |
+
</xs:element>
|
| 207 |
+
<xs:element name="improvementNotation" minOccurs="0" maxOccurs="1" type="string">
|
| 208 |
+
<xs:annotation>
|
| 209 |
+
<xs:documentation xml:lang="en">Improvement notation for the measure, e.g. higher score indicates better quality.</xs:documentation>
|
| 210 |
+
</xs:annotation>
|
| 211 |
+
</xs:element>
|
| 212 |
+
<xs:element name="definition" minOccurs="0" maxOccurs="1" type="markdown">
|
| 213 |
+
<xs:annotation>
|
| 214 |
+
<xs:documentation xml:lang="en">A narrative description of the complete measure calculation.</xs:documentation>
|
| 215 |
+
</xs:annotation>
|
| 216 |
+
</xs:element>
|
| 217 |
+
<xs:element name="guidance" minOccurs="0" maxOccurs="1" type="markdown">
|
| 218 |
+
<xs:annotation>
|
| 219 |
+
<xs:documentation xml:lang="en">Additional guidance for the measure including how it can be used in a clinical context, and the intent of the measure.</xs:documentation>
|
| 220 |
+
</xs:annotation>
|
| 221 |
+
</xs:element>
|
| 222 |
+
<xs:element name="set" minOccurs="0" maxOccurs="1" type="string">
|
| 223 |
+
<xs:annotation>
|
| 224 |
+
<xs:documentation xml:lang="en">The measure set, e.g. Preventive Care and Screening.</xs:documentation>
|
| 225 |
+
</xs:annotation>
|
| 226 |
+
</xs:element>
|
| 227 |
+
<xs:element name="group" type="Measure.Group" minOccurs="0" maxOccurs="unbounded">
|
| 228 |
+
<xs:annotation>
|
| 229 |
+
<xs:documentation xml:lang="en">A group of population criteria for the measure.</xs:documentation>
|
| 230 |
+
</xs:annotation>
|
| 231 |
+
</xs:element>
|
| 232 |
+
<xs:element name="supplementalData" type="Measure.SupplementalData" minOccurs="0" maxOccurs="unbounded">
|
| 233 |
+
<xs:annotation>
|
| 234 |
+
<xs:documentation xml:lang="en">The supplemental data criteria for the measure report, specified as either the name of a valid CQL expression within a referenced library, or a valid FHIR Resource Path.</xs:documentation>
|
| 235 |
+
</xs:annotation>
|
| 236 |
+
</xs:element>
|
| 237 |
+
</xs:sequence>
|
| 238 |
+
</xs:extension>
|
| 239 |
+
</xs:complexContent>
|
| 240 |
+
</xs:complexType>
|
| 241 |
+
<xs:complexType name="Measure.Group">
|
| 242 |
+
<xs:annotation>
|
| 243 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 244 |
+
</xs:annotation>
|
| 245 |
+
<xs:complexContent>
|
| 246 |
+
<xs:extension base="BackboneElement">
|
| 247 |
+
<xs:sequence>
|
| 248 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 249 |
+
<xs:annotation>
|
| 250 |
+
<xs:documentation xml:lang="en">A unique identifier for the group. This identifier will used to report data for the group in the measure report.</xs:documentation>
|
| 251 |
+
</xs:annotation>
|
| 252 |
+
</xs:element>
|
| 253 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 254 |
+
<xs:annotation>
|
| 255 |
+
<xs:documentation xml:lang="en">Optional name or short description of this group.</xs:documentation>
|
| 256 |
+
</xs:annotation>
|
| 257 |
+
</xs:element>
|
| 258 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 259 |
+
<xs:annotation>
|
| 260 |
+
<xs:documentation xml:lang="en">The human readable description of this population group.</xs:documentation>
|
| 261 |
+
</xs:annotation>
|
| 262 |
+
</xs:element>
|
| 263 |
+
<xs:element name="population" type="Measure.Population" minOccurs="0" maxOccurs="unbounded">
|
| 264 |
+
<xs:annotation>
|
| 265 |
+
<xs:documentation xml:lang="en">A population criteria for the measure.</xs:documentation>
|
| 266 |
+
</xs:annotation>
|
| 267 |
+
</xs:element>
|
| 268 |
+
<xs:element name="stratifier" type="Measure.Stratifier" minOccurs="0" maxOccurs="unbounded">
|
| 269 |
+
<xs:annotation>
|
| 270 |
+
<xs:documentation xml:lang="en">The stratifier criteria for the measure report, specified as either the name of a valid CQL expression defined within a referenced library, or a valid FHIR Resource Path.</xs:documentation>
|
| 271 |
+
</xs:annotation>
|
| 272 |
+
</xs:element>
|
| 273 |
+
</xs:sequence>
|
| 274 |
+
</xs:extension>
|
| 275 |
+
</xs:complexContent>
|
| 276 |
+
</xs:complexType>
|
| 277 |
+
<xs:complexType name="Measure.Population">
|
| 278 |
+
<xs:annotation>
|
| 279 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 280 |
+
</xs:annotation>
|
| 281 |
+
<xs:complexContent>
|
| 282 |
+
<xs:extension base="BackboneElement">
|
| 283 |
+
<xs:sequence>
|
| 284 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="MeasurePopulationType">
|
| 285 |
+
<xs:annotation>
|
| 286 |
+
<xs:documentation xml:lang="en">The type of population criteria.</xs:documentation>
|
| 287 |
+
</xs:annotation>
|
| 288 |
+
</xs:element>
|
| 289 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 290 |
+
<xs:annotation>
|
| 291 |
+
<xs:documentation xml:lang="en">A unique identifier for the population criteria. This identifier is used to report data against this criteria within the measure report.</xs:documentation>
|
| 292 |
+
</xs:annotation>
|
| 293 |
+
</xs:element>
|
| 294 |
+
<xs:element name="name" minOccurs="0" maxOccurs="1" type="string">
|
| 295 |
+
<xs:annotation>
|
| 296 |
+
<xs:documentation xml:lang="en">Optional name or short description of this population.</xs:documentation>
|
| 297 |
+
</xs:annotation>
|
| 298 |
+
</xs:element>
|
| 299 |
+
<xs:element name="description" minOccurs="0" maxOccurs="1" type="string">
|
| 300 |
+
<xs:annotation>
|
| 301 |
+
<xs:documentation xml:lang="en">The human readable description of this population criteria.</xs:documentation>
|
| 302 |
+
</xs:annotation>
|
| 303 |
+
</xs:element>
|
| 304 |
+
<xs:element name="criteria" minOccurs="1" maxOccurs="1" type="string">
|
| 305 |
+
<xs:annotation>
|
| 306 |
+
<xs:documentation xml:lang="en">The name of a valid referenced CQL expression (may be namespaced) that defines this population criteria.</xs:documentation>
|
| 307 |
+
</xs:annotation>
|
| 308 |
+
</xs:element>
|
| 309 |
+
</xs:sequence>
|
| 310 |
+
</xs:extension>
|
| 311 |
+
</xs:complexContent>
|
| 312 |
+
</xs:complexType>
|
| 313 |
+
<xs:complexType name="Measure.Stratifier">
|
| 314 |
+
<xs:annotation>
|
| 315 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 316 |
+
</xs:annotation>
|
| 317 |
+
<xs:complexContent>
|
| 318 |
+
<xs:extension base="BackboneElement">
|
| 319 |
+
<xs:sequence>
|
| 320 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 321 |
+
<xs:annotation>
|
| 322 |
+
<xs:documentation xml:lang="en">The identifier for the stratifier used to coordinate the reported data back to this stratifier.</xs:documentation>
|
| 323 |
+
</xs:annotation>
|
| 324 |
+
</xs:element>
|
| 325 |
+
<xs:element name="criteria" minOccurs="0" maxOccurs="1" type="string">
|
| 326 |
+
<xs:annotation>
|
| 327 |
+
<xs:documentation xml:lang="en">The criteria for the stratifier. This must be the name of an expression defined within a referenced library.</xs:documentation>
|
| 328 |
+
</xs:annotation>
|
| 329 |
+
</xs:element>
|
| 330 |
+
<xs:element name="path" minOccurs="0" maxOccurs="1" type="string">
|
| 331 |
+
<xs:annotation>
|
| 332 |
+
<xs:documentation xml:lang="en">The path to an element that defines the stratifier, specified as a valid FHIR resource path.</xs:documentation>
|
| 333 |
+
</xs:annotation>
|
| 334 |
+
</xs:element>
|
| 335 |
+
</xs:sequence>
|
| 336 |
+
</xs:extension>
|
| 337 |
+
</xs:complexContent>
|
| 338 |
+
</xs:complexType>
|
| 339 |
+
<xs:complexType name="Measure.SupplementalData">
|
| 340 |
+
<xs:annotation>
|
| 341 |
+
<xs:documentation xml:lang="en">The Measure resource provides the definition of a quality measure.</xs:documentation>
|
| 342 |
+
</xs:annotation>
|
| 343 |
+
<xs:complexContent>
|
| 344 |
+
<xs:extension base="BackboneElement">
|
| 345 |
+
<xs:sequence>
|
| 346 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 347 |
+
<xs:annotation>
|
| 348 |
+
<xs:documentation xml:lang="en">An identifier for the supplemental data.</xs:documentation>
|
| 349 |
+
</xs:annotation>
|
| 350 |
+
</xs:element>
|
| 351 |
+
<xs:element name="usage" minOccurs="0" maxOccurs="unbounded" type="MeasureDataUsage">
|
| 352 |
+
<xs:annotation>
|
| 353 |
+
<xs:documentation xml:lang="en">An indicator of the intended usage for the supplemental data element. Supplemental data indicates the data is additional information requested to augment the measure information. Risk adjustment factor indicates the data is additional information used to calculate risk adjustment factors when applying a risk model to the measure calculation.</xs:documentation>
|
| 354 |
+
</xs:annotation>
|
| 355 |
+
</xs:element>
|
| 356 |
+
<xs:element name="criteria" minOccurs="0" maxOccurs="1" type="string">
|
| 357 |
+
<xs:annotation>
|
| 358 |
+
<xs:documentation xml:lang="en">The criteria for the supplemental data. This must be the name of a valid expression defined within a referenced library, and defines the data to be returned for this element.</xs:documentation>
|
| 359 |
+
</xs:annotation>
|
| 360 |
+
</xs:element>
|
| 361 |
+
<xs:element name="path" minOccurs="0" maxOccurs="1" type="string">
|
| 362 |
+
<xs:annotation>
|
| 363 |
+
<xs:documentation xml:lang="en">The supplemental data to be supplied as part of the measure response, specified as a valid FHIR Resource Path.</xs:documentation>
|
| 364 |
+
</xs:annotation>
|
| 365 |
+
</xs:element>
|
| 366 |
+
</xs:sequence>
|
| 367 |
+
</xs:extension>
|
| 368 |
+
</xs:complexContent>
|
| 369 |
+
</xs:complexType>
|
| 370 |
+
<xs:simpleType name="CompositeMeasureScoring-list">
|
| 371 |
+
<xs:restriction base="code-primitive">
|
| 372 |
+
<xs:enumeration value="opportunity">
|
| 373 |
+
<xs:annotation>
|
| 374 |
+
<xs:documentation xml:lang="en">Opportunity</xs:documentation>
|
| 375 |
+
</xs:annotation>
|
| 376 |
+
</xs:enumeration>
|
| 377 |
+
<xs:enumeration value="all-or-nothing">
|
| 378 |
+
<xs:annotation>
|
| 379 |
+
<xs:documentation xml:lang="en">All-or-nothing</xs:documentation>
|
| 380 |
+
</xs:annotation>
|
| 381 |
+
</xs:enumeration>
|
| 382 |
+
<xs:enumeration value="linear">
|
| 383 |
+
<xs:annotation>
|
| 384 |
+
<xs:documentation xml:lang="en">Linear</xs:documentation>
|
| 385 |
+
</xs:annotation>
|
| 386 |
+
</xs:enumeration>
|
| 387 |
+
<xs:enumeration value="weighted">
|
| 388 |
+
<xs:annotation>
|
| 389 |
+
<xs:documentation xml:lang="en">Weighted</xs:documentation>
|
| 390 |
+
</xs:annotation>
|
| 391 |
+
</xs:enumeration>
|
| 392 |
+
</xs:restriction>
|
| 393 |
+
</xs:simpleType>
|
| 394 |
+
<xs:complexType name="CompositeMeasureScoring">
|
| 395 |
+
<xs:annotation>
|
| 396 |
+
<xs:documentation xml:lang="en">The composite scoring method of the measure</xs:documentation>
|
| 397 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 398 |
+
</xs:annotation>
|
| 399 |
+
<xs:complexContent>
|
| 400 |
+
<xs:extension base="Element">
|
| 401 |
+
<xs:attribute name="value" type="CompositeMeasureScoring-list" use="optional"/>
|
| 402 |
+
</xs:extension>
|
| 403 |
+
</xs:complexContent>
|
| 404 |
+
</xs:complexType>
|
| 405 |
+
<xs:simpleType name="MeasureType-list">
|
| 406 |
+
<xs:restriction base="code-primitive">
|
| 407 |
+
<xs:enumeration value="process">
|
| 408 |
+
<xs:annotation>
|
| 409 |
+
<xs:documentation xml:lang="en">Process</xs:documentation>
|
| 410 |
+
</xs:annotation>
|
| 411 |
+
</xs:enumeration>
|
| 412 |
+
<xs:enumeration value="outcome">
|
| 413 |
+
<xs:annotation>
|
| 414 |
+
<xs:documentation xml:lang="en">Outcome</xs:documentation>
|
| 415 |
+
</xs:annotation>
|
| 416 |
+
</xs:enumeration>
|
| 417 |
+
<xs:enumeration value="structure">
|
| 418 |
+
<xs:annotation>
|
| 419 |
+
<xs:documentation xml:lang="en">Structure</xs:documentation>
|
| 420 |
+
</xs:annotation>
|
| 421 |
+
</xs:enumeration>
|
| 422 |
+
<xs:enumeration value="patient-reported-outcome">
|
| 423 |
+
<xs:annotation>
|
| 424 |
+
<xs:documentation xml:lang="en">Patient Reported Outcome</xs:documentation>
|
| 425 |
+
</xs:annotation>
|
| 426 |
+
</xs:enumeration>
|
| 427 |
+
<xs:enumeration value="composite">
|
| 428 |
+
<xs:annotation>
|
| 429 |
+
<xs:documentation xml:lang="en">Composite</xs:documentation>
|
| 430 |
+
</xs:annotation>
|
| 431 |
+
</xs:enumeration>
|
| 432 |
+
</xs:restriction>
|
| 433 |
+
</xs:simpleType>
|
| 434 |
+
<xs:complexType name="MeasureType">
|
| 435 |
+
<xs:annotation>
|
| 436 |
+
<xs:documentation xml:lang="en">The type of measure (includes codes from 2.16.840.1.113883.1.11.20368)</xs:documentation>
|
| 437 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 438 |
+
</xs:annotation>
|
| 439 |
+
<xs:complexContent>
|
| 440 |
+
<xs:extension base="Element">
|
| 441 |
+
<xs:attribute name="value" type="MeasureType-list" use="optional"/>
|
| 442 |
+
</xs:extension>
|
| 443 |
+
</xs:complexContent>
|
| 444 |
+
</xs:complexType>
|
| 445 |
+
<xs:simpleType name="MeasureDataUsage-list">
|
| 446 |
+
<xs:restriction base="code-primitive">
|
| 447 |
+
<xs:enumeration value="supplemental-data">
|
| 448 |
+
<xs:annotation>
|
| 449 |
+
<xs:documentation xml:lang="en">Supplemental Data</xs:documentation>
|
| 450 |
+
</xs:annotation>
|
| 451 |
+
</xs:enumeration>
|
| 452 |
+
<xs:enumeration value="risk-adjustment-factor">
|
| 453 |
+
<xs:annotation>
|
| 454 |
+
<xs:documentation xml:lang="en">Risk Adjustment Factor</xs:documentation>
|
| 455 |
+
</xs:annotation>
|
| 456 |
+
</xs:enumeration>
|
| 457 |
+
</xs:restriction>
|
| 458 |
+
</xs:simpleType>
|
| 459 |
+
<xs:complexType name="MeasureDataUsage">
|
| 460 |
+
<xs:annotation>
|
| 461 |
+
<xs:documentation xml:lang="en">The intended usage for supplemental data elements in the measure</xs:documentation>
|
| 462 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 463 |
+
</xs:annotation>
|
| 464 |
+
<xs:complexContent>
|
| 465 |
+
<xs:extension base="Element">
|
| 466 |
+
<xs:attribute name="value" type="MeasureDataUsage-list" use="optional"/>
|
| 467 |
+
</xs:extension>
|
| 468 |
+
</xs:complexContent>
|
| 469 |
+
</xs:complexType>
|
| 470 |
+
<xs:simpleType name="MeasureScoring-list">
|
| 471 |
+
<xs:restriction base="code-primitive">
|
| 472 |
+
<xs:enumeration value="proportion">
|
| 473 |
+
<xs:annotation>
|
| 474 |
+
<xs:documentation xml:lang="en">Proportion</xs:documentation>
|
| 475 |
+
</xs:annotation>
|
| 476 |
+
</xs:enumeration>
|
| 477 |
+
<xs:enumeration value="ratio">
|
| 478 |
+
<xs:annotation>
|
| 479 |
+
<xs:documentation xml:lang="en">Ratio</xs:documentation>
|
| 480 |
+
</xs:annotation>
|
| 481 |
+
</xs:enumeration>
|
| 482 |
+
<xs:enumeration value="continuous-variable">
|
| 483 |
+
<xs:annotation>
|
| 484 |
+
<xs:documentation xml:lang="en">Continuous Variable</xs:documentation>
|
| 485 |
+
</xs:annotation>
|
| 486 |
+
</xs:enumeration>
|
| 487 |
+
<xs:enumeration value="cohort">
|
| 488 |
+
<xs:annotation>
|
| 489 |
+
<xs:documentation xml:lang="en">Cohort</xs:documentation>
|
| 490 |
+
</xs:annotation>
|
| 491 |
+
</xs:enumeration>
|
| 492 |
+
</xs:restriction>
|
| 493 |
+
</xs:simpleType>
|
| 494 |
+
<xs:complexType name="MeasureScoring">
|
| 495 |
+
<xs:annotation>
|
| 496 |
+
<xs:documentation xml:lang="en">The scoring type of the measure</xs:documentation>
|
| 497 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 498 |
+
</xs:annotation>
|
| 499 |
+
<xs:complexContent>
|
| 500 |
+
<xs:extension base="Element">
|
| 501 |
+
<xs:attribute name="value" type="MeasureScoring-list" use="optional"/>
|
| 502 |
+
</xs:extension>
|
| 503 |
+
</xs:complexContent>
|
| 504 |
+
</xs:complexType>
|
| 505 |
+
<xs:simpleType name="MeasurePopulationType-list">
|
| 506 |
+
<xs:restriction base="code-primitive">
|
| 507 |
+
<xs:enumeration value="initial-population">
|
| 508 |
+
<xs:annotation>
|
| 509 |
+
<xs:documentation xml:lang="en">Initial Population</xs:documentation>
|
| 510 |
+
</xs:annotation>
|
| 511 |
+
</xs:enumeration>
|
| 512 |
+
<xs:enumeration value="numerator">
|
| 513 |
+
<xs:annotation>
|
| 514 |
+
<xs:documentation xml:lang="en">Numerator</xs:documentation>
|
| 515 |
+
</xs:annotation>
|
| 516 |
+
</xs:enumeration>
|
| 517 |
+
<xs:enumeration value="numerator-exclusion">
|
| 518 |
+
<xs:annotation>
|
| 519 |
+
<xs:documentation xml:lang="en">Numerator Exclusion</xs:documentation>
|
| 520 |
+
</xs:annotation>
|
| 521 |
+
</xs:enumeration>
|
| 522 |
+
<xs:enumeration value="denominator">
|
| 523 |
+
<xs:annotation>
|
| 524 |
+
<xs:documentation xml:lang="en">Denominator</xs:documentation>
|
| 525 |
+
</xs:annotation>
|
| 526 |
+
</xs:enumeration>
|
| 527 |
+
<xs:enumeration value="denominator-exclusion">
|
| 528 |
+
<xs:annotation>
|
| 529 |
+
<xs:documentation xml:lang="en">Denominator Exclusion</xs:documentation>
|
| 530 |
+
</xs:annotation>
|
| 531 |
+
</xs:enumeration>
|
| 532 |
+
<xs:enumeration value="denominator-exception">
|
| 533 |
+
<xs:annotation>
|
| 534 |
+
<xs:documentation xml:lang="en">Denominator Exception</xs:documentation>
|
| 535 |
+
</xs:annotation>
|
| 536 |
+
</xs:enumeration>
|
| 537 |
+
<xs:enumeration value="measure-population">
|
| 538 |
+
<xs:annotation>
|
| 539 |
+
<xs:documentation xml:lang="en">Measure Population</xs:documentation>
|
| 540 |
+
</xs:annotation>
|
| 541 |
+
</xs:enumeration>
|
| 542 |
+
<xs:enumeration value="measure-population-exclusion">
|
| 543 |
+
<xs:annotation>
|
| 544 |
+
<xs:documentation xml:lang="en">Measure Population Exclusion</xs:documentation>
|
| 545 |
+
</xs:annotation>
|
| 546 |
+
</xs:enumeration>
|
| 547 |
+
<xs:enumeration value="measure-observation">
|
| 548 |
+
<xs:annotation>
|
| 549 |
+
<xs:documentation xml:lang="en">Measure Observation</xs:documentation>
|
| 550 |
+
</xs:annotation>
|
| 551 |
+
</xs:enumeration>
|
| 552 |
+
</xs:restriction>
|
| 553 |
+
</xs:simpleType>
|
| 554 |
+
<xs:complexType name="MeasurePopulationType">
|
| 555 |
+
<xs:annotation>
|
| 556 |
+
<xs:documentation xml:lang="en">The type of population</xs:documentation>
|
| 557 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 558 |
+
</xs:annotation>
|
| 559 |
+
<xs:complexContent>
|
| 560 |
+
<xs:extension base="Element">
|
| 561 |
+
<xs:attribute name="value" type="MeasurePopulationType-list" use="optional"/>
|
| 562 |
+
</xs:extension>
|
| 563 |
+
</xs:complexContent>
|
| 564 |
+
</xs:complexType>
|
| 565 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measurereport.sch
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource MeasureReport
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>MeasureReport</sch:title>
|
| 21 |
+
<sch:rule context="//f:MeasureReport">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:MeasureReport/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:MeasureReport/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:MeasureReport/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:MeasureReport/f:measure">
|
| 38 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:MeasureReport/f:measure/f:identifier/f:period">
|
| 41 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:MeasureReport/f:measure/f:identifier/f:assigner">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:MeasureReport/f:patient">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:MeasureReport/f:patient/f:identifier/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:MeasureReport/f:patient/f:identifier/f:assigner">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:MeasureReport/f:period">
|
| 56 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:MeasureReport/f:reportingOrganization">
|
| 59 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:MeasureReport/f:reportingOrganization/f:identifier/f:period">
|
| 62 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:MeasureReport/f:reportingOrganization/f:identifier//f:assigner">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:MeasureReport/f:group/f:identifier/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:MeasureReport/f:group/f:identifier/f:assigner">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:MeasureReport/f:group/f:population/f:patients">
|
| 74 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
<sch:rule context="//f:MeasureReport/f:group/f:population/f:patients/f:identifier/f:period">
|
| 77 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 78 |
+
</sch:rule>
|
| 79 |
+
<sch:rule context="//f:MeasureReport/f:group/f:population/f:patients/f:identifier/f:assigner">
|
| 80 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 81 |
+
</sch:rule>
|
| 82 |
+
<sch:rule context="//f:MeasureReport/f:group/f:stratifier/f:identifier/f:period">
|
| 83 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 84 |
+
</sch:rule>
|
| 85 |
+
<sch:rule context="//f:MeasureReport/f:group/f:stratifier/f:identifier/f:assigner">
|
| 86 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 87 |
+
</sch:rule>
|
| 88 |
+
<sch:rule context="//f:MeasureReport/f:group/f:stratifier/f:group/f:population/f:patients">
|
| 89 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 90 |
+
</sch:rule>
|
| 91 |
+
<sch:rule context="//f:MeasureReport/f:group/f:stratifier/f:group/f:population/f:patients/f:identifier/f:period">
|
| 92 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 93 |
+
</sch:rule>
|
| 94 |
+
<sch:rule context="//f:MeasureReport/f:group/f:stratifier/f:group/f:population/f:patients/f:identifier/f:assigner">
|
| 95 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 96 |
+
</sch:rule>
|
| 97 |
+
<sch:rule context="//f:MeasureReport/f:group/f:supplementalData/f:identifier/f:period">
|
| 98 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 99 |
+
</sch:rule>
|
| 100 |
+
<sch:rule context="//f:MeasureReport/f:group/f:supplementalData/f:identifier/f:assigner">
|
| 101 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 102 |
+
</sch:rule>
|
| 103 |
+
<sch:rule context="//f:MeasureReport/f:group/f:supplementalData/f:group/f:patients">
|
| 104 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 105 |
+
</sch:rule>
|
| 106 |
+
<sch:rule context="//f:MeasureReport/f:group/f:supplementalData/f:group/f:patients/f:identifier/f:period">
|
| 107 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 108 |
+
</sch:rule>
|
| 109 |
+
<sch:rule context="//f:MeasureReport/f:group/f:supplementalData/f:group/f:patients/f:identifier/f:assigner">
|
| 110 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 111 |
+
</sch:rule>
|
| 112 |
+
<sch:rule context="//f:MeasureReport/f:evaluatedResources">
|
| 113 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 114 |
+
</sch:rule>
|
| 115 |
+
<sch:rule context="//f:MeasureReport/f:evaluatedResources/f:identifier/f:period">
|
| 116 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 117 |
+
</sch:rule>
|
| 118 |
+
<sch:rule context="//f:MeasureReport/f:evaluatedResources/f:identifier/f:assigner">
|
| 119 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 120 |
+
</sch:rule>
|
| 121 |
+
</sch:pattern>
|
| 122 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/measurereport.xsd
ADDED
|
@@ -0,0 +1,343 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="MeasureReport" type="MeasureReport">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="MeasureReport">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="measure" minOccurs="1" maxOccurs="1" type="Reference">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">A reference to the Measure that was evaluated to produce this report.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="MeasureReportType">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">The type of measure report. This may be an individual report, which provides a single patient's score for the measure, a patient listing, which returns the list of patients that meet the various criteria in the measure, or a summary report, which returns a population count for each criteria in the measure.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="patient" minOccurs="0" maxOccurs="1" type="Reference">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Optional Patient if the report was requested for a single patient.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="period" minOccurs="1" maxOccurs="1" type="Period">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">The reporting period for which the report was calculated.</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="MeasureReportStatus">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">The report status. No data will be available until the report status is complete.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="date" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The date this measure report was generated.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="reportingOrganization" minOccurs="0" maxOccurs="1" type="Reference">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">Reporting Organization.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="group" type="MeasureReport.Group" minOccurs="0" maxOccurs="unbounded">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">The results of the calculation, one for each population group in the measure.</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="evaluatedResources" minOccurs="0" maxOccurs="1" type="Reference">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">A reference to a Bundle containing the Resources that were used in the evaluation of this report.</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
</xs:sequence>
|
| 98 |
+
</xs:extension>
|
| 99 |
+
</xs:complexContent>
|
| 100 |
+
</xs:complexType>
|
| 101 |
+
<xs:complexType name="MeasureReport.Group">
|
| 102 |
+
<xs:annotation>
|
| 103 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 104 |
+
</xs:annotation>
|
| 105 |
+
<xs:complexContent>
|
| 106 |
+
<xs:extension base="BackboneElement">
|
| 107 |
+
<xs:sequence>
|
| 108 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 109 |
+
<xs:annotation>
|
| 110 |
+
<xs:documentation xml:lang="en">The identifier of the population group as defined in the measure definition.</xs:documentation>
|
| 111 |
+
</xs:annotation>
|
| 112 |
+
</xs:element>
|
| 113 |
+
<xs:element name="population" type="MeasureReport.Population" minOccurs="0" maxOccurs="unbounded">
|
| 114 |
+
<xs:annotation>
|
| 115 |
+
<xs:documentation xml:lang="en">The populations that make up the population group, one for each type of population appropriate for the measure.</xs:documentation>
|
| 116 |
+
</xs:annotation>
|
| 117 |
+
</xs:element>
|
| 118 |
+
<xs:element name="measureScore" minOccurs="0" maxOccurs="1" type="decimal">
|
| 119 |
+
<xs:annotation>
|
| 120 |
+
<xs:documentation xml:lang="en">The measure score.</xs:documentation>
|
| 121 |
+
</xs:annotation>
|
| 122 |
+
</xs:element>
|
| 123 |
+
<xs:element name="stratifier" type="MeasureReport.Stratifier" minOccurs="0" maxOccurs="unbounded">
|
| 124 |
+
<xs:annotation>
|
| 125 |
+
<xs:documentation xml:lang="en">When a measure includes multiple stratifiers, there will be a stratifier group for each stratifier defined by the measure.</xs:documentation>
|
| 126 |
+
</xs:annotation>
|
| 127 |
+
</xs:element>
|
| 128 |
+
<xs:element name="supplementalData" type="MeasureReport.SupplementalData" minOccurs="0" maxOccurs="unbounded">
|
| 129 |
+
<xs:annotation>
|
| 130 |
+
<xs:documentation xml:lang="en">Supplemental data elements for the measure provide additional information requested by the measure for each patient involved in the populations.</xs:documentation>
|
| 131 |
+
</xs:annotation>
|
| 132 |
+
</xs:element>
|
| 133 |
+
</xs:sequence>
|
| 134 |
+
</xs:extension>
|
| 135 |
+
</xs:complexContent>
|
| 136 |
+
</xs:complexType>
|
| 137 |
+
<xs:complexType name="MeasureReport.Population">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
<xs:complexContent>
|
| 142 |
+
<xs:extension base="BackboneElement">
|
| 143 |
+
<xs:sequence>
|
| 144 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="code">
|
| 145 |
+
<xs:annotation>
|
| 146 |
+
<xs:documentation xml:lang="en">The type of the population.</xs:documentation>
|
| 147 |
+
</xs:annotation>
|
| 148 |
+
</xs:element>
|
| 149 |
+
<xs:element name="count" minOccurs="0" maxOccurs="1" type="integer">
|
| 150 |
+
<xs:annotation>
|
| 151 |
+
<xs:documentation xml:lang="en">The number of members of the population.</xs:documentation>
|
| 152 |
+
</xs:annotation>
|
| 153 |
+
</xs:element>
|
| 154 |
+
<xs:element name="patients" minOccurs="0" maxOccurs="1" type="Reference">
|
| 155 |
+
<xs:annotation>
|
| 156 |
+
<xs:documentation xml:lang="en">This element refers to a List of patient level MeasureReport resources, one for each patient in this population.</xs:documentation>
|
| 157 |
+
</xs:annotation>
|
| 158 |
+
</xs:element>
|
| 159 |
+
</xs:sequence>
|
| 160 |
+
</xs:extension>
|
| 161 |
+
</xs:complexContent>
|
| 162 |
+
</xs:complexType>
|
| 163 |
+
<xs:complexType name="MeasureReport.Stratifier">
|
| 164 |
+
<xs:annotation>
|
| 165 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 166 |
+
</xs:annotation>
|
| 167 |
+
<xs:complexContent>
|
| 168 |
+
<xs:extension base="BackboneElement">
|
| 169 |
+
<xs:sequence>
|
| 170 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 171 |
+
<xs:annotation>
|
| 172 |
+
<xs:documentation xml:lang="en">The identifier of this stratifier, as defined in the measure definition.</xs:documentation>
|
| 173 |
+
</xs:annotation>
|
| 174 |
+
</xs:element>
|
| 175 |
+
<xs:element name="group" type="MeasureReport.Group1" minOccurs="0" maxOccurs="unbounded">
|
| 176 |
+
<xs:annotation>
|
| 177 |
+
<xs:documentation xml:lang="en">This element contains the results for a single stratum within the stratifier. For example, when stratifying on administrative gender, there will be four strata, one for each possible gender value.</xs:documentation>
|
| 178 |
+
</xs:annotation>
|
| 179 |
+
</xs:element>
|
| 180 |
+
</xs:sequence>
|
| 181 |
+
</xs:extension>
|
| 182 |
+
</xs:complexContent>
|
| 183 |
+
</xs:complexType>
|
| 184 |
+
<xs:complexType name="MeasureReport.Group1">
|
| 185 |
+
<xs:annotation>
|
| 186 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 187 |
+
</xs:annotation>
|
| 188 |
+
<xs:complexContent>
|
| 189 |
+
<xs:extension base="BackboneElement">
|
| 190 |
+
<xs:sequence>
|
| 191 |
+
<xs:element name="value" minOccurs="1" maxOccurs="1" type="string">
|
| 192 |
+
<xs:annotation>
|
| 193 |
+
<xs:documentation xml:lang="en">The value for this stratum, expressed as a string. When defining stratifiers on complex values, the value must be rendered such that the value for each stratum within the stratifier is unique.</xs:documentation>
|
| 194 |
+
</xs:annotation>
|
| 195 |
+
</xs:element>
|
| 196 |
+
<xs:element name="population" type="MeasureReport.Population1" minOccurs="0" maxOccurs="unbounded">
|
| 197 |
+
<xs:annotation>
|
| 198 |
+
<xs:documentation xml:lang="en">The populations that make up the stratum, one for each type of population appropriate to the measure.</xs:documentation>
|
| 199 |
+
</xs:annotation>
|
| 200 |
+
</xs:element>
|
| 201 |
+
<xs:element name="measureScore" minOccurs="0" maxOccurs="1" type="decimal">
|
| 202 |
+
<xs:annotation>
|
| 203 |
+
<xs:documentation xml:lang="en">The measure score for this stratum.</xs:documentation>
|
| 204 |
+
</xs:annotation>
|
| 205 |
+
</xs:element>
|
| 206 |
+
</xs:sequence>
|
| 207 |
+
</xs:extension>
|
| 208 |
+
</xs:complexContent>
|
| 209 |
+
</xs:complexType>
|
| 210 |
+
<xs:complexType name="MeasureReport.Population1">
|
| 211 |
+
<xs:annotation>
|
| 212 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 213 |
+
</xs:annotation>
|
| 214 |
+
<xs:complexContent>
|
| 215 |
+
<xs:extension base="BackboneElement">
|
| 216 |
+
<xs:sequence>
|
| 217 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="code">
|
| 218 |
+
<xs:annotation>
|
| 219 |
+
<xs:documentation xml:lang="en">The type of the population.</xs:documentation>
|
| 220 |
+
</xs:annotation>
|
| 221 |
+
</xs:element>
|
| 222 |
+
<xs:element name="count" minOccurs="0" maxOccurs="1" type="integer">
|
| 223 |
+
<xs:annotation>
|
| 224 |
+
<xs:documentation xml:lang="en">The number of members of the population in this stratum.</xs:documentation>
|
| 225 |
+
</xs:annotation>
|
| 226 |
+
</xs:element>
|
| 227 |
+
<xs:element name="patients" minOccurs="0" maxOccurs="1" type="Reference">
|
| 228 |
+
<xs:annotation>
|
| 229 |
+
<xs:documentation xml:lang="en">This element refers to a List of patient level MeasureReport resources, one for each patient in this population in this stratum.</xs:documentation>
|
| 230 |
+
</xs:annotation>
|
| 231 |
+
</xs:element>
|
| 232 |
+
</xs:sequence>
|
| 233 |
+
</xs:extension>
|
| 234 |
+
</xs:complexContent>
|
| 235 |
+
</xs:complexType>
|
| 236 |
+
<xs:complexType name="MeasureReport.SupplementalData">
|
| 237 |
+
<xs:annotation>
|
| 238 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 239 |
+
</xs:annotation>
|
| 240 |
+
<xs:complexContent>
|
| 241 |
+
<xs:extension base="BackboneElement">
|
| 242 |
+
<xs:sequence>
|
| 243 |
+
<xs:element name="identifier" minOccurs="1" maxOccurs="1" type="Identifier">
|
| 244 |
+
<xs:annotation>
|
| 245 |
+
<xs:documentation xml:lang="en">The identifier of the supplemental data element as defined in the measure.</xs:documentation>
|
| 246 |
+
</xs:annotation>
|
| 247 |
+
</xs:element>
|
| 248 |
+
<xs:element name="group" type="MeasureReport.Group2" minOccurs="0" maxOccurs="unbounded">
|
| 249 |
+
<xs:annotation>
|
| 250 |
+
<xs:documentation xml:lang="en">This element contains the results for a single value within the supplemental data. For example, when reporting supplemental data for administrative gender, there will be four groups, one for each possible gender value.</xs:documentation>
|
| 251 |
+
</xs:annotation>
|
| 252 |
+
</xs:element>
|
| 253 |
+
</xs:sequence>
|
| 254 |
+
</xs:extension>
|
| 255 |
+
</xs:complexContent>
|
| 256 |
+
</xs:complexType>
|
| 257 |
+
<xs:complexType name="MeasureReport.Group2">
|
| 258 |
+
<xs:annotation>
|
| 259 |
+
<xs:documentation xml:lang="en">The MeasureReport resource contains the results of evaluating a measure.</xs:documentation>
|
| 260 |
+
</xs:annotation>
|
| 261 |
+
<xs:complexContent>
|
| 262 |
+
<xs:extension base="BackboneElement">
|
| 263 |
+
<xs:sequence>
|
| 264 |
+
<xs:element name="value" minOccurs="1" maxOccurs="1" type="string">
|
| 265 |
+
<xs:annotation>
|
| 266 |
+
<xs:documentation xml:lang="en">The value for this supplemental data element, expressed as a string. When defining supplemental data on complex values, the value must be rendered such that the value for each group within the supplemental data element is unique.</xs:documentation>
|
| 267 |
+
</xs:annotation>
|
| 268 |
+
</xs:element>
|
| 269 |
+
<xs:element name="count" minOccurs="0" maxOccurs="1" type="integer">
|
| 270 |
+
<xs:annotation>
|
| 271 |
+
<xs:documentation xml:lang="en">The number of members in the supplemental data group.</xs:documentation>
|
| 272 |
+
</xs:annotation>
|
| 273 |
+
</xs:element>
|
| 274 |
+
<xs:element name="patients" minOccurs="0" maxOccurs="1" type="Reference">
|
| 275 |
+
<xs:annotation>
|
| 276 |
+
<xs:documentation xml:lang="en">This element refers to a List of patient level MeasureReport resources, one for each patient in this population.</xs:documentation>
|
| 277 |
+
</xs:annotation>
|
| 278 |
+
</xs:element>
|
| 279 |
+
</xs:sequence>
|
| 280 |
+
</xs:extension>
|
| 281 |
+
</xs:complexContent>
|
| 282 |
+
</xs:complexType>
|
| 283 |
+
<xs:simpleType name="MeasureReportStatus-list">
|
| 284 |
+
<xs:restriction base="code-primitive">
|
| 285 |
+
<xs:enumeration value="complete">
|
| 286 |
+
<xs:annotation>
|
| 287 |
+
<xs:documentation xml:lang="en">Complete</xs:documentation>
|
| 288 |
+
</xs:annotation>
|
| 289 |
+
</xs:enumeration>
|
| 290 |
+
<xs:enumeration value="pending">
|
| 291 |
+
<xs:annotation>
|
| 292 |
+
<xs:documentation xml:lang="en">Pending</xs:documentation>
|
| 293 |
+
</xs:annotation>
|
| 294 |
+
</xs:enumeration>
|
| 295 |
+
<xs:enumeration value="error">
|
| 296 |
+
<xs:annotation>
|
| 297 |
+
<xs:documentation xml:lang="en">Error</xs:documentation>
|
| 298 |
+
</xs:annotation>
|
| 299 |
+
</xs:enumeration>
|
| 300 |
+
</xs:restriction>
|
| 301 |
+
</xs:simpleType>
|
| 302 |
+
<xs:complexType name="MeasureReportStatus">
|
| 303 |
+
<xs:annotation>
|
| 304 |
+
<xs:documentation xml:lang="en">The status of the measure report</xs:documentation>
|
| 305 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 306 |
+
</xs:annotation>
|
| 307 |
+
<xs:complexContent>
|
| 308 |
+
<xs:extension base="Element">
|
| 309 |
+
<xs:attribute name="value" type="MeasureReportStatus-list" use="optional"/>
|
| 310 |
+
</xs:extension>
|
| 311 |
+
</xs:complexContent>
|
| 312 |
+
</xs:complexType>
|
| 313 |
+
<xs:simpleType name="MeasureReportType-list">
|
| 314 |
+
<xs:restriction base="code-primitive">
|
| 315 |
+
<xs:enumeration value="individual">
|
| 316 |
+
<xs:annotation>
|
| 317 |
+
<xs:documentation xml:lang="en">Individual</xs:documentation>
|
| 318 |
+
</xs:annotation>
|
| 319 |
+
</xs:enumeration>
|
| 320 |
+
<xs:enumeration value="patient-list">
|
| 321 |
+
<xs:annotation>
|
| 322 |
+
<xs:documentation xml:lang="en">Patient List</xs:documentation>
|
| 323 |
+
</xs:annotation>
|
| 324 |
+
</xs:enumeration>
|
| 325 |
+
<xs:enumeration value="summary">
|
| 326 |
+
<xs:annotation>
|
| 327 |
+
<xs:documentation xml:lang="en">Summary</xs:documentation>
|
| 328 |
+
</xs:annotation>
|
| 329 |
+
</xs:enumeration>
|
| 330 |
+
</xs:restriction>
|
| 331 |
+
</xs:simpleType>
|
| 332 |
+
<xs:complexType name="MeasureReportType">
|
| 333 |
+
<xs:annotation>
|
| 334 |
+
<xs:documentation xml:lang="en">The type of the measure report</xs:documentation>
|
| 335 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 336 |
+
</xs:annotation>
|
| 337 |
+
<xs:complexContent>
|
| 338 |
+
<xs:extension base="Element">
|
| 339 |
+
<xs:attribute name="value" type="MeasureReportType-list" use="optional"/>
|
| 340 |
+
</xs:extension>
|
| 341 |
+
</xs:complexContent>
|
| 342 |
+
</xs:complexType>
|
| 343 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/media.sch
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Media
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Media</sch:title>
|
| 21 |
+
<sch:rule context="//f:Media">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="not(f:type/@value='audio') or not(f:height)">mda-1: Height can only be used for a photo or video</sch:assert>
|
| 27 |
+
<sch:assert test="not(f:type/@value='audio') or not(f:width)">mda-2: Width can only be used for a photo or video</sch:assert>
|
| 28 |
+
<sch:assert test="(f:type/@value='photo') or not(f:frames)">mda-3: Frames can only be used for a photo</sch:assert>
|
| 29 |
+
<sch:assert test="not(f:type/@value='photo') or not(f:duration)">mda-4: Duration can only be used for an audio or a video</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Media/f:text/h:div">
|
| 32 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 33 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 34 |
+
</sch:rule>
|
| 35 |
+
<sch:rule context="//f:Media/f:extension">
|
| 36 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 37 |
+
</sch:rule>
|
| 38 |
+
<sch:rule context="//f:Media/f:modifierExtension">
|
| 39 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 40 |
+
</sch:rule>
|
| 41 |
+
<sch:rule context="//f:Media/f:identifier/f:period">
|
| 42 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 43 |
+
</sch:rule>
|
| 44 |
+
<sch:rule context="//f:Media/f:identifier/f:assigner">
|
| 45 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
<sch:rule context="//f:Media/f:subject">
|
| 48 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 49 |
+
</sch:rule>
|
| 50 |
+
<sch:rule context="//f:Media/f:subject/f:identifier/f:period">
|
| 51 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
<sch:rule context="//f:Media/f:subject/f:identifier/f:assigner">
|
| 54 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 55 |
+
</sch:rule>
|
| 56 |
+
<sch:rule context="//f:Media/f:operator">
|
| 57 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 58 |
+
</sch:rule>
|
| 59 |
+
<sch:rule context="//f:Media/f:operator/f:identifier/f:period">
|
| 60 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 61 |
+
</sch:rule>
|
| 62 |
+
<sch:rule context="//f:Media/f:operator/f:identifier/f:assigner">
|
| 63 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 64 |
+
</sch:rule>
|
| 65 |
+
<sch:rule context="//f:Media/f:content">
|
| 66 |
+
<sch:assert test="not(exists(f:data)) or exists(f:contentType)">att-1: It the Attachment has data, it SHALL have a contentType</sch:assert>
|
| 67 |
+
</sch:rule>
|
| 68 |
+
</sch:pattern>
|
| 69 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/media.xsd
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Media" type="Media">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Media">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">A photo, video, or audio recording acquired or used in healthcare. The actual content may be inline or provided by direct reference.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">Identifiers associated with the image - these may include identifiers for the image itself, identifiers for the context of its collection (e.g. series ids) and context ids such as accession numbers or other workflow identifiers.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="type" minOccurs="1" maxOccurs="1" type="DigitalMediaType">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Whether the media is a photo (still image), an audio recording, or a video recording.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="subtype" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Details of the type of the media - usually, how it was acquired (what type of device). If images sourced from a DICOM system, are wrapped in a Media resource, then this is the modality.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="view" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">The name of the imaging view e.g. Lateral or Antero-posterior (AP).</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="subject" minOccurs="0" maxOccurs="1" type="Reference">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">Who/What this Media is a record of.</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
<xs:element name="operator" minOccurs="0" maxOccurs="1" type="Reference">
|
| 78 |
+
<xs:annotation>
|
| 79 |
+
<xs:documentation xml:lang="en">The person who administered the collection of the image.</xs:documentation>
|
| 80 |
+
</xs:annotation>
|
| 81 |
+
</xs:element>
|
| 82 |
+
<xs:element name="deviceName" minOccurs="0" maxOccurs="1" type="string">
|
| 83 |
+
<xs:annotation>
|
| 84 |
+
<xs:documentation xml:lang="en">The name of the device / manufacturer of the device that was used to make the recording.</xs:documentation>
|
| 85 |
+
</xs:annotation>
|
| 86 |
+
</xs:element>
|
| 87 |
+
<xs:element name="height" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 88 |
+
<xs:annotation>
|
| 89 |
+
<xs:documentation xml:lang="en">Height of the image in pixels (photo/video).</xs:documentation>
|
| 90 |
+
</xs:annotation>
|
| 91 |
+
</xs:element>
|
| 92 |
+
<xs:element name="width" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 93 |
+
<xs:annotation>
|
| 94 |
+
<xs:documentation xml:lang="en">Width of the image in pixels (photo/video).</xs:documentation>
|
| 95 |
+
</xs:annotation>
|
| 96 |
+
</xs:element>
|
| 97 |
+
<xs:element name="frames" minOccurs="0" maxOccurs="1" type="positiveInt">
|
| 98 |
+
<xs:annotation>
|
| 99 |
+
<xs:documentation xml:lang="en">The number of frames in a photo. This is used with a multi-page fax, or an imaging acquisition context that takes multiple slices in a single image, or an animated gif. If there is more than one frame, this SHALL have a value in order to alert interface software that a multi-frame capable rendering widget is required.</xs:documentation>
|
| 100 |
+
</xs:annotation>
|
| 101 |
+
</xs:element>
|
| 102 |
+
<xs:element name="duration" minOccurs="0" maxOccurs="1" type="unsignedInt">
|
| 103 |
+
<xs:annotation>
|
| 104 |
+
<xs:documentation xml:lang="en">The duration of the recording in seconds - for audio and video.</xs:documentation>
|
| 105 |
+
</xs:annotation>
|
| 106 |
+
</xs:element>
|
| 107 |
+
<xs:element name="content" minOccurs="1" maxOccurs="1" type="Attachment">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">The actual content of the media - inline or by direct reference to the media source file.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
</xs:element>
|
| 112 |
+
</xs:sequence>
|
| 113 |
+
</xs:extension>
|
| 114 |
+
</xs:complexContent>
|
| 115 |
+
</xs:complexType>
|
| 116 |
+
<xs:simpleType name="DigitalMediaType-list">
|
| 117 |
+
<xs:restriction base="code-primitive">
|
| 118 |
+
<xs:enumeration value="photo">
|
| 119 |
+
<xs:annotation>
|
| 120 |
+
<xs:documentation xml:lang="en">Photo</xs:documentation>
|
| 121 |
+
</xs:annotation>
|
| 122 |
+
</xs:enumeration>
|
| 123 |
+
<xs:enumeration value="video">
|
| 124 |
+
<xs:annotation>
|
| 125 |
+
<xs:documentation xml:lang="en">Video</xs:documentation>
|
| 126 |
+
</xs:annotation>
|
| 127 |
+
</xs:enumeration>
|
| 128 |
+
<xs:enumeration value="audio">
|
| 129 |
+
<xs:annotation>
|
| 130 |
+
<xs:documentation xml:lang="en">Audio</xs:documentation>
|
| 131 |
+
</xs:annotation>
|
| 132 |
+
</xs:enumeration>
|
| 133 |
+
</xs:restriction>
|
| 134 |
+
</xs:simpleType>
|
| 135 |
+
<xs:complexType name="DigitalMediaType">
|
| 136 |
+
<xs:annotation>
|
| 137 |
+
<xs:documentation xml:lang="en">Whether the Media is a photo, video, or audio</xs:documentation>
|
| 138 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 139 |
+
</xs:annotation>
|
| 140 |
+
<xs:complexContent>
|
| 141 |
+
<xs:extension base="Element">
|
| 142 |
+
<xs:attribute name="value" type="DigitalMediaType-list" use="optional"/>
|
| 143 |
+
</xs:extension>
|
| 144 |
+
</xs:complexContent>
|
| 145 |
+
</xs:complexType>
|
| 146 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medication.sch
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource Medication
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>Medication</sch:title>
|
| 21 |
+
<sch:rule context="//f:Medication">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
</sch:rule>
|
| 27 |
+
<sch:rule context="//f:Medication/f:text/h:div">
|
| 28 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 29 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 30 |
+
</sch:rule>
|
| 31 |
+
<sch:rule context="//f:Medication/f:extension">
|
| 32 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 33 |
+
</sch:rule>
|
| 34 |
+
<sch:rule context="//f:Medication/f:modifierExtension">
|
| 35 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 36 |
+
</sch:rule>
|
| 37 |
+
<sch:rule context="//f:Medication/f:manufacturer">
|
| 38 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 39 |
+
</sch:rule>
|
| 40 |
+
<sch:rule context="//f:Medication/f:manufacturer/f:identifier/f:period">
|
| 41 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 42 |
+
</sch:rule>
|
| 43 |
+
<sch:rule context="//f:Medication/f:manufacturer/f:identifier//f:assigner">
|
| 44 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 45 |
+
</sch:rule>
|
| 46 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:itemReference">
|
| 47 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 48 |
+
</sch:rule>
|
| 49 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:itemReference/f:identifier/f:period">
|
| 50 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 51 |
+
</sch:rule>
|
| 52 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:itemReference/f:identifier/f:assigner">
|
| 53 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 54 |
+
</sch:rule>
|
| 55 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:amount">
|
| 56 |
+
<sch:assert test="(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))">rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present</sch:assert>
|
| 57 |
+
</sch:rule>
|
| 58 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:amount/f:numerator">
|
| 59 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 60 |
+
</sch:rule>
|
| 61 |
+
<sch:rule context="//f:Medication/f:product/f:ingredient/f:amount/f:denominator">
|
| 62 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 63 |
+
</sch:rule>
|
| 64 |
+
<sch:rule context="//f:Medication/f:package/f:content/f:itemReference">
|
| 65 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 66 |
+
</sch:rule>
|
| 67 |
+
<sch:rule context="//f:Medication/f:package/f:content/f:itemReference/f:identifier/f:period">
|
| 68 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 69 |
+
</sch:rule>
|
| 70 |
+
<sch:rule context="//f:Medication/f:package/f:content/f:itemReference/f:identifier/f:assigner">
|
| 71 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 72 |
+
</sch:rule>
|
| 73 |
+
<sch:rule context="//f:Medication/f:package/f:content/f:amount">
|
| 74 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 75 |
+
</sch:rule>
|
| 76 |
+
</sch:pattern>
|
| 77 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medication.xsd
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="Medication" type="Medication">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="Medication">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="code" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">A code (or set of codes) that specify this medication, or a textual description if no code is available. Usage note: This could be a standard medication code such as a code from RxNorm, SNOMED CT, IDMP etc. It could also be a national or local formulary code, optionally with translations to other code systems.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="isBrand" minOccurs="0" maxOccurs="1" type="boolean">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Set to true if the item is attributable to a specific manufacturer.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:element name="manufacturer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Describes the details of the manufacturer.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
</xs:element>
|
| 67 |
+
<xs:element name="product" type="Medication.Product" minOccurs="0" maxOccurs="1">
|
| 68 |
+
<xs:annotation>
|
| 69 |
+
<xs:documentation xml:lang="en">Information that only applies to products (not packages).</xs:documentation>
|
| 70 |
+
</xs:annotation>
|
| 71 |
+
</xs:element>
|
| 72 |
+
<xs:element name="package" type="Medication.Package" minOccurs="0" maxOccurs="1">
|
| 73 |
+
<xs:annotation>
|
| 74 |
+
<xs:documentation xml:lang="en">Information that only applies to packages (not products).</xs:documentation>
|
| 75 |
+
</xs:annotation>
|
| 76 |
+
</xs:element>
|
| 77 |
+
</xs:sequence>
|
| 78 |
+
</xs:extension>
|
| 79 |
+
</xs:complexContent>
|
| 80 |
+
</xs:complexType>
|
| 81 |
+
<xs:complexType name="Medication.Product">
|
| 82 |
+
<xs:annotation>
|
| 83 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 84 |
+
</xs:annotation>
|
| 85 |
+
<xs:complexContent>
|
| 86 |
+
<xs:extension base="BackboneElement">
|
| 87 |
+
<xs:sequence>
|
| 88 |
+
<xs:element name="form" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 89 |
+
<xs:annotation>
|
| 90 |
+
<xs:documentation xml:lang="en">Describes the form of the item. Powder; tablets; capsule.</xs:documentation>
|
| 91 |
+
</xs:annotation>
|
| 92 |
+
</xs:element>
|
| 93 |
+
<xs:element name="ingredient" type="Medication.Ingredient" minOccurs="0" maxOccurs="unbounded">
|
| 94 |
+
<xs:annotation>
|
| 95 |
+
<xs:documentation xml:lang="en">Identifies a particular constituent of interest in the product.</xs:documentation>
|
| 96 |
+
</xs:annotation>
|
| 97 |
+
</xs:element>
|
| 98 |
+
<xs:element name="batch" type="Medication.Batch" minOccurs="0" maxOccurs="unbounded">
|
| 99 |
+
<xs:annotation>
|
| 100 |
+
<xs:documentation xml:lang="en">Information about a group of medication produced or packaged from one production run.</xs:documentation>
|
| 101 |
+
</xs:annotation>
|
| 102 |
+
</xs:element>
|
| 103 |
+
</xs:sequence>
|
| 104 |
+
</xs:extension>
|
| 105 |
+
</xs:complexContent>
|
| 106 |
+
</xs:complexType>
|
| 107 |
+
<xs:complexType name="Medication.Ingredient">
|
| 108 |
+
<xs:annotation>
|
| 109 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 110 |
+
</xs:annotation>
|
| 111 |
+
<xs:complexContent>
|
| 112 |
+
<xs:extension base="BackboneElement">
|
| 113 |
+
<xs:sequence>
|
| 114 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 115 |
+
<xs:annotation>
|
| 116 |
+
<xs:documentation xml:lang="en">The actual ingredient - either a substance (simple ingredient) or another medication.</xs:documentation>
|
| 117 |
+
</xs:annotation>
|
| 118 |
+
<xs:element name="itemCodeableConcept" type="CodeableConcept"/>
|
| 119 |
+
<xs:element name="itemReference" type="Reference"/>
|
| 120 |
+
</xs:choice>
|
| 121 |
+
<xs:element name="amount" minOccurs="0" maxOccurs="1" type="Ratio">
|
| 122 |
+
<xs:annotation>
|
| 123 |
+
<xs:documentation xml:lang="en">Specifies how many (or how much) of the items there are in this Medication. For example, 250 mg per tablet. This is expressed as a ratio where the numerator is 250mg and the denominator is 1 tablet.</xs:documentation>
|
| 124 |
+
</xs:annotation>
|
| 125 |
+
</xs:element>
|
| 126 |
+
</xs:sequence>
|
| 127 |
+
</xs:extension>
|
| 128 |
+
</xs:complexContent>
|
| 129 |
+
</xs:complexType>
|
| 130 |
+
<xs:complexType name="Medication.Batch">
|
| 131 |
+
<xs:annotation>
|
| 132 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 133 |
+
</xs:annotation>
|
| 134 |
+
<xs:complexContent>
|
| 135 |
+
<xs:extension base="BackboneElement">
|
| 136 |
+
<xs:sequence>
|
| 137 |
+
<xs:element name="lotNumber" minOccurs="0" maxOccurs="1" type="string">
|
| 138 |
+
<xs:annotation>
|
| 139 |
+
<xs:documentation xml:lang="en">The assigned lot number of a batch of the specified product.</xs:documentation>
|
| 140 |
+
</xs:annotation>
|
| 141 |
+
</xs:element>
|
| 142 |
+
<xs:element name="expirationDate" minOccurs="0" maxOccurs="1" type="dateTime">
|
| 143 |
+
<xs:annotation>
|
| 144 |
+
<xs:documentation xml:lang="en">When this specific batch of product will expire.</xs:documentation>
|
| 145 |
+
</xs:annotation>
|
| 146 |
+
</xs:element>
|
| 147 |
+
</xs:sequence>
|
| 148 |
+
</xs:extension>
|
| 149 |
+
</xs:complexContent>
|
| 150 |
+
</xs:complexType>
|
| 151 |
+
<xs:complexType name="Medication.Package">
|
| 152 |
+
<xs:annotation>
|
| 153 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 154 |
+
</xs:annotation>
|
| 155 |
+
<xs:complexContent>
|
| 156 |
+
<xs:extension base="BackboneElement">
|
| 157 |
+
<xs:sequence>
|
| 158 |
+
<xs:element name="container" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 159 |
+
<xs:annotation>
|
| 160 |
+
<xs:documentation xml:lang="en">The kind of container that this package comes as.</xs:documentation>
|
| 161 |
+
</xs:annotation>
|
| 162 |
+
</xs:element>
|
| 163 |
+
<xs:element name="content" type="Medication.Content" minOccurs="0" maxOccurs="unbounded">
|
| 164 |
+
<xs:annotation>
|
| 165 |
+
<xs:documentation xml:lang="en">A set of components that go to make up the described item.</xs:documentation>
|
| 166 |
+
</xs:annotation>
|
| 167 |
+
</xs:element>
|
| 168 |
+
</xs:sequence>
|
| 169 |
+
</xs:extension>
|
| 170 |
+
</xs:complexContent>
|
| 171 |
+
</xs:complexType>
|
| 172 |
+
<xs:complexType name="Medication.Content">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation xml:lang="en">This resource is primarily used for the identification and definition of a medication. It covers the ingredients and the packaging for a medication.</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
<xs:complexContent>
|
| 177 |
+
<xs:extension base="BackboneElement">
|
| 178 |
+
<xs:sequence>
|
| 179 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 180 |
+
<xs:annotation>
|
| 181 |
+
<xs:documentation xml:lang="en">Identifies one of the items in the package.</xs:documentation>
|
| 182 |
+
</xs:annotation>
|
| 183 |
+
<xs:element name="itemCodeableConcept" type="CodeableConcept"/>
|
| 184 |
+
<xs:element name="itemReference" type="Reference"/>
|
| 185 |
+
</xs:choice>
|
| 186 |
+
<xs:element name="amount" minOccurs="0" maxOccurs="1" type="Quantity">
|
| 187 |
+
<xs:annotation>
|
| 188 |
+
<xs:documentation xml:lang="en">The amount of the product that is in the package.</xs:documentation>
|
| 189 |
+
</xs:annotation>
|
| 190 |
+
</xs:element>
|
| 191 |
+
</xs:sequence>
|
| 192 |
+
</xs:extension>
|
| 193 |
+
</xs:complexContent>
|
| 194 |
+
</xs:complexType>
|
| 195 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationadministration.sch
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource MedicationAdministration
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>MedicationAdministration</sch:title>
|
| 21 |
+
<sch:rule context="//f:MedicationAdministration">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="not(exists(f:reasonNotGiven) and f:notGiven/@value=false())">mad-2: Reason not given is only permitted if NotGiven is true</sch:assert>
|
| 27 |
+
<sch:assert test="not(exists(f:reasonGiven) and f:notGiven/@value=true())">mad-3: Reason given is only permitted if NotGiven is false</sch:assert>
|
| 28 |
+
</sch:rule>
|
| 29 |
+
<sch:rule context="//f:MedicationAdministration/f:text/h:div">
|
| 30 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 31 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 32 |
+
</sch:rule>
|
| 33 |
+
<sch:rule context="//f:MedicationAdministration/f:extension">
|
| 34 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 35 |
+
</sch:rule>
|
| 36 |
+
<sch:rule context="//f:MedicationAdministration/f:modifierExtension">
|
| 37 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 38 |
+
</sch:rule>
|
| 39 |
+
<sch:rule context="//f:MedicationAdministration/f:identifier/f:period">
|
| 40 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 41 |
+
</sch:rule>
|
| 42 |
+
<sch:rule context="//f:MedicationAdministration/f:identifier/f:assigner">
|
| 43 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 44 |
+
</sch:rule>
|
| 45 |
+
<sch:rule context="//f:MedicationAdministration/f:medicationReference">
|
| 46 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 47 |
+
</sch:rule>
|
| 48 |
+
<sch:rule context="//f:MedicationAdministration/f:medicationReference/f:identifier/f:period">
|
| 49 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 50 |
+
</sch:rule>
|
| 51 |
+
<sch:rule context="//f:MedicationAdministration/f:medicationReference/f:identifier/f:assigner">
|
| 52 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 53 |
+
</sch:rule>
|
| 54 |
+
<sch:rule context="//f:MedicationAdministration/f:patient">
|
| 55 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 56 |
+
</sch:rule>
|
| 57 |
+
<sch:rule context="//f:MedicationAdministration/f:patient/f:identifier/f:period">
|
| 58 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 59 |
+
</sch:rule>
|
| 60 |
+
<sch:rule context="//f:MedicationAdministration/f:patient/f:identifier/f:assigner">
|
| 61 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 62 |
+
</sch:rule>
|
| 63 |
+
<sch:rule context="//f:MedicationAdministration/f:encounter">
|
| 64 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 65 |
+
</sch:rule>
|
| 66 |
+
<sch:rule context="//f:MedicationAdministration/f:encounter/f:identifier/f:period">
|
| 67 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 68 |
+
</sch:rule>
|
| 69 |
+
<sch:rule context="//f:MedicationAdministration/f:encounter/f:identifier/f:assigner">
|
| 70 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 71 |
+
</sch:rule>
|
| 72 |
+
<sch:rule context="//f:MedicationAdministration/f:supportingInformation">
|
| 73 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 74 |
+
</sch:rule>
|
| 75 |
+
<sch:rule context="//f:MedicationAdministration/f:supportingInformation/f:identifier/f:period">
|
| 76 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 77 |
+
</sch:rule>
|
| 78 |
+
<sch:rule context="//f:MedicationAdministration/f:supportingInformation/f:identifier/f:assigner">
|
| 79 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 80 |
+
</sch:rule>
|
| 81 |
+
<sch:rule context="//f:MedicationAdministration/f:effectivePeriod">
|
| 82 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 83 |
+
</sch:rule>
|
| 84 |
+
<sch:rule context="//f:MedicationAdministration/f:performer">
|
| 85 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 86 |
+
</sch:rule>
|
| 87 |
+
<sch:rule context="//f:MedicationAdministration/f:performer/f:identifier/f:period">
|
| 88 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 89 |
+
</sch:rule>
|
| 90 |
+
<sch:rule context="//f:MedicationAdministration/f:performer/f:identifier/f:assigner">
|
| 91 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 92 |
+
</sch:rule>
|
| 93 |
+
<sch:rule context="//f:MedicationAdministration/f:reasonReference">
|
| 94 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 95 |
+
</sch:rule>
|
| 96 |
+
<sch:rule context="//f:MedicationAdministration/f:reasonReference/f:identifier/f:period">
|
| 97 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 98 |
+
</sch:rule>
|
| 99 |
+
<sch:rule context="//f:MedicationAdministration/f:reasonReference/f:identifier/f:assigner">
|
| 100 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 101 |
+
</sch:rule>
|
| 102 |
+
<sch:rule context="//f:MedicationAdministration/f:prescription">
|
| 103 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 104 |
+
</sch:rule>
|
| 105 |
+
<sch:rule context="//f:MedicationAdministration/f:prescription/f:identifier/f:period">
|
| 106 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 107 |
+
</sch:rule>
|
| 108 |
+
<sch:rule context="//f:MedicationAdministration/f:prescription/f:identifier/f:assigner">
|
| 109 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 110 |
+
</sch:rule>
|
| 111 |
+
<sch:rule context="//f:MedicationAdministration/f:device">
|
| 112 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 113 |
+
</sch:rule>
|
| 114 |
+
<sch:rule context="//f:MedicationAdministration/f:device/f:identifier/f:period">
|
| 115 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 116 |
+
</sch:rule>
|
| 117 |
+
<sch:rule context="//f:MedicationAdministration/f:device/f:identifier/f:assigner">
|
| 118 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 119 |
+
</sch:rule>
|
| 120 |
+
<sch:rule context="//f:MedicationAdministration/f:note/f:authorReference">
|
| 121 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 122 |
+
</sch:rule>
|
| 123 |
+
<sch:rule context="//f:MedicationAdministration/f:note/f:authorReference/f:identifier/f:period">
|
| 124 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 125 |
+
</sch:rule>
|
| 126 |
+
<sch:rule context="//f:MedicationAdministration/f:note/f:authorReference/f:identifier/f:assigner">
|
| 127 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 128 |
+
</sch:rule>
|
| 129 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage">
|
| 130 |
+
<sch:assert test="exists(f:dose) or exists(f:rateRatio) or exists(f:rateRange)">mad-1: SHALL have at least one of dosage.dose and dosage.rate[x]</sch:assert>
|
| 131 |
+
</sch:rule>
|
| 132 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage/f:dose">
|
| 133 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 134 |
+
</sch:rule>
|
| 135 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage/f:rateRatio">
|
| 136 |
+
<sch:assert test="(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))">rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present</sch:assert>
|
| 137 |
+
</sch:rule>
|
| 138 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage/f:rateRatio/f:numerator">
|
| 139 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 140 |
+
</sch:rule>
|
| 141 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage/f:rateRatio/f:denominator">
|
| 142 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 143 |
+
</sch:rule>
|
| 144 |
+
<sch:rule context="//f:MedicationAdministration/f:dosage/f:rateQuantity">
|
| 145 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 146 |
+
</sch:rule>
|
| 147 |
+
<sch:rule context="//f:MedicationAdministration/f:eventHistory">
|
| 148 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 149 |
+
</sch:rule>
|
| 150 |
+
<sch:rule context="//f:MedicationAdministration/f:eventHistory/f:identifier/f:period">
|
| 151 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 152 |
+
</sch:rule>
|
| 153 |
+
<sch:rule context="//f:MedicationAdministration/f:eventHistory/f:identifier/f:assigner">
|
| 154 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 155 |
+
</sch:rule>
|
| 156 |
+
</sch:pattern>
|
| 157 |
+
</sch:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationadministration.xsd
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<!--
|
| 3 |
+
Copyright (c) 2011+, HL7, Inc.
|
| 4 |
+
All rights reserved.
|
| 5 |
+
|
| 6 |
+
Redistribution and use in source and binary forms, with or without modification,
|
| 7 |
+
are permitted provided that the following conditions are met:
|
| 8 |
+
|
| 9 |
+
* Redistributions of source code must retain the above copyright notice, this
|
| 10 |
+
list of conditions and the following disclaimer.
|
| 11 |
+
* Redistributions in binary form must reproduce the above copyright notice,
|
| 12 |
+
this list of conditions and the following disclaimer in the documentation
|
| 13 |
+
and/or other materials provided with the distribution.
|
| 14 |
+
* Neither the name of HL7 nor the names of its contributors may be used to
|
| 15 |
+
endorse or promote products derived from this software without specific
|
| 16 |
+
prior written permission.
|
| 17 |
+
|
| 18 |
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
| 19 |
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
| 20 |
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
| 21 |
+
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
| 22 |
+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
| 23 |
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 24 |
+
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
| 25 |
+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
| 26 |
+
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
| 27 |
+
POSSIBILITY OF SUCH DAMAGE.
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
Generated on Tue, Dec 6, 2016 12:22+1100 for FHIR v1.8.0
|
| 31 |
+
|
| 32 |
+
Note: the schemas & schematrons do not contain all of the rules about what makes resources
|
| 33 |
+
valid. Implementers will still need to be familiar with the content of the specification and with
|
| 34 |
+
any profiles that apply to the resources in order to make a conformant implementation.
|
| 35 |
+
|
| 36 |
+
-->
|
| 37 |
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://hl7.org/fhir" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://hl7.org/fhir" elementFormDefault="qualified" version="1.0">
|
| 38 |
+
<xs:include schemaLocation="fhir-base.xsd"/>
|
| 39 |
+
<xs:element name="MedicationAdministration" type="MedicationAdministration">
|
| 40 |
+
<xs:annotation>
|
| 41 |
+
<xs:documentation xml:lang="en">Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.</xs:documentation>
|
| 42 |
+
</xs:annotation>
|
| 43 |
+
</xs:element>
|
| 44 |
+
<xs:complexType name="MedicationAdministration">
|
| 45 |
+
<xs:annotation>
|
| 46 |
+
<xs:documentation xml:lang="en">Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.</xs:documentation>
|
| 47 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 48 |
+
</xs:annotation>
|
| 49 |
+
<xs:complexContent>
|
| 50 |
+
<xs:extension base="DomainResource">
|
| 51 |
+
<xs:sequence>
|
| 52 |
+
<xs:element name="identifier" minOccurs="0" maxOccurs="unbounded" type="Identifier">
|
| 53 |
+
<xs:annotation>
|
| 54 |
+
<xs:documentation xml:lang="en">External identifier - FHIR will generate its own internal identifiers (probably URLs) which do not need to be explicitly managed by the resource. The identifier here is one that would be used by another non-FHIR system - for example an automated medication pump would provide a record each time it operated; an administration while the patient was off the ward might be made with a different system and entered after the event. Particularly important if these records have to be updated.</xs:documentation>
|
| 55 |
+
</xs:annotation>
|
| 56 |
+
</xs:element>
|
| 57 |
+
<xs:element name="status" minOccurs="1" maxOccurs="1" type="MedicationAdministrationStatus">
|
| 58 |
+
<xs:annotation>
|
| 59 |
+
<xs:documentation xml:lang="en">Will generally be set to show that the administration has been completed. For some long running administrations such as infusions it is possible for an administration to be started but not completed or it may be paused while some other process is under way.</xs:documentation>
|
| 60 |
+
</xs:annotation>
|
| 61 |
+
</xs:element>
|
| 62 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 63 |
+
<xs:annotation>
|
| 64 |
+
<xs:documentation xml:lang="en">Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications.</xs:documentation>
|
| 65 |
+
</xs:annotation>
|
| 66 |
+
<xs:element name="medicationCodeableConcept" type="CodeableConcept"/>
|
| 67 |
+
<xs:element name="medicationReference" type="Reference"/>
|
| 68 |
+
</xs:choice>
|
| 69 |
+
<xs:element name="patient" minOccurs="1" maxOccurs="1" type="Reference">
|
| 70 |
+
<xs:annotation>
|
| 71 |
+
<xs:documentation xml:lang="en">The person or animal receiving the medication.</xs:documentation>
|
| 72 |
+
</xs:annotation>
|
| 73 |
+
</xs:element>
|
| 74 |
+
<xs:element name="encounter" minOccurs="0" maxOccurs="1" type="Reference">
|
| 75 |
+
<xs:annotation>
|
| 76 |
+
<xs:documentation xml:lang="en">The visit, admission or other contact between patient and health care provider the medication administration was performed as part of.</xs:documentation>
|
| 77 |
+
</xs:annotation>
|
| 78 |
+
</xs:element>
|
| 79 |
+
<xs:element name="supportingInformation" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 80 |
+
<xs:annotation>
|
| 81 |
+
<xs:documentation xml:lang="en">Additional information (for example, patient height and weight) that supports the administration of the medication.</xs:documentation>
|
| 82 |
+
</xs:annotation>
|
| 83 |
+
</xs:element>
|
| 84 |
+
<xs:choice minOccurs="1" maxOccurs="1" >
|
| 85 |
+
<xs:annotation>
|
| 86 |
+
<xs:documentation xml:lang="en">A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate.</xs:documentation>
|
| 87 |
+
</xs:annotation>
|
| 88 |
+
<xs:element name="effectiveDateTime" type="dateTime"/>
|
| 89 |
+
<xs:element name="effectivePeriod" type="Period"/>
|
| 90 |
+
</xs:choice>
|
| 91 |
+
<xs:element name="performer" minOccurs="0" maxOccurs="1" type="Reference">
|
| 92 |
+
<xs:annotation>
|
| 93 |
+
<xs:documentation xml:lang="en">The individual who was responsible for giving the medication to the patient.</xs:documentation>
|
| 94 |
+
</xs:annotation>
|
| 95 |
+
</xs:element>
|
| 96 |
+
<xs:element name="reasonReference" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 97 |
+
<xs:annotation>
|
| 98 |
+
<xs:documentation xml:lang="en">Condition or observation that supports why the medication was administered.</xs:documentation>
|
| 99 |
+
</xs:annotation>
|
| 100 |
+
</xs:element>
|
| 101 |
+
<xs:element name="prescription" minOccurs="0" maxOccurs="1" type="Reference">
|
| 102 |
+
<xs:annotation>
|
| 103 |
+
<xs:documentation xml:lang="en">The original request, instruction or authority to perform the administration.</xs:documentation>
|
| 104 |
+
</xs:annotation>
|
| 105 |
+
</xs:element>
|
| 106 |
+
<xs:element name="notGiven" minOccurs="0" maxOccurs="1" type="boolean">
|
| 107 |
+
<xs:annotation>
|
| 108 |
+
<xs:documentation xml:lang="en">Set this to true if the record is saying that the medication was NOT administered.</xs:documentation>
|
| 109 |
+
</xs:annotation>
|
| 110 |
+
</xs:element>
|
| 111 |
+
<xs:element name="reasonNotGiven" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 112 |
+
<xs:annotation>
|
| 113 |
+
<xs:documentation xml:lang="en">A code indicating why the administration was not performed.</xs:documentation>
|
| 114 |
+
</xs:annotation>
|
| 115 |
+
</xs:element>
|
| 116 |
+
<xs:element name="reasonGiven" minOccurs="0" maxOccurs="unbounded" type="CodeableConcept">
|
| 117 |
+
<xs:annotation>
|
| 118 |
+
<xs:documentation xml:lang="en">A code indicating why the medication was given.</xs:documentation>
|
| 119 |
+
</xs:annotation>
|
| 120 |
+
</xs:element>
|
| 121 |
+
<xs:element name="device" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 122 |
+
<xs:annotation>
|
| 123 |
+
<xs:documentation xml:lang="en">The device used in administering the medication to the patient. For example, a particular infusion pump.</xs:documentation>
|
| 124 |
+
</xs:annotation>
|
| 125 |
+
</xs:element>
|
| 126 |
+
<xs:element name="note" minOccurs="0" maxOccurs="unbounded" type="Annotation">
|
| 127 |
+
<xs:annotation>
|
| 128 |
+
<xs:documentation xml:lang="en">Extra information about the medication administration that is not conveyed by the other attributes.</xs:documentation>
|
| 129 |
+
</xs:annotation>
|
| 130 |
+
</xs:element>
|
| 131 |
+
<xs:element name="dosage" type="MedicationAdministration.Dosage" minOccurs="0" maxOccurs="1">
|
| 132 |
+
<xs:annotation>
|
| 133 |
+
<xs:documentation xml:lang="en">Describes the medication dosage information details e.g. dose, rate, site, route, etc.</xs:documentation>
|
| 134 |
+
</xs:annotation>
|
| 135 |
+
</xs:element>
|
| 136 |
+
<xs:element name="eventHistory" minOccurs="0" maxOccurs="unbounded" type="Reference">
|
| 137 |
+
<xs:annotation>
|
| 138 |
+
<xs:documentation xml:lang="en">A summary of the events of interest that have occurred, such as when the administration was verified.</xs:documentation>
|
| 139 |
+
</xs:annotation>
|
| 140 |
+
</xs:element>
|
| 141 |
+
</xs:sequence>
|
| 142 |
+
</xs:extension>
|
| 143 |
+
</xs:complexContent>
|
| 144 |
+
</xs:complexType>
|
| 145 |
+
<xs:complexType name="MedicationAdministration.Dosage">
|
| 146 |
+
<xs:annotation>
|
| 147 |
+
<xs:documentation xml:lang="en">Describes the event of a patient consuming or otherwise being administered a medication. This may be as simple as swallowing a tablet or it may be a long running infusion. Related resources tie this event to the authorizing prescription, and the specific encounter between patient and health care practitioner.</xs:documentation>
|
| 148 |
+
</xs:annotation>
|
| 149 |
+
<xs:complexContent>
|
| 150 |
+
<xs:extension base="BackboneElement">
|
| 151 |
+
<xs:sequence>
|
| 152 |
+
<xs:element name="text" minOccurs="0" maxOccurs="1" type="string">
|
| 153 |
+
<xs:annotation>
|
| 154 |
+
<xs:documentation xml:lang="en">Free text dosage can be used for cases where the dosage administered is too complex to code. When coded dosage is present, the free text dosage may still be present for display to humans.
|
| 155 |
+
</xs:annotation>
|
| 156 |
+
</xs:element>
|
| 157 |
+
<xs:element name="site" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 158 |
+
<xs:annotation>
|
| 159 |
+
<xs:documentation xml:lang="en">A coded specification of the anatomic site where the medication first entered the body. For example, "left arm".</xs:documentation>
|
| 160 |
+
</xs:annotation>
|
| 161 |
+
</xs:element>
|
| 162 |
+
<xs:element name="route" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 163 |
+
<xs:annotation>
|
| 164 |
+
<xs:documentation xml:lang="en">A code specifying the route or physiological path of administration of a therapeutic agent into or onto the patient. For example, topical, intravenous, etc.</xs:documentation>
|
| 165 |
+
</xs:annotation>
|
| 166 |
+
</xs:element>
|
| 167 |
+
<xs:element name="method" minOccurs="0" maxOccurs="1" type="CodeableConcept">
|
| 168 |
+
<xs:annotation>
|
| 169 |
+
<xs:documentation xml:lang="en">A coded value indicating the method by which the medication is intended to be or was introduced into or on the body. This attribute will most often NOT be populated. It is most commonly used for injections. For example, Slow Push, Deep IV.</xs:documentation>
|
| 170 |
+
</xs:annotation>
|
| 171 |
+
</xs:element>
|
| 172 |
+
<xs:element name="dose" minOccurs="0" maxOccurs="1" type="Quantity">
|
| 173 |
+
<xs:annotation>
|
| 174 |
+
<xs:documentation xml:lang="en">The amount of the medication given at one administration event. Use this value when the administration is essentially an instantaneous event such as a swallowing a tablet or giving an injection.</xs:documentation>
|
| 175 |
+
</xs:annotation>
|
| 176 |
+
</xs:element>
|
| 177 |
+
<xs:choice minOccurs="0" maxOccurs="1" >
|
| 178 |
+
<xs:annotation>
|
| 179 |
+
<xs:documentation xml:lang="en">Identifies the speed with which the medication was or will be introduced into the patient. Typically the rate for an infusion e.g. 100 ml per 1 hour or 100 ml/hr. May also be expressed as a rate per unit of time e.g. 500 ml per 2 hours. Other examples: 200 mcg/min or 200 mcg/1 minute; 1 liter/8 hours.</xs:documentation>
|
| 180 |
+
</xs:annotation>
|
| 181 |
+
<xs:element name="rateRatio" type="Ratio"/>
|
| 182 |
+
<xs:element name="rateQuantity" type="Quantity"/>
|
| 183 |
+
</xs:choice>
|
| 184 |
+
</xs:sequence>
|
| 185 |
+
</xs:extension>
|
| 186 |
+
</xs:complexContent>
|
| 187 |
+
</xs:complexType>
|
| 188 |
+
<xs:simpleType name="MedicationAdministrationStatus-list">
|
| 189 |
+
<xs:restriction base="code-primitive">
|
| 190 |
+
<xs:enumeration value="in-progress">
|
| 191 |
+
<xs:annotation>
|
| 192 |
+
<xs:documentation xml:lang="en">In Progress</xs:documentation>
|
| 193 |
+
</xs:annotation>
|
| 194 |
+
</xs:enumeration>
|
| 195 |
+
<xs:enumeration value="on-hold">
|
| 196 |
+
<xs:annotation>
|
| 197 |
+
<xs:documentation xml:lang="en">On Hold</xs:documentation>
|
| 198 |
+
</xs:annotation>
|
| 199 |
+
</xs:enumeration>
|
| 200 |
+
<xs:enumeration value="completed">
|
| 201 |
+
<xs:annotation>
|
| 202 |
+
<xs:documentation xml:lang="en">Completed</xs:documentation>
|
| 203 |
+
</xs:annotation>
|
| 204 |
+
</xs:enumeration>
|
| 205 |
+
<xs:enumeration value="entered-in-error">
|
| 206 |
+
<xs:annotation>
|
| 207 |
+
<xs:documentation xml:lang="en">Entered in Error</xs:documentation>
|
| 208 |
+
</xs:annotation>
|
| 209 |
+
</xs:enumeration>
|
| 210 |
+
<xs:enumeration value="stopped">
|
| 211 |
+
<xs:annotation>
|
| 212 |
+
<xs:documentation xml:lang="en">Stopped</xs:documentation>
|
| 213 |
+
</xs:annotation>
|
| 214 |
+
</xs:enumeration>
|
| 215 |
+
</xs:restriction>
|
| 216 |
+
</xs:simpleType>
|
| 217 |
+
<xs:complexType name="MedicationAdministrationStatus">
|
| 218 |
+
<xs:annotation>
|
| 219 |
+
<xs:documentation xml:lang="en">A set of codes indicating the current status of a MedicationAdministration.</xs:documentation>
|
| 220 |
+
<xs:documentation xml:lang="en">If the element is present, it must have either a @value, an @id, or extensions</xs:documentation>
|
| 221 |
+
</xs:annotation>
|
| 222 |
+
<xs:complexContent>
|
| 223 |
+
<xs:extension base="Element">
|
| 224 |
+
<xs:attribute name="value" type="MedicationAdministrationStatus-list" use="optional"/>
|
| 225 |
+
</xs:extension>
|
| 226 |
+
</xs:complexContent>
|
| 227 |
+
</xs:complexType>
|
| 228 |
+
</xs:schema>
|
source_data/pinned/cql-clinical/clinical_quality_language/commit-bc0c795e4f2a/quick/schema/v1.8/medicationdispense.sch
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
+
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron" queryBinding="xslt2">
|
| 3 |
+
<sch:ns prefix="f" uri="http://hl7.org/fhir"/>
|
| 4 |
+
<sch:ns prefix="h" uri="http://www.w3.org/1999/xhtml"/>
|
| 5 |
+
<!--
|
| 6 |
+
This file contains just the constraints for the resource MedicationDispense
|
| 7 |
+
It is provided for documentation purposes. When actually validating,
|
| 8 |
+
always use fhir-invariants.sch (because of the way containment works)
|
| 9 |
+
Alternatively you can use this file to build a smaller version of
|
| 10 |
+
fhir-invariants.sch (the contents are identical; only include those
|
| 11 |
+
resources relevant to your implementation).
|
| 12 |
+
-->
|
| 13 |
+
<sch:pattern>
|
| 14 |
+
<sch:title>Global</sch:title>
|
| 15 |
+
<sch:rule context="//f:*">
|
| 16 |
+
<sch:assert test="@value|f:*|h:div">global-1: All FHIR elements must have a @value or children</sch:assert>
|
| 17 |
+
</sch:rule>
|
| 18 |
+
</sch:pattern>
|
| 19 |
+
<sch:pattern>
|
| 20 |
+
<sch:title>MedicationDispense</sch:title>
|
| 21 |
+
<sch:rule context="//f:MedicationDispense">
|
| 22 |
+
<sch:assert test="not(parent::f:contained and f:contained)">dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources</sch:assert>
|
| 23 |
+
<sch:assert test="not(parent::f:contained and f:text)">dom-1: If the resource is contained in another resource, it SHALL NOT contain any narrative</sch:assert>
|
| 24 |
+
<sch:assert test="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))">dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated</sch:assert>
|
| 25 |
+
<sch:assert test="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))">dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource</sch:assert>
|
| 26 |
+
<sch:assert test="not(exists(f:whenHandedOver/@value)) or not(exists(f:whenPrepared/@value)) or ( f:whenHandedOver/@value >= f:whenPrepared/@value)">mdd-1: whenHandedOver cannot be before whenPrepared</sch:assert>
|
| 27 |
+
</sch:rule>
|
| 28 |
+
<sch:rule context="//f:MedicationDispense/f:text/h:div">
|
| 29 |
+
<sch:assert test="not(descendant-or-self::*[not(local-name(.)=('a', 'abbr', 'acronym', 'b', 'big', 'blockquote', 'br', 'caption', 'cite', 'code', 'col', 'colgroup', 'dd', 'dfn', 'div', 'dl', 'dt', 'em', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'li', 'ol', 'p', 'pre', 'q', 'samp', 'small', 'span', 'strong', 'sub', 'sup', 'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr', 'tt', 'ul', 'var'))]) and not(descendant-or-self::*/@*[not(name(.)=('abbr', 'accesskey', 'align', 'alt', 'axis', 'bgcolor', 'border', 'cellhalign', 'cellpadding', 'cellspacing', 'cellvalign', 'char', 'charoff', 'charset', 'cite', 'class', 'colspan', 'compact', 'coords', 'dir', 'frame', 'headers', 'height', 'href', 'hreflang', 'hspace', 'id', 'lang', 'longdesc', 'name', 'nowrap', 'rel', 'rev', 'rowspan', 'rules', 'scope', 'shape', 'span', 'src', 'start', 'style', 'summary', 'tabindex', 'title', 'type', 'valign', 'value', 'vspace', 'width'))])">txt-1: The narrative SHALL contain only the basic html formatting elements and attributes described in chapters 7-11 (except section 4 of chapter 9) and 15 of the HTML 4.0 standard, <a> elements (either name or href), images and internally contained style attributes</sch:assert>
|
| 30 |
+
<sch:assert test="descendant::text()[normalize-space(.)!=''] or descendant::h:img[@src]">txt-2: The narrative SHALL have some non-whitespace content</sch:assert>
|
| 31 |
+
</sch:rule>
|
| 32 |
+
<sch:rule context="//f:MedicationDispense/f:extension">
|
| 33 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 34 |
+
</sch:rule>
|
| 35 |
+
<sch:rule context="//f:MedicationDispense/f:modifierExtension">
|
| 36 |
+
<sch:assert test="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])">ext-1: Must have either extensions or value[x], not both</sch:assert>
|
| 37 |
+
</sch:rule>
|
| 38 |
+
<sch:rule context="//f:MedicationDispense/f:identifier/f:period">
|
| 39 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 40 |
+
</sch:rule>
|
| 41 |
+
<sch:rule context="//f:MedicationDispense/f:identifier/f:assigner">
|
| 42 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 43 |
+
</sch:rule>
|
| 44 |
+
<sch:rule context="//f:MedicationDispense/f:medicationReference">
|
| 45 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 46 |
+
</sch:rule>
|
| 47 |
+
<sch:rule context="//f:MedicationDispense/f:medicationReference/f:identifier/f:period">
|
| 48 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 49 |
+
</sch:rule>
|
| 50 |
+
<sch:rule context="//f:MedicationDispense/f:medicationReference/f:identifier/f:assigner">
|
| 51 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 52 |
+
</sch:rule>
|
| 53 |
+
<sch:rule context="//f:MedicationDispense/f:patient">
|
| 54 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 55 |
+
</sch:rule>
|
| 56 |
+
<sch:rule context="//f:MedicationDispense/f:patient/f:identifier/f:period">
|
| 57 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 58 |
+
</sch:rule>
|
| 59 |
+
<sch:rule context="//f:MedicationDispense/f:patient/f:identifier/f:assigner">
|
| 60 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 61 |
+
</sch:rule>
|
| 62 |
+
<sch:rule context="//f:MedicationDispense/f:supportingInformation">
|
| 63 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 64 |
+
</sch:rule>
|
| 65 |
+
<sch:rule context="//f:MedicationDispense/f:supportingInformation/f:identifier/f:period">
|
| 66 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 67 |
+
</sch:rule>
|
| 68 |
+
<sch:rule context="//f:MedicationDispense/f:supportingInformation/f:identifier/f:assigner">
|
| 69 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 70 |
+
</sch:rule>
|
| 71 |
+
<sch:rule context="//f:MedicationDispense/f:dispenser">
|
| 72 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 73 |
+
</sch:rule>
|
| 74 |
+
<sch:rule context="//f:MedicationDispense/f:dispenser/f:identifier/f:period">
|
| 75 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 76 |
+
</sch:rule>
|
| 77 |
+
<sch:rule context="//f:MedicationDispense/f:dispenser/f:identifier/f:assigner">
|
| 78 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 79 |
+
</sch:rule>
|
| 80 |
+
<sch:rule context="//f:MedicationDispense/f:dispensingOrganization">
|
| 81 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 82 |
+
</sch:rule>
|
| 83 |
+
<sch:rule context="//f:MedicationDispense/f:dispensingOrganization/f:identifier/f:period">
|
| 84 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 85 |
+
</sch:rule>
|
| 86 |
+
<sch:rule context="//f:MedicationDispense/f:dispensingOrganization/f:identifier//f:assigner">
|
| 87 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 88 |
+
</sch:rule>
|
| 89 |
+
<sch:rule context="//f:MedicationDispense/f:authorizingPrescription">
|
| 90 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 91 |
+
</sch:rule>
|
| 92 |
+
<sch:rule context="//f:MedicationDispense/f:authorizingPrescription/f:identifier/f:period">
|
| 93 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 94 |
+
</sch:rule>
|
| 95 |
+
<sch:rule context="//f:MedicationDispense/f:authorizingPrescription/f:identifier/f:assigner">
|
| 96 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 97 |
+
</sch:rule>
|
| 98 |
+
<sch:rule context="//f:MedicationDispense/f:quantity">
|
| 99 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 100 |
+
</sch:rule>
|
| 101 |
+
<sch:rule context="//f:MedicationDispense/f:daysSupply">
|
| 102 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 103 |
+
</sch:rule>
|
| 104 |
+
<sch:rule context="//f:MedicationDispense/f:destination">
|
| 105 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 106 |
+
</sch:rule>
|
| 107 |
+
<sch:rule context="//f:MedicationDispense/f:destination/f:identifier/f:period">
|
| 108 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 109 |
+
</sch:rule>
|
| 110 |
+
<sch:rule context="//f:MedicationDispense/f:destination/f:identifier/f:assigner">
|
| 111 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 112 |
+
</sch:rule>
|
| 113 |
+
<sch:rule context="//f:MedicationDispense/f:receiver">
|
| 114 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 115 |
+
</sch:rule>
|
| 116 |
+
<sch:rule context="//f:MedicationDispense/f:receiver/f:identifier/f:period">
|
| 117 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 118 |
+
</sch:rule>
|
| 119 |
+
<sch:rule context="//f:MedicationDispense/f:receiver/f:identifier/f:assigner">
|
| 120 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 121 |
+
</sch:rule>
|
| 122 |
+
<sch:rule context="//f:MedicationDispense/f:note/f:authorReference">
|
| 123 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 124 |
+
</sch:rule>
|
| 125 |
+
<sch:rule context="//f:MedicationDispense/f:note/f:authorReference/f:identifier/f:period">
|
| 126 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 127 |
+
</sch:rule>
|
| 128 |
+
<sch:rule context="//f:MedicationDispense/f:note/f:authorReference/f:identifier/f:assigner">
|
| 129 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 130 |
+
</sch:rule>
|
| 131 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat">
|
| 132 |
+
<sch:assert test="not(exists(f:offset)) or exists(f:when)">tim-9: If there's an offset, there must be a when</sch:assert>
|
| 133 |
+
<sch:assert test="f:period/@value >= 0 or not(f:period/@value)">tim-5: period SHALL be a non-negative value</sch:assert>
|
| 134 |
+
<sch:assert test="not(exists(f:periodMax)) or exists(f:period)">tim-6: If there's a periodMax, there must be a period</sch:assert>
|
| 135 |
+
<sch:assert test="not(exists(f:durationMax)) or exists(f:duration)">tim-7: If there's a durationMax, there must be a duration</sch:assert>
|
| 136 |
+
<sch:assert test="not(exists(f:countMax)) or exists(f:count)">tim-8: If there's a countMax, there must be a count</sch:assert>
|
| 137 |
+
<sch:assert test="not(exists(f:duration)) or exists(f:durationUnit)">tim-1: if there's a duration, there needs to be duration units</sch:assert>
|
| 138 |
+
<sch:assert test="not(exists(f:timeofDay)) or (not(exists(f:when)) and not(exists(f:frequency)) and not (exists(f:period)))">tim-10: If there's a timeOfDay, there cannot be be a when, a frequency, or a period</sch:assert>
|
| 139 |
+
<sch:assert test="not(exists(f:timeofDay)) or (not(exists(f:frequency)) and not (exists(f:period)))">tim-11: If there's a dayOfWeek, there cannot be be a frequency, or a period</sch:assert>
|
| 140 |
+
<sch:assert test="not(exists(f:period)) or exists(f:periodUnit)">tim-2: if there's a period, there needs to be period units</sch:assert>
|
| 141 |
+
<sch:assert test="not((f:period or f:frequency) and f:when)">tim-3: Either frequency or when can exist, not both</sch:assert>
|
| 142 |
+
<sch:assert test="f:duration/@value >= 0 or not(f:duration/@value)">tim-4: duration SHALL be a non-negative value</sch:assert>
|
| 143 |
+
</sch:rule>
|
| 144 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat/f:boundsDuration">
|
| 145 |
+
<sch:assert test="(f:code or not(f:value)) and (not(exists(f:system)) or f:system/@value='http://unitsofmeasure.org')">drt-1: There SHALL be a code if there is a value and it SHALL be an expression of time. If system is present, it SHALL be UCUM.</sch:assert>
|
| 146 |
+
</sch:rule>
|
| 147 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat/f:boundsRange">
|
| 148 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 149 |
+
</sch:rule>
|
| 150 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat/f:boundsRange/f:low">
|
| 151 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 152 |
+
</sch:rule>
|
| 153 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat/f:boundsRange/f:high">
|
| 154 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 155 |
+
</sch:rule>
|
| 156 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:timing/f:repeat/f:boundsPeriod">
|
| 157 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 158 |
+
</sch:rule>
|
| 159 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:doseRange">
|
| 160 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 161 |
+
</sch:rule>
|
| 162 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:doseRange/f:low">
|
| 163 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 164 |
+
</sch:rule>
|
| 165 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:doseRange/f:high">
|
| 166 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 167 |
+
</sch:rule>
|
| 168 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:doseQuantity">
|
| 169 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 170 |
+
</sch:rule>
|
| 171 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:maxDosePerPeriod">
|
| 172 |
+
<sch:assert test="(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))">rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present</sch:assert>
|
| 173 |
+
</sch:rule>
|
| 174 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:maxDosePerPeriod/f:numerator">
|
| 175 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 176 |
+
</sch:rule>
|
| 177 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:maxDosePerPeriod/f:denominator">
|
| 178 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 179 |
+
</sch:rule>
|
| 180 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:maxDosePerAdministration">
|
| 181 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 182 |
+
</sch:rule>
|
| 183 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:maxDosePerLifetime">
|
| 184 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 185 |
+
</sch:rule>
|
| 186 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRatio">
|
| 187 |
+
<sch:assert test="(count(f:numerator) = count(f:denominator)) and ((count(f:numerator) > 0) or (count(f:extension) > 0))">rat-1: Numerator and denominator SHALL both be present, or both are absent. If both are absent, there SHALL be some extension present</sch:assert>
|
| 188 |
+
</sch:rule>
|
| 189 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRatio/f:numerator">
|
| 190 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 191 |
+
</sch:rule>
|
| 192 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRatio/f:denominator">
|
| 193 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 194 |
+
</sch:rule>
|
| 195 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRange">
|
| 196 |
+
<sch:assert test="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))">rng-2: If present, low SHALL have a lower value than high</sch:assert>
|
| 197 |
+
</sch:rule>
|
| 198 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRange/f:low">
|
| 199 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 200 |
+
</sch:rule>
|
| 201 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateRange/f:high">
|
| 202 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 203 |
+
</sch:rule>
|
| 204 |
+
<sch:rule context="//f:MedicationDispense/f:dosageInstruction/f:rateQuantity">
|
| 205 |
+
<sch:assert test="not(exists(f:code)) or exists(f:system)">qty-3: If a code for the unit is present, the system SHALL also be present</sch:assert>
|
| 206 |
+
</sch:rule>
|
| 207 |
+
<sch:rule context="//f:MedicationDispense/f:substitution/f:responsibleParty">
|
| 208 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 209 |
+
</sch:rule>
|
| 210 |
+
<sch:rule context="//f:MedicationDispense/f:substitution/f:responsibleParty/f:identifier/f:period">
|
| 211 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 212 |
+
</sch:rule>
|
| 213 |
+
<sch:rule context="//f:MedicationDispense/f:substitution/f:responsibleParty/f:identifier/f:assigner">
|
| 214 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 215 |
+
</sch:rule>
|
| 216 |
+
<sch:rule context="//f:MedicationDispense/f:eventHistory">
|
| 217 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 218 |
+
</sch:rule>
|
| 219 |
+
<sch:rule context="//f:MedicationDispense/f:eventHistory/f:identifier/f:period">
|
| 220 |
+
<sch:assert test="not(exists(f:start)) or not(exists(f:end)) or (f:start/@value <= f:end/@value)">per-1: If present, start SHALL have a lower value than end</sch:assert>
|
| 221 |
+
</sch:rule>
|
| 222 |
+
<sch:rule context="//f:MedicationDispense/f:eventHistory/f:identifier/f:assigner">
|
| 223 |
+
<sch:assert test="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, '#')])">ref-1: SHALL have a contained resource if a local reference is provided</sch:assert>
|
| 224 |
+
</sch:rule>
|
| 225 |
+
</sch:pattern>
|
| 226 |
+
</sch:schema>
|